com.ca.jcs.converter.attr
Class MapAttributeConverter

java.lang.Object
  extended by com.ca.jcs.converter.attr.AttributeValueConverter
      extended by com.ca.jcs.converter.attr.MapAttributeConverter
All Implemented Interfaces:
AttributeConverter

public class MapAttributeConverter
extends AttributeValueConverter

Convert between values via configured map, optionally ignoring case.


Constructor Summary
MapAttributeConverter(String name, Map toConnMap)
          Convert based on map values, where fromConnector version is calculated by reversing provided toConnMap.
MapAttributeConverter(String name, Map toConnMap, boolean ignoreCaseToConn, boolean ignoreCaseFromConn)
          Convert based on map values, where fromConnector version is calculated by reversing provided toConnMap, with support for ignoring case of values in each direction.
MapAttributeConverter(String name, Map toConnMap, Map fromConnMap)
          Convert based on map values, where separate maps are required in the toConnector and fromConnector directions.
MapAttributeConverter(String name, Map toConnMap, Map fromConnMap, boolean ignoreCaseToConn, boolean ignoreCaseFromConn)
          Convert based on map values, where separate maps are required in the toConnector and fromConnector directions, with support for ignoring case of values in each direction.
 
Method Summary
 
Methods inherited from class com.ca.jcs.converter.attr.AttributeValueConverter
convertFromConnector, convertToConnector, getConverter, isLossy, isMultiValued, isStructural, setConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAttributeConverter

public MapAttributeConverter(String name,
                             Map toConnMap)
Convert based on map values, where fromConnector version is calculated by reversing provided toConnMap.


MapAttributeConverter

public MapAttributeConverter(String name,
                             Map toConnMap,
                             boolean ignoreCaseToConn,
                             boolean ignoreCaseFromConn)
Convert based on map values, where fromConnector version is calculated by reversing provided toConnMap, with support for ignoring case of values in each direction.


MapAttributeConverter

public MapAttributeConverter(String name,
                             Map toConnMap,
                             Map fromConnMap)
Convert based on map values, where separate maps are required in the toConnector and fromConnector directions.


MapAttributeConverter

public MapAttributeConverter(String name,
                             Map toConnMap,
                             Map fromConnMap,
                             boolean ignoreCaseToConn,
                             boolean ignoreCaseFromConn)
Convert based on map values, where separate maps are required in the toConnector and fromConnector directions, with support for ignoring case of values in each direction.



Created 2011-07-14 13:27 EST