Package com.azure.xml

Enum XmlToken

java.lang.Object
java.lang.Enum<XmlToken>
com.azure.xml.XmlToken
All Implemented Interfaces:
Serializable, Comparable<XmlToken>, java.lang.constant.Constable

public enum XmlToken extends Enum<XmlToken>
Token types used when reading XML content.
  • Enum Constant Details

    • START_DOCUMENT

      public static final XmlToken START_DOCUMENT
      Indicates the start of an XML document.
    • END_DOCUMENT

      public static final XmlToken END_DOCUMENT
      Indicates the end of an XML document.
    • START_ELEMENT

      public static final XmlToken START_ELEMENT
      Indicates the start of an XML element.
    • END_ELEMENT

      public static final XmlToken END_ELEMENT
      Indicates the end of an XML element.
  • Method Details

    • values

      public static XmlToken[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static XmlToken valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null