Package com.yetnt.utils.builders
Enum Class InlineHTML.Heading
- All Implemented Interfaces:
Serializable,Comparable<InlineHTML.Heading>,Constable
- Enclosing class:
InlineHTML
An enumeration representing standard HTML heading tags (H1 to H6).
Each enum constant stores the opening and closing tag strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InlineHTML.HeadingfromInt(int headerLevel) getLeft()Returns the opening HTML tag for this heading.getRight()Returns the closing HTML tag for this heading.static InlineHTML.HeadingReturns the enum constant of this class with the specified name.static InlineHTML.Heading[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
H1
Represents an H1 heading tag. -
H2
Represents an H2 heading tag. -
H3
Represents an H3 heading tag. -
H4
Represents an H4 heading tag. -
H5
-
H6
-
-
Field Details
-
left
-
right
-
-
Constructor Details
-
Heading
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromInt
-
getRight
Returns the closing HTML tag for this heading.- Returns:
- The closing tag string (e.g.,
"</h1>").
-
getLeft
Returns the opening HTML tag for this heading.- Returns:
- The opening tag string (e.g.,
"<h1>").
-