com.ca.jcs.converter.meta
Class CountryPropertyConverter

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.CountryPropertyConverter
All Implemented Interfaces:
AttributeConverter

public class CountryPropertyConverter
extends PropertyConverter

Converts country name values for a enum valued property named "country" (case-insensitive) to the country's two letter ISO code ("Australia" in LDAP maps to "AU" in connector-speak) if it has a MetaDataDefs.MD_IS_STORE_CODE metadata property set to true. Does the inverse mapping of ISO code to country name if the property has MetaDataDefs.MD_IS_STORE_NAME set to true.


Nested Class Summary
static class CountryPropertyConverter.CountryCodeConfig
           
 
Field Summary
 
Fields inherited from class com.ca.jcs.converter.meta.PropertyConverter
config, prop
 
Constructor Summary
CountryPropertyConverter(CountryPropertyConverter.CountryCodeConfig cfg, DataModelProperty prop)
           
 
Method Summary
 
Methods inherited from class com.ca.jcs.converter.meta.PropertyConverter
convertFromConnector, convertToConnector, getAttrConverter, getConfig, getConverter, getTargetValueOverride, 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

CountryPropertyConverter

public CountryPropertyConverter(CountryPropertyConverter.CountryCodeConfig cfg,
                                DataModelProperty prop)


Created 2011-07-14 13:27 EST