public enum WhitespaceStrippingPolicy extends java.lang.Enum<WhitespaceStrippingPolicy>
Enum Constant and Description |
---|
ALL
The value ALL indicates that all whitespace-only text nodes are discarded.
|
IGNORABLE
The value IGNORABLE indicates that whitespace text nodes in element-only content are
discarded.
|
NONE
The value NONE indicates that all whitespace text nodes are retained
|
UNSPECIFIED
UNSPECIFIED means that no other value has been specifically requested.
|
Modifier and Type | Method and Description |
---|---|
static WhitespaceStrippingPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WhitespaceStrippingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WhitespaceStrippingPolicy NONE
public static final WhitespaceStrippingPolicy IGNORABLE
public static final WhitespaceStrippingPolicy ALL
public static final WhitespaceStrippingPolicy UNSPECIFIED
public static WhitespaceStrippingPolicy[] values()
for (WhitespaceStrippingPolicy c : WhitespaceStrippingPolicy.values()) System.out.println(c);
public static WhitespaceStrippingPolicy 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 null