Enum Class BlockType
- All Implemented Interfaces:
Serializable, Comparable<BlockType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA block quote.A code block.A fenced code block.A headline.A list item.Unspecified.An ordered list.A paragraph.A horizontal ruler.An unordered list.A XML block. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
NONE
Unspecified. Used for root block and list items without paragraphs. -
BLOCKQUOTE
A block quote. -
CODE
A code block. -
FENCED_CODE
A fenced code block. -
HEADLINE
A headline. -
LIST_ITEM
A list item. -
ORDERED_LIST
An ordered list. -
PARAGRAPH
A paragraph. -
RULER
A horizontal ruler. -
UNORDERED_LIST
An unordered list. -
XML
A XML block.
-
-
Constructor Details
-
BlockType
private BlockType()
-
-
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
-