com.ca.jcs.converter.attr
Interface AttributeConverter

All Known Subinterfaces:
ConnectorDependantAttributeConverter
All Known Implementing Classes:
AttributeValueConverter, BoolAttributeConverter, BoolPropertyConverter, CommaSeparatedMultiValueFlattener, CountryPropertyConverter, CSVMultiValueFlattener, CSVMultiValuePropertyFlattener, DemoFlattenAttributeConverter, DemoFlattenPropertyConverter, DNAttributeConverter, DNPropertyConverter, EncryptAttributeConverter, EncyptPropertyConverter, EnumPropertyConverter, ForceCaseAttributeConverter, ForceCasePropertyConverter, GeneralizedTimeAttributeConverter, JavaObjectAttributeConverter, JavaObjectPropertyConverter, MapAttributeConverter, MultiValueFlattener, MultiValueFlattenerFactory, MultiValuePropertyFlattener, NumericBaseAttributeConverter, NumericBasePropertyConverter, ORedMultiValueFlattener, ORedMultiValuePropertyFlattener, PadAttributeConverter, PadPropertyConverter, PropertyConverter, RegexAttributeConverter, RegexPropertyConverter, SQLMultiValueFlattener, SQLMultiValuePropertyFlattener, StringArrayAttributeConverter, StringArrayPropertyConverter, StructuralAttributeConverter, TimeNumericPropertyConverter, TimeNumericPropertyConverter.TimeNumericAttributeConverter, TrimAttributeConverter, TrimPropertyConverter, XMLMultiValueFlattener, XMLMultiValuePropertyFlattener, XMLSQLDateTimeAttributeConverter, XMLSQLTimeAttributeConverter

public interface AttributeConverter

Destructively convert all values for an attribute.


Method Summary
 void convertFromConnector(Attribute connAttrVals)
           
 void convertToConnector(Attribute attrVals)
           
 Converter getConverter()
          Can be null for some structural converters.
 boolean isLossy()
          Returns true if the converter performs a lossy attribute value conversion
 boolean isMultiValued()
           
 boolean isStructural()
          Returns true if the converter performs a change to the structure of an attribute's values, rather then just transforming individual values themselves.
 

Method Detail

convertToConnector

void convertToConnector(Attribute attrVals)
                        throws NamingException
Throws:
NamingException

convertFromConnector

void convertFromConnector(Attribute connAttrVals)
                          throws NamingException
Throws:
NamingException

isMultiValued

boolean isMultiValued()

isStructural

boolean isStructural()
Returns true if the converter performs a change to the structure of an attribute's values, rather then just transforming individual values themselves. For instance changing a multi-valued attribute into a String[] is a structural conversion.


isLossy

boolean isLossy()
Returns true if the converter performs a lossy attribute value conversion


getConverter

Converter getConverter()
Can be null for some structural converters.



Created 2011-07-14 13:27 EST