Enum Class TagType

java.lang.Object
java.lang.Enum<TagType>
jodd.lagarto.TagType
All Implemented Interfaces:
Serializable, Comparable<TagType>, Constable

public enum TagType extends Enum<TagType>
Tag type.
  • Enum Constant Details

    • START

      public static final TagType START
      Start tags: &lt;foo&gt;. Void tags are reported as start tags.
    • END

      public static final TagType END
      End tags: &lt;/foo&gt;.
    • SELF_CLOSING

      public static final TagType SELF_CLOSING
      Self closing tag: &lt;foo/&gt;.
  • Field Details

    • startString

      private final String startString
    • endString

      private final String endString
    • isStarting

      private final boolean isStarting
    • isEnding

      private final boolean isEnding
  • Constructor Details

    • TagType

      private TagType(String startString, String endString)
  • Method Details

    • values

      public static TagType[] 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 TagType 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
    • getStartString

      public String getStartString()
      Returns tags starting string.
    • getEndString

      public String getEndString()
      Returns tags ending string.
    • isStartingTag

      public boolean isStartingTag()
      Returns true if tag is START or SELF_CLOSING.
    • isEndingTag

      public boolean isEndingTag()
      Returns true if tag is END or SELF_CLOSING.