com.ca.jcs.validator.meta
Class PropertyValueValidator

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.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.


Field Summary
protected  DataModelProperty prop
           
 
Constructor Summary
protected PropertyValueValidator(DataModelProperty prop)
           
 
Method Summary
 AttributeValueValidator getAttrValidator()
           
 void setAttrValidator(AttributeValueValidator attrValidator)
           
 ErrorMessages validate(Attribute attr)
          Create/add case.
 ErrorMessages validate(ModificationItem modItem)
          Update/modify case.
 
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

prop

protected final DataModelProperty prop
Constructor Detail

PropertyValueValidator

protected PropertyValueValidator(DataModelProperty prop)
Method Detail

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