com.ca.jcs.converter.attr
Class XMLMultiValueFlattener

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

public class XMLMultiValueFlattener
extends MultiValueFlattener

Flatten a list of values into an XML delimitted literal, and vice-versa, for instance the values 1, 2, 3 are encoded as <list><1><2><3></list>.


Field Summary
static XMLMultiValueFlattener INSTANCE
           
static String LIST_END
           
static String LIST_START
           
static String VALUE_END
           
static String VALUE_START
           
 
Constructor Summary
protected XMLMultiValueFlattener()
           
 
Method Summary
 void convertFromConnector(Attribute connAttrVals)
           
static XMLMultiValueFlattener getInstance()
           
 String getStyle()
           
protected  void writeEnd(StringWriter writer)
           
protected  void writeStart(StringWriter writer)
           
protected  void writeValue(StringWriter writer, String value, boolean firstValue)
           
 
Methods inherited from class com.ca.jcs.converter.attr.MultiValueFlattener
convertToConnector, convertToString, getConverter, isForceWrap, isLossy, isMultiValued, isStructural
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST_START

public static final String LIST_START
See Also:
Constant Field Values

LIST_END

public static final String LIST_END

VALUE_START

public static final String VALUE_START
See Also:
Constant Field Values

VALUE_END

public static final String VALUE_END

INSTANCE

public static final XMLMultiValueFlattener INSTANCE
Constructor Detail

XMLMultiValueFlattener

protected XMLMultiValueFlattener()
Method Detail

getInstance

public static XMLMultiValueFlattener getInstance()

getStyle

public String getStyle()
Specified by:
getStyle in class MultiValueFlattener

writeStart

protected void writeStart(StringWriter writer)
Specified by:
writeStart in class MultiValueFlattener

writeValue

protected void writeValue(StringWriter writer,
                          String value,
                          boolean firstValue)
Specified by:
writeValue in class MultiValueFlattener

writeEnd

protected void writeEnd(StringWriter writer)
Specified by:
writeEnd in class MultiValueFlattener

convertFromConnector

public void convertFromConnector(Attribute connAttrVals)
                          throws NamingException
Throws:
NamingException


Created 2011-07-14 13:27 EST