com.ca.jcs.validator.meta
Class SingleValuedClassPropertiesValidator
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.validator.meta.ContextAwareClassValidator
com.ca.jcs.validator.meta.SingleValuedClassPropertiesValidator
public class SingleValuedClassPropertiesValidator
- extends ContextAwareClassValidator
Validates that all properties with MetaDataDefs.MD_IS_MULTI_VALUED set to false for a class don't
recieve more then one value. It needs to be implemented as a class validator to handle the case where a single-valued
attribute is updated with an MODIFY ADD-ing a value, and a subsequent MODIFY REMOVE-ing a value, so that the
entrire modification item array needs to be passed in together rather then one item at a time.
| 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
SingleValuedClassPropertiesValidator
public SingleValuedClassPropertiesValidator(MetaObjectClassMapping classMap)
validate
public ErrorMessages validate(AddOpContext ctx)
throws NamingException
- Description copied from class:
ContextAwareClassValidator
- Create/add case.
- Specified by:
validate in class ContextAwareClassValidator
- Throws:
NamingException
validate
public ErrorMessages validate(ValidatorModifyOpContext ctx)
throws NamingException
- Description copied from class:
ContextAwareClassValidator
- Update/modify case.
- Specified by:
validate in class ContextAwareClassValidator
- Throws:
NamingException
Created 2011-07-14 13:27 EST