public static enum TextTypes.StringConversion extends Enum<TextTypes.StringConversion>
Enum Constant and Description |
---|
NULLABLE_RAW
Leading and trailing whitespace is preserved and the empty string is parsed as a null value.
|
NULLABLE_TRIMMED
Leading and trailing whitespace is removed and the empty string is parsed as a null value.
|
RAW
Leading and trailing whitespace is preserved.
|
TRIMMED
Leading and trailing whitespace is removed.
|
Modifier and Type | Method and Description |
---|---|
static TextTypes.StringConversion |
getConversion(boolean trimWhitespace,
boolean nullable)
Gets the conversion with the specified properties.
|
boolean |
isNullable()
Indicates whether the empty string is converted to a null value or
preserved as the empty string.
|
boolean |
isTrimmed()
Indicates whether the conversion trims leading and trailing whitespace.
|
static TextTypes.StringConversion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextTypes.StringConversion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextTypes.StringConversion RAW
public static final TextTypes.StringConversion NULLABLE_RAW
public static final TextTypes.StringConversion TRIMMED
public static final TextTypes.StringConversion NULLABLE_TRIMMED
public static TextTypes.StringConversion[] values()
for (TextTypes.StringConversion c : TextTypes.StringConversion.values()) System.out.println(c);
public static TextTypes.StringConversion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTrimmed()
true
if the conversion will trim whitespace,
otherwise false
.public boolean isNullable()
true
if the conversion translates the empty string,
otherwise false
.public static TextTypes.StringConversion getConversion(boolean trimWhitespace, boolean nullable)
trimWhitespace
- whether the conversion should trim whitespacenullable
- whether the conversion translates the empty string to nullCopyright © 2019 Actian Corporation. All rights reserved.