net.sf.saxon.s9api
public class WhitespaceStrippingPolicy extends Enum<WhitespaceStrippingPolicy>
Field Summary | |
---|---|
static WhitespaceStrippingPolicy | ALL
The value ALL indicates that all whitespace-only text nodes are discarded. |
static WhitespaceStrippingPolicy | IGNORABLE
The value IGNORABLE indicates that whitespace text nodes in element-only content are
discarded. |
static WhitespaceStrippingPolicy | NONE
The value NONE indicates that all whitespace text nodes are retained |
static WhitespaceStrippingPolicy | UNSPECIFIED
UNSPECIFIED means that no other value has been specifically requested. |
static List<WhitespaceStrippingPolicy> | VALUES An immutable list containing the values comprising this enum class in the order they're declared. |
Method Summary | |
---|---|
List<WhitespaceStrippingPolicy> | family() Returns an immutable list containing the values comprising this enum class in the order they're declared. |
static WhitespaceStrippingPolicy | valueOf(String name) Static factory to return the enum constant pertaining to the given string name. |
for(WhitespaceStrippingPolicy c : WhitespaceStrippingPolicy.VALUES) System.out.println(c);
VALUES
. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES
.Returns: an immutable list containing the values comprising this enum class, in the order they're declared.
Throws: IllegalArgumentException if this enum class has no constant with the specified name.