public final class TextConversionDefaults extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NULL_MARKER
The default text value used to indicate a null value, the empty string ("").
|
Constructor and Description |
---|
TextConversionDefaults()
Creates a descriptor specifying default behavior.
|
TextConversionDefaults(String nullIndicator)
Creates a descriptor having the specified null indicator.
|
TextConversionDefaults(String nullIndicator,
TextTypes.StringConversion behavior)
Creates a descriptor having the specified behavior.
|
TextConversionDefaults(TextTypes.StringConversion behavior)
Creates a descriptor having the specified string processing
behavior.
|
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.
|
boolean |
equals(Object o) |
String |
getNullIndicator()
Gets the text value used to represent null values.
|
TextTypes.StringConversion |
getStringHandling()
Gets the behavior for processing string-valued types.
|
int |
hashCode() |
void |
setNullIndicator(String value)
Sets the text value used to represent null values.
|
void |
setStringHandling(TextTypes.StringConversion behavior)
Sets the behavior for processing string-valued types.
|
public static final String DEFAULT_NULL_MARKER
public TextConversionDefaults()
public TextConversionDefaults(String nullIndicator)
nullIndicator
- the string used to represent a null valuepublic TextConversionDefaults(TextTypes.StringConversion behavior)
behavior
- indicates how string-valued type should be converted
from textpublic TextConversionDefaults(String nullIndicator, TextTypes.StringConversion behavior)
nullIndicator
- the string used to represent a null valuebehavior
- indicates how string-valued type should be converted
from textpublic String getNullIndicator()
public String applyDefaultNullMarker(String value)
value
- the input null indicatorvalue
if value != null
,
otherwise the null indicator value in the defaultspublic void setNullIndicator(String value)
value
- the string used to indicate a null valuepublic TextTypes.StringConversion getStringHandling()
public void setStringHandling(TextTypes.StringConversion behavior)
behavior
- indicates how string-valued types should be converted
from textpublic TextTypes.StringConversion applyDefaultStringHandling(TextTypes.StringConversion value)
value
- the input string conversion behaviorvalue
if value != null
,
otherwise the string conversion behavior in the defaultsCopyright © 2019 Actian Corporation. All rights reserved.