Package com.oorian.html.elements.consts
Enum Class OlMarkerType
- All Implemented Interfaces:
Serializable,Comparable<OlMarkerType>,Constable
Enumeration defining the marker types for ordered lists (ol elements).
This enum provides type-safe constants for the ordered list's "type" attribute,
which specifies the numbering style for list items.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the marker type value for use in ordered list elements.toString()static OlMarkerTypeReturns the enum constant of this class with the specified name.static OlMarkerType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE
Decimal numbers (1, 2, 3, 4...). This is the default numbering style for ordered lists. -
A
Uppercase alphabetic (A, B, C, D...). Uses capital letters for list item markers. -
a
Lowercase alphabetic (a, b, c, d...). Uses lowercase letters for list item markers. -
I
Uppercase Roman numerals (I, II, III, IV...). Uses capital Roman numerals for list item markers. -
i
Lowercase Roman numerals (i, ii, iii, iv...). Uses lowercase Roman numerals for list item markers.
-
-
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
-
getValue
Gets the marker type value for use in ordered list elements.- Returns:
- the string value used in HTML type attribute.
-
toString
- Overrides:
toStringin classEnum<OlMarkerType>
-