java.lang.Object
com.pervasive.datarush.schema.TextConversionContext
Contextual information needed by
TokenParser's and TokenFormatter's.-
Constructor Summary
ConstructorsConstructorDescriptionCreates the default TextConversionContextTextConversionContext(TextConversionDefaults defaults, FieldDomain domain) Creates a new text conversion context -
Method Summary
Modifier and TypeMethodDescriptionapplyDefaultNullMarker(String value) Merges the given null indicator with the default.Merges the given string conversion behavior with the default.Returns the default conversion behavior to use, if the type does not specify one.Returns the domain that contains the allowed values for the field.
-
Constructor Details
-
TextConversionContext
public TextConversionContext()Creates the default TextConversionContext -
TextConversionContext
Creates a new text conversion context- Parameters:
defaults- the default conversion behavior to use, if the type does not specify one.domain- the domain of the field
-
-
Method Details
-
getDefaults
Returns the default conversion behavior to use, if the type does not specify one.- Returns:
- the default conversion behavior
-
getDomain
Returns the domain that contains the allowed values for the field.- Returns:
- the domain of the field.
-
applyDefaultNullMarker
Merges the given null indicator with the default.- Parameters:
value- the input null indicator- Returns:
valueifvalue != null, otherwise the null indicator value in the defaults
-
applyDefaultStringHandling
Merges the given string conversion behavior with the default.- Parameters:
value- the input string conversion behavior- Returns:
valueifvalue != null, otherwise the string conversion behavior in the defaults
-