com.ca.jcs.validator.meta
Class EnumPropertyValidator

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

public class EnumPropertyValidator
extends PropertyValueValidator

More flexible enum validator then EnumValueValidator which doesn't have access to metadata settings like MetaDataDefs.MD_IS_STORE_SYMBOLIC which affect the plug-in's behaviour. Note that it is important that the config triggering this plug-in has MetaPluginConfig.isOverrideValuePlugin() set to true, so that EnumValueValidator is not triggered as well.


Nested Class Summary
static class EnumPropertyValidator.EnumConfig
           
 
Field Summary
 
Fields inherited from class com.ca.jcs.validator.meta.PropertyValueValidator
prop
 
Constructor Summary
EnumPropertyValidator(DataModelProperty prop)
           
EnumPropertyValidator(DataModelProperty prop, EnumPropertyValidator.EnumConfig cfg)
           
 
Method Summary
 DataModelType getTargetValueOverride()
          Override to return a type if desired, in which case any AttributeConverter registered against this value will be cleared when this property converter is activated for a property.
 
Methods inherited from class com.ca.jcs.validator.meta.PropertyValueValidator
getAttrValidator, setAttrValidator, validate, validate
 
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

EnumPropertyValidator

public EnumPropertyValidator(DataModelProperty prop)

EnumPropertyValidator

public EnumPropertyValidator(DataModelProperty prop,
                             EnumPropertyValidator.EnumConfig cfg)
Method Detail

getTargetValueOverride

public DataModelType getTargetValueOverride()
Description copied from class: PropertyValidator
Override to return a type if desired, in which case any AttributeConverter registered against this value will be cleared when this property converter is activated for a property.

Overrides:
getTargetValueOverride in class PropertyValidator


Created 2011-07-14 13:27 EST