|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.converter.attr.MultiValueFlattener
public abstract class MultiValueFlattener
Base class for flatteners which convert a list of values to a single literal, and vice-versa.
| Constructor Summary | |
|---|---|
MultiValueFlattener()
|
|
| Method Summary | |
|---|---|
void |
convertToConnector(Attribute attr)
|
String |
convertToString(Attribute attr)
|
Converter |
getConverter()
Can be null for some structural converters. |
abstract String |
getStyle()
|
boolean |
isForceWrap()
Return true if even a single value needs to be specially wrapped (the default), override in concrete converter if this should not be the case. |
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. |
protected abstract void |
writeEnd(StringWriter writer)
|
protected abstract void |
writeStart(StringWriter writer)
|
protected abstract void |
writeValue(StringWriter writer,
String value,
boolean firstValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ca.jcs.converter.attr.AttributeConverter |
|---|
convertFromConnector |
| Constructor Detail |
|---|
public MultiValueFlattener()
| Method Detail |
|---|
public boolean isMultiValued()
isMultiValued in interface AttributeConverterpublic boolean isStructural()
AttributeConverter
isStructural in interface AttributeConverterpublic boolean isLossy()
AttributeConverter
isLossy in interface AttributeConverterpublic Converter getConverter()
AttributeConverter
getConverter in interface AttributeConverterpublic boolean isForceWrap()
public abstract String getStyle()
protected abstract void writeStart(StringWriter writer)
protected abstract void writeValue(StringWriter writer,
String value,
boolean firstValue)
protected abstract void writeEnd(StringWriter writer)
public String convertToString(Attribute attr)
public void convertToConnector(Attribute attr)
throws NamingException
convertToConnector in interface AttributeConverterNamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||