org.beanfabrics.model
Class AbstractPM.PropertiesValidationRule

java.lang.Object
  extended by org.beanfabrics.model.AbstractPM.PropertiesValidationRule
All Implemented Interfaces:
ValidationRule
Enclosing class:
AbstractPM

public final class AbstractPM.PropertiesValidationRule
extends java.lang.Object
implements ValidationRule

This rule defines that this object is invalid if any of its properties (that are NOT instances of IOperationPM) is invalid.

Author:
Michel Karneim

Constructor Summary
AbstractPM.PropertiesValidationRule()
           
 
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

AbstractPM.PropertiesValidationRule

public AbstractPM.PropertiesValidationRule()
Method Detail

validate

public ValidationState validate()
Description copied from interface: ValidationRule
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.


© 2010 by Michael Karneim, http://www.beanfabrics.org