com.ca.jcs.converter.attr
Class StringArrayAttributeConverter

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

public class StringArrayAttributeConverter
extends Object
implements AttributeConverter

Convert a multi-valued attribute to a single String[] value.


Constructor Summary
StringArrayAttributeConverter()
           
 
Method Summary
 void convertFromConnector(Attribute connAttr)
           
 void convertToConnector(Attribute attr)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringArrayAttributeConverter

public StringArrayAttributeConverter()
Method Detail

isMultiValued

public boolean isMultiValued()
Specified by:
isMultiValued in interface AttributeConverter

isStructural

public boolean isStructural()
Description copied from interface: AttributeConverter
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.

Specified by:
isStructural in interface AttributeConverter

isLossy

public boolean isLossy()
Description copied from interface: AttributeConverter
Returns true if the converter performs a lossy attribute value conversion

Specified by:
isLossy in interface AttributeConverter

getConverter

public Converter getConverter()
Description copied from interface: AttributeConverter
Can be null for some structural converters.

Specified by:
getConverter in interface AttributeConverter

convertToConnector

public void convertToConnector(Attribute attr)
                        throws NamingException
Specified by:
convertToConnector in interface AttributeConverter
Throws:
NamingException

convertFromConnector

public void convertFromConnector(Attribute connAttr)
                          throws NamingException
Specified by:
convertFromConnector in interface AttributeConverter
Throws:
NamingException


Created 2011-07-14 13:27 EST