com.ca.jcs.validator.meta
Class SingleValuedPropertyValidator
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.validator.meta.ContextAwarePropertyValidator
com.ca.jcs.validator.meta.SingleValuedPropertyValidator
- All Implemented Interfaces:
- PropertyValidatorBase
public class SingleValuedPropertyValidator
- extends ContextAwarePropertyValidator
Validates that a single-valued property is behaving it's logical
constraints.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SINGLE_VALUED_MSG
public static final String SINGLE_VALUED_MSG
- See Also:
- Constant Field Values
SingleValuedPropertyValidator
public SingleValuedPropertyValidator(DataModelProperty prop)
- Note that currAttributes is usually a lazy proxy so that the
existing attributes for an object are only queried when they are
explicitly requested.
- Parameters:
prop - Property containing metadata for property to be
validate
public ErrorMessages validate(Attribute attr,
AddOpContext ctx)
- Description copied from class:
ContextAwarePropertyValidator
- Create/add case, values can be accessed from provided ctx.
- Specified by:
validate in class ContextAwarePropertyValidator
validate
public ErrorMessages validate(ModificationItem modItem,
ValidatorModifyOpContext ctx)
- Description copied from class:
ContextAwarePropertyValidator
- Update/modify case, values can be accessed from provided ctx.
- Specified by:
validate in class ContextAwarePropertyValidator
Created 2011-07-14 13:27 EST