Enum Class XMLTextEscapeStyle

java.lang.Object
java.lang.Enum<XMLTextEscapeStyle>
org.apache.daffodil.api.infoset.XMLTextEscapeStyle
All Implemented Interfaces:
Serializable, Comparable<XMLTextEscapeStyle>, Constable

public enum XMLTextEscapeStyle extends Enum<XMLTextEscapeStyle>
XMLTextEscapeStyles for determining whether to wrap info in CDATA tags
  • Enum Constant Details

    • Standard

      public static final XMLTextEscapeStyle Standard
      Special characters (quotation mark, ampersand, less-than, greater-than) in the text of xs:string elements are escaped, while non-special characters are written as is.
    • CDATA

      public static final XMLTextEscapeStyle CDATA
      The text of xs:string elements are wrapped in CDATA tags if the string contains special characters (quotation mark, ampersand, less-than, greater-than) or whitespace
  • Method Details

    • values

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