Enum Class ParseNodeType

java.lang.Object
java.lang.Enum<ParseNodeType>
com.renomad.minum.htmlparsing.ParseNodeType
All Implemented Interfaces:
Serializable, Comparable<ParseNodeType>, Constable

public enum ParseNodeType extends Enum<ParseNodeType>
The different kinds of things in an HTML document.
  • Enum Constant Details

    • ELEMENT

      public static final ParseNodeType ELEMENT
      An HTML element.

      For example, a p (paragraph) or div (division)

    • CHARACTERS

      public static final ParseNodeType CHARACTERS
      String content inside an HTML element

      For example, <p>Hi I am the content</p>

  • Method Details

    • values

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