org.beanfabrics.model
Class MapPM.ListElementsValidationRule

java.lang.Object
  extended by org.beanfabrics.model.MapPM.ListElementsValidationRule
All Implemented Interfaces:
ValidationRule
Enclosing class:
MapPM<K,V extends PresentationModel>

public class MapPM.ListElementsValidationRule
extends java.lang.Object
implements ValidationRule

This rule evaluates to invalid if at least one of the list elements is invalid.


Constructor Summary
MapPM.ListElementsValidationRule()
           
 
Method Summary
 ValidationState validate()
          Produces a fresh ValidationState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPM.ListElementsValidationRule

public MapPM.ListElementsValidationRule()
Method Detail

validate

public ValidationState validate()
Produces a fresh ValidationState. A null return value indicates that this rule has been successfully validated. A not- null value indicates that this rule has found an invalid state.

Specified by:
validate in interface ValidationRule
Returns:
the fresh validation result of this rule.