Enum EMicroNodeType

java.lang.Object
java.lang.Enum<EMicroNodeType>
com.helger.xml.microdom.EMicroNodeType
All Implemented Interfaces:
com.helger.commons.id.IHasIntID, Serializable, Comparable<EMicroNodeType>, java.lang.constant.Constable

public enum EMicroNodeType extends Enum<EMicroNodeType> implements com.helger.commons.id.IHasIntID
Denotes the type of IMicroNode objects.
Author:
Philip Helger
  • Enum Constant Details

  • Field Details

    • ILLEGAL_DOM_NODE_TYPE

      public static final short ILLEGAL_DOM_NODE_TYPE
      Represents a non-existing DOM Node Type
      See Also:
  • Method Details

    • values

      public static EMicroNodeType[] 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 EMicroNodeType 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
    • getID

      @Nonnegative public int getID()
      Specified by:
      getID in interface com.helger.commons.id.IHasIntID
    • hasCorrespondingDOMNodeType

      public boolean hasCorrespondingDOMNodeType()
      Returns:
      true if this micro node type has a corresponding DOM node type. false if not.
    • getDOMNodeType

      public short getDOMNodeType()
      Returns:
      The corresponding DOM node type or ILLEGAL_DOM_NODE_TYPE if this micro node type has no corresponding DOM node type.
    • isCDATA

      public boolean isCDATA()
    • isText

      public boolean isText()
    • getFromIDOrNull

      @Nullable public static EMicroNodeType getFromIDOrNull(int nID)