Enum Class XMQNodeType

All Implemented Interfaces:
Serializable, Comparable<XMQNodeType>, Constable

public enum XMQNodeType extends Enum<XMQNodeType>
The node types of the xmq DOM. They mirror the libxml2 xmlElementType values that xmq uses, since the xmq DOM is modelled after libxml2.
  • Enum Constant Details

    • ELEMENT

      public static final XMQNodeType ELEMENT
      An element, eg <a>.
    • ATTRIBUTE

      public static final XMQNodeType ATTRIBUTE
      An attribute, eg x="1".
    • TEXT

      public static final XMQNodeType TEXT
      A text node.
    • CDATA

      public static final XMQNodeType CDATA
      A cdata section.
    • ENTITY_REF

      public static final XMQNodeType ENTITY_REF
      An entity reference, eg &copy;
    • PI

      public static final XMQNodeType PI
      A processing instruction, eg <?target data?>
    • COMMENT

      public static final XMQNodeType COMMENT
      A comment.
    • DOCUMENT

      public static final XMQNodeType DOCUMENT
      An xml document.
    • HTML_DOCUMENT

      public static final XMQNodeType HTML_DOCUMENT
      An html document.
    • DTD

      public static final XMQNodeType DTD
      A document type definition, the internal subset.
    • ENTITY_DECL

      public static final XMQNodeType ENTITY_DECL
      An entity declaration inside a dtd.
    • ELEMENT_DECL

      public static final XMQNodeType ELEMENT_DECL
      An element declaration inside a dtd.
    • ATTRIBUTE_DECL

      public static final XMQNodeType ATTRIBUTE_DECL
      An attribute list declaration inside a dtd.
    • NOTATION_DECL

      public static final XMQNodeType NOTATION_DECL
      A notation declaration inside a dtd.
    • PE_REF

      public static final XMQNodeType PE_REF
      A parameter entity reference %name; between the declarations of a dtd, kept as written since entities are never expanded implicitly.
    • NAMESPACE

      public static final XMQNodeType NAMESPACE
      A namespace node, only created by xpath namespace axis evaluation.
  • Method Details

    • values

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