public static enum TrimExpression.Specification extends java.lang.Enum<TrimExpression.Specification>
Enum Constant and Description |
---|
BOTH
The leading and trailing parts of the string will be trimmed.
|
DEFAULT
Used when the trim specification is not specified, by default it means the leading and
trailing parts of the string will be trimmed.
|
LEADING
Only the leading part of the string will be trimmed.
|
TRAILING
Only the trailing part of the string will be trimmed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Returns the actual identifier associated with the constant.
|
static TrimExpression.Specification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrimExpression.Specification[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrimExpression.Specification BOTH
public static final TrimExpression.Specification DEFAULT
public static final TrimExpression.Specification LEADING
public static final TrimExpression.Specification TRAILING
public static TrimExpression.Specification[] values()
for (TrimExpression.Specification c : TrimExpression.Specification.values()) System.out.println(c);
public static TrimExpression.Specification valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
DEFAULT