com.ca.jcs.validator.meta
Class RangePropertyValueValidator

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.RangePropertyValueValidator
All Implemented Interfaces:
AttributeValidator, PropertyValidatorBase

public class RangePropertyValueValidator
extends PropertyValueValidator

Validate that all of an attribute's values fall within a defined range restriction (vetoed for boolValue / enumValue properties as adds no value):

MetaDataDefs.MD_MIN_VALUE <= value <= MetaDataDefs.MD_MAX_VALUE

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
RangePropertyValueValidator(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

RangePropertyValueValidator

public RangePropertyValueValidator(DataModelProperty prop)


Created 2011-07-14 13:27 EST