public final class DynamicEnumerationType extends Object implements TextDataType
| Constructor and Description |
|---|
DynamicEnumerationType(DynamicEnum type)
Create a text data type for parsing/formatting
|
| Modifier and Type | Method and Description |
|---|---|
TokenParser |
createParser(TextConversionContext ctx)
Creates a new parser for converting text into token values
|
TokenFormatter |
getFormatter(TextConversionContext ctx)
Creates a new formatter for converting token values into text
|
String |
getNullIndicator(TextConversionDefaults defaults)
Gets the string used to indicate null values for the type.
|
ScalarTokenType |
getTokenType()
Gets the token type used internally for the external type.
|
DynamicEnum |
getType() |
String |
toPattern()
Gets a string representing the format.
|
public DynamicEnumerationType(DynamicEnum type)
type - public DynamicEnum getType()
public ScalarTokenType getTokenType()
TextDataTypegetTokenType in interface TextDataTypepublic TokenParser createParser(TextConversionContext ctx)
TextDataTypecreateParser in interface TextDataTypectx - context containing additional information needed by parserpublic TokenFormatter getFormatter(TextConversionContext ctx)
TextDataTypegetFormatter in interface TextDataTypectx - context containing additional information needed by parserpublic String toPattern()
TextDataTypetoPattern in interface TextDataTypenull
if the format cannot be expressed this waypublic String getNullIndicator(TextConversionDefaults defaults)
TextDataTypegetNullIndicator in interface TextDataTypedefaults - the schema defaults for the containing schemaCopyright © 2020 Actian Corporation. All rights reserved.