|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.transforms.StaticDictionaryInterfaceToStringTransform
public class StaticDictionaryInterfaceToStringTransform
A transform for converting a StaticDictionaryInterface
to a String
StringToDictionaryInterfaceTransform
,
Serialized FormField Summary | |
---|---|
static StaticDictionaryInterfaceToStringTransform |
defaultInstance
An object which can perform a default transform from StaticDictionaryInterface to String . |
Constructor Summary | |
---|---|
StaticDictionaryInterfaceToStringTransform()
Default constructor. |
|
StaticDictionaryInterfaceToStringTransform(char delimiter,
char separator,
boolean alwaysQuote)
Value constructor. |
Method Summary | |
---|---|
protected static char |
defaultDelimiterChar()
|
java.lang.Class |
getInputClass()
|
java.lang.Class |
getOutputClass()
|
protected java.lang.String |
quote(java.lang.Object item)
|
java.lang.Object |
transform(com.sas.collection.AssociationListInterface object)
Transform an object. |
java.lang.Object |
transform(java.lang.Object object)
Transform an object. |
Field Detail |
---|
public static final StaticDictionaryInterfaceToStringTransform defaultInstance
StaticDictionaryInterface
to String
.
Constructor Detail |
---|
public StaticDictionaryInterfaceToStringTransform()
StaticDictionaryInterface
into a String
,
using the default delimiter ','
and always quoting strings.
public StaticDictionaryInterfaceToStringTransform(char delimiter, char separator, boolean alwaysQuote)
StaticDictionaryInterface
into a String
,
using the specific delimiter and quoting.
- Parameters:
delimiter
- character to separate the string items in the resultseparator
- a separator which appears between the keys and the valuesalwaysQuote
- if true
, each string is quoted, else only
special strings are quoted.
Method Detail |
---|
protected static char defaultDelimiterChar()
public java.lang.Object transform(java.lang.Object object)
StaticDictionaryInterface
to a String
.
transform
in interface com.sas.util.transforms.TransformInterface
object
- an input object. Must be null
or an instance of StaticDictionaryInterface
public java.lang.Object transform(com.sas.collection.AssociationListInterface object)
StaticDictionaryInterface
to a String
.
object
- an input object. Must be null
or an instance of StaticDictionaryInterface
protected java.lang.String quote(java.lang.Object item)
public java.lang.Class getInputClass()
getInputClass
in interface com.sas.util.transforms.TransformInputOutputInterface
public java.lang.Class getOutputClass()
getOutputClass
in interface com.sas.util.transforms.TransformInputOutputInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |