|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.model.AbstractValuePM.MandatoryValidationRule
public class AbstractValuePM.MandatoryValidationRule
This rule evaluates to invalid if the PM's "mandatory" attribute is true and the PM is empty.
AbstractValuePM.isMandatory()
,
IValuePM.isEmpty()
Constructor Summary | |
---|---|
AbstractValuePM.MandatoryValidationRule()
|
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 |
---|
public AbstractValuePM.MandatoryValidationRule()
Method Detail |
---|
public ValidationState validate()
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.
validate
in interface ValidationRule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |