com.ca.jcs.validator.meta
Class ReadOnlyPropertyValidator

java.lang.Object
  extended by com.ca.jcs.cfg.Vetoable
      extended by com.ca.jcs.validator.meta.PropertyValidator
          extended by 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.


Field Summary
static String READ_ONLY_MSG
           
 
Constructor Summary
ReadOnlyPropertyValidator()
          For internal use only.
ReadOnlyPropertyValidator(DataModelProperty prop)
           
 
Method Summary
 ErrorMessages validate(Attribute attr)
          No checks required when creating an object.
 ErrorMessages validate(ModificationItem modItem)
          But must check modifications.
 
Methods inherited from class com.ca.jcs.validator.meta.PropertyValidator
getTargetValueOverride
 
Methods inherited from class com.ca.jcs.cfg.Vetoable
isVetoed, setVetoed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_ONLY_MSG

public static final String READ_ONLY_MSG
See Also:
Constant Field Values
Constructor Detail

ReadOnlyPropertyValidator

public ReadOnlyPropertyValidator()
For internal use only.


ReadOnlyPropertyValidator

public ReadOnlyPropertyValidator(DataModelProperty prop)
Method Detail

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