public class GenericObjectFormatter extends Object
| Constructor and Description |
|---|
GenericObjectFormatter(ObjectTokenType<?> type)
Creates a ormatter using the specified object type.
|
GenericObjectFormatter(ObjectTokenType<?> type,
String nullIndicator)
Creates a formatter using the specified object type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format()
Formats the current value of the source as a text value.
|
void |
setSource(ScalarValued source)
Sets the container holding values to be formatted.
|
public GenericObjectFormatter(ObjectTokenType<?> type)
type - the object for which the formatter is definedpublic GenericObjectFormatter(ObjectTokenType<?> type, String nullIndicator)
type - the object for which the formatter is definednullIndicator - the text value to use fo null valuespublic final void setSource(ScalarValued source)
TokenFormattersetSource in interface TokenFormattersource - the value container to formatpublic final String format()
TokenFormatterformat in interface TokenFormatterCopyright © 2021 Actian Corporation. All rights reserved.