Package io.markdom.common
Enum MarkdomBlockType
- java.lang.Object
-
- java.lang.Enum<MarkdomBlockType>
-
- io.markdom.common.MarkdomBlockType
-
- All Implemented Interfaces:
Serializable,Comparable<MarkdomBlockType>
public enum MarkdomBlockType extends Enum<MarkdomBlockType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CODECOMMENTDIVISIONHEADINGORDERED_LISTPARAGRAPHQUOTEUNORDERED_LIST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarkdomBlockTypefromName(String value)StringtoName()static MarkdomBlockTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MarkdomBlockType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CODE
public static final MarkdomBlockType CODE
-
COMMENT
public static final MarkdomBlockType COMMENT
-
DIVISION
public static final MarkdomBlockType DIVISION
-
HEADING
public static final MarkdomBlockType HEADING
-
ORDERED_LIST
public static final MarkdomBlockType ORDERED_LIST
-
PARAGRAPH
public static final MarkdomBlockType PARAGRAPH
-
QUOTE
public static final MarkdomBlockType QUOTE
-
UNORDERED_LIST
public static final MarkdomBlockType UNORDERED_LIST
-
-
Method Detail
-
values
public static MarkdomBlockType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MarkdomBlockType c : MarkdomBlockType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkdomBlockType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toName
public String toName()
-
fromName
public static MarkdomBlockType fromName(String value) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-