com.ca.jcs.validator.meta
Class EnumPropertyValidator
java.lang.Object
com.ca.jcs.cfg.Vetoable
com.ca.jcs.validator.meta.PropertyValidator
com.ca.jcs.validator.meta.PropertyValueValidator
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumPropertyValidator
public EnumPropertyValidator(DataModelProperty prop)
EnumPropertyValidator
public EnumPropertyValidator(DataModelProperty prop,
EnumPropertyValidator.EnumConfig cfg)
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