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()
TextDataType
getTokenType
in interface TextDataType
public TokenParser createParser(TextConversionContext ctx)
TextDataType
createParser
in interface TextDataType
ctx
- context containing additional information needed by parserpublic TokenFormatter getFormatter(TextConversionContext ctx)
TextDataType
getFormatter
in interface TextDataType
ctx
- context containing additional information needed by parserpublic String toPattern()
TextDataType
toPattern
in interface TextDataType
null
if the format cannot be expressed this waypublic String getNullIndicator(TextConversionDefaults defaults)
TextDataType
getNullIndicator
in interface TextDataType
defaults
- the schema defaults for the containing schemaCopyright © 2016 Actian Corporation. All rights reserved.