Package net.sf.saxon.s9api
Enum Class WhitespaceStrippingPolicy
- All Implemented Interfaces:
Serializable
,Comparable<WhitespaceStrippingPolicy>
,Constable
WhitespaceStrippingPolicy is an enumeration class defining the possible policies for handling
whitespace text nodes in a source document.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe value ALL indicates that all whitespace-only text nodes are discarded.The value IGNORABLE indicates that whitespace text nodes in element-only content are discarded.The value NONE indicates that all whitespace text nodes are retainedUNSPECIFIED means that no other value has been specifically requested. -
Method Summary
Modifier and TypeMethodDescriptionstatic WhitespaceStrippingPolicy
Returns the enum constant of this class with the specified name.static WhitespaceStrippingPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The value NONE indicates that all whitespace text nodes are retained -
IGNORABLE
The value IGNORABLE indicates that whitespace text nodes in element-only content are discarded. Content is element-only if it is defined by a schema or DTD definition that does not allow mixed or PCDATA content. -
ALL
The value ALL indicates that all whitespace-only text nodes are discarded. -
UNSPECIFIED
UNSPECIFIED means that no other value has been specifically requested.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-