public final class TextConversionContext extends Object
TokenParser's and TokenFormatter's.| Constructor and Description |
|---|
TextConversionContext()
Creates the default TextConversionContext
|
TextConversionContext(TextConversionDefaults defaults,
FieldDomain domain)
Creates a new text conversion context
|
| Modifier and Type | Method and Description |
|---|---|
String |
applyDefaultNullMarker(String value)
Merges the given null indicator with the default.
|
TextTypes.StringConversion |
applyDefaultStringHandling(TextTypes.StringConversion value)
Merges the given string conversion behavior with the default.
|
TextConversionDefaults |
getDefaults()
Returns the default conversion behavior to use, if the type does not specify one.
|
FieldDomain |
getDomain()
Returns the domain that contains the allowed values for the field.
|
public TextConversionContext()
public TextConversionContext(TextConversionDefaults defaults, FieldDomain domain)
defaults - the default conversion behavior to use, if the type does not specify one.domain - the domain of the fieldpublic TextConversionDefaults getDefaults()
public FieldDomain getDomain()
public String applyDefaultNullMarker(String value)
value - the input null indicatorvalue if value != null,
otherwise the null indicator value in the defaultspublic TextTypes.StringConversion applyDefaultStringHandling(TextTypes.StringConversion value)
value - the input string conversion behaviorvalue if value != null,
otherwise the string conversion behavior in the defaultsCopyright © 2020 Actian Corporation. All rights reserved.