Enum Class WhitespaceStrippingPolicy

java.lang.Object
java.lang.Enum<WhitespaceStrippingPolicy>
net.sf.saxon.s9api.WhitespaceStrippingPolicy
All Implemented Interfaces:
Serializable, Comparable<WhitespaceStrippingPolicy>, Constable

public enum WhitespaceStrippingPolicy extends Enum<WhitespaceStrippingPolicy>
WhitespaceStrippingPolicy is an enumeration class defining the possible policies for handling whitespace text nodes in a source document.
  • Enum Constant Details

    • NONE

      public static final WhitespaceStrippingPolicy NONE
      The value NONE indicates that all whitespace text nodes are retained
    • IGNORABLE

      public static final WhitespaceStrippingPolicy 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

      public static final WhitespaceStrippingPolicy ALL
      The value ALL indicates that all whitespace-only text nodes are discarded.
    • UNSPECIFIED

      public static final WhitespaceStrippingPolicy UNSPECIFIED
      UNSPECIFIED means that no other value has been specifically requested.
  • Method Details

    • values

      public static WhitespaceStrippingPolicy[] 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

      public static WhitespaceStrippingPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null