com.ca.jcs.converter.meta
Class BoolPropertyConverter

java.lang.Object
  extended by com.ca.jcs.cfg.Vetoable
      extended by com.ca.jcs.converter.meta.PropertyConverter
          extended by com.ca.jcs.converter.meta.BoolPropertyConverter
All Implemented Interfaces:
AttributeConverter

public class BoolPropertyConverter
extends PropertyConverter

Convert boolean values; either numeric (1/0) to symbolic (true/false) or vice-versa, depending on configuration of converter and metadata settings on supplied property.


Nested Class Summary
static class BoolPropertyConverter.BoolConfig
           
 
Field Summary
 
Fields inherited from class com.ca.jcs.converter.meta.PropertyConverter
config, prop
 
Constructor Summary
BoolPropertyConverter(BoolPropertyConverter.BoolConfig cfg, DataModelProperty prop)
           
BoolPropertyConverter(DataModelProperty prop)
           
 
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.converter.meta.PropertyConverter
convertFromConnector, convertToConnector, getAttrConverter, getConfig, getConverter, isLossy, isMultiValued, isStructural, setAttrConverter
 
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

BoolPropertyConverter

public BoolPropertyConverter(BoolPropertyConverter.BoolConfig cfg,
                             DataModelProperty prop)

BoolPropertyConverter

public BoolPropertyConverter(DataModelProperty prop)
Method Detail

getTargetValueOverride

public DataModelType getTargetValueOverride()
Description copied from class: PropertyConverter
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 PropertyConverter


Created 2011-07-14 13:27 EST