com.ca.jcs.validator.meta
Class PropertyValueValidator
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.validator.meta.PropertyValidator
com.ca.jcs.validator.meta.PropertyValueValidator
- All Implemented Interfaces:
- AttributeValidator, PropertyValidatorBase
- Direct Known Subclasses:
- EnumPropertyValidator, LengthPropertyValueValidator, RangePropertyValueValidator, RegexPropertyValueValidator
public abstract class PropertyValueValidator
- extends PropertyValidator
- implements AttributeValidator
Property validator that needs access to metadata settings but ultimately
just needs to validate values added to attributes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prop
protected final DataModelProperty prop
PropertyValueValidator
protected PropertyValueValidator(DataModelProperty prop)
getAttrValidator
public AttributeValueValidator getAttrValidator()
setAttrValidator
public void setAttrValidator(AttributeValueValidator attrValidator)
validate
public ErrorMessages validate(Attribute attr)
- Description copied from class:
PropertyValidator
- Create/add case.
- Specified by:
validate in interface AttributeValidator- Specified by:
validate in class PropertyValidator
- Parameters:
attr - Attribute whose values are to be validated.
- Returns:
- Null if all value have desired format, and otherwise one or
more error messages where only their
msgFormatId field
needs to be set.
validate
public ErrorMessages validate(ModificationItem modItem)
- Description copied from class:
PropertyValidator
- Update/modify case.
- Specified by:
validate in class PropertyValidator
Created 2011-07-14 13:27 EST