com.ca.jcs.validator.meta
Class LengthPropertyValueValidator

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
              extended by com.ca.jcs.validator.meta.LengthPropertyValueValidator
All Implemented Interfaces:
AttributeValidator, PropertyValidatorBase

public class LengthPropertyValueValidator
extends PropertyValueValidator

Validate that all of an attribute's values fall within a defined length restriction:

MetaDataDefs.MD_MIN_LENGTH <= length <= MetaDataUtil#MD_MAX_LENGTH

where if the min is not specified it defaults to 0 and if the max is not specified the length is simply not checked against an upper bound.


Field Summary
 
Fields inherited from class com.ca.jcs.validator.meta.PropertyValueValidator
prop
 
Constructor Summary
LengthPropertyValueValidator(DataModelProperty prop)
           
 
Method Summary
 
Methods inherited from class com.ca.jcs.validator.meta.PropertyValueValidator
getAttrValidator, setAttrValidator, validate, validate
 
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
 

Constructor Detail

LengthPropertyValueValidator

public LengthPropertyValueValidator(DataModelProperty prop)


Created 2011-07-14 13:27 EST