com.ca.jcs.validator.meta
Class ReadOnlyPropertyValidator
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.validator.meta.PropertyValidator
com.ca.jcs.validator.meta.ReadOnlyPropertyValidator
- All Implemented Interfaces:
- AttributeValidator, PropertyValidatorBase
public class ReadOnlyPropertyValidator
- extends PropertyValidator
Ensure no attempt is made to change a read-only property.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
READ_ONLY_MSG
public static final String READ_ONLY_MSG
- See Also:
- Constant Field Values
ReadOnlyPropertyValidator
public ReadOnlyPropertyValidator()
- For internal use only.
ReadOnlyPropertyValidator
public ReadOnlyPropertyValidator(DataModelProperty prop)
validate
public ErrorMessages validate(Attribute attr)
- No checks required when creating an object.
- 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)
- But must check modifications.
- Specified by:
validate in class PropertyValidator
Created 2011-07-14 13:27 EST