Enum Class InlineHTML.Heading

java.lang.Object
java.lang.Enum<InlineHTML.Heading>
com.yetnt.utils.builders.InlineHTML.Heading
All Implemented Interfaces:
Serializable, Comparable<InlineHTML.Heading>, Constable
Enclosing class:
InlineHTML

public static enum InlineHTML.Heading extends Enum<InlineHTML.Heading>
An enumeration representing standard HTML heading tags (H1 to H6). Each enum constant stores the opening and closing tag strings.
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • Heading

      private Heading(String i)
  • Method Details

    • values

      public static InlineHTML.Heading[] 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 InlineHTML.Heading 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
    • fromInt

      public static InlineHTML.Heading fromInt(int headerLevel)
    • getRight

      public String getRight()
      Returns the closing HTML tag for this heading.
      Returns:
      The closing tag string (e.g., "</h1>").
    • getLeft

      public String getLeft()
      Returns the opening HTML tag for this heading.
      Returns:
      The opening tag string (e.g., "<h1>").