- java.lang.Object
- 
- com.pervasive.datarush.encoding.text.GenericObjectFormatter
 
- 
- All Implemented Interfaces:
- TokenFormatter
 
 public class GenericObjectFormatter extends Object A formatter representing object token values as text values. Objects are mapped to their default toString output.
- 
- 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat()Formats the current value of the source as a text value.voidsetSource(ScalarValued source)Sets the container holding values to be formatted.
 
- 
- 
- 
Constructor Detail- 
GenericObjectFormatterpublic GenericObjectFormatter(ObjectTokenType<?> type) Creates a ormatter using the specified object type. Null values are output as the empty string.- Parameters:
- type- the object for which the formatter is defined
 
 - 
GenericObjectFormatterpublic GenericObjectFormatter(ObjectTokenType<?> type, String nullIndicator) Creates a formatter using the specified object type.- Parameters:
- type- the object for which the formatter is defined
- nullIndicator- the text value to use fo null values
 
 
- 
 - 
Method Detail- 
setSourcepublic final void setSource(ScalarValued source) Description copied from interface:TokenFormatterSets the container holding values to be formatted. A reference to this container is held and accessed only when an formatting is requested.- Specified by:
- setSourcein interface- TokenFormatter
- Parameters:
- source- the value container to format
 
 - 
formatpublic final String format() Description copied from interface:TokenFormatterFormats the current value of the source as a text value.- Specified by:
- formatin interface- TokenFormatter
- Returns:
- the value of the source as a string
 
 
- 
 
-