Package io.markdom.common
Enum MarkdomNodeKind
- java.lang.Object
-
- java.lang.Enum<MarkdomNodeKind>
-
- io.markdom.common.MarkdomNodeKind
-
- All Implemented Interfaces:
Serializable,Comparable<MarkdomNodeKind>
public enum MarkdomNodeKind extends Enum<MarkdomNodeKind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CODE_BLOCKCODE_CONTENTCOMMENT_BLOCKDIVISION_BLOCKDOCUMENTEMPHASIS_CONTENTHEADING_BLOCKIMAGE_CONTENTLINE_BREAK_CONTENTLINK_CONTENTLIST_ITEMORDERED_LIST_BLOCKPARAGRAPH_BLOCKQUOTE_BLOCKTEXT_CONTENTUNORDERED_LIST_BLOCK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MarkdomNodeKindvalueOf(String name)Returns the enum constant of this type with the specified name.static MarkdomNodeKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENT
public static final MarkdomNodeKind DOCUMENT
-
CODE_BLOCK
public static final MarkdomNodeKind CODE_BLOCK
-
COMMENT_BLOCK
public static final MarkdomNodeKind COMMENT_BLOCK
-
DIVISION_BLOCK
public static final MarkdomNodeKind DIVISION_BLOCK
-
HEADING_BLOCK
public static final MarkdomNodeKind HEADING_BLOCK
-
ORDERED_LIST_BLOCK
public static final MarkdomNodeKind ORDERED_LIST_BLOCK
-
PARAGRAPH_BLOCK
public static final MarkdomNodeKind PARAGRAPH_BLOCK
-
QUOTE_BLOCK
public static final MarkdomNodeKind QUOTE_BLOCK
-
UNORDERED_LIST_BLOCK
public static final MarkdomNodeKind UNORDERED_LIST_BLOCK
-
LIST_ITEM
public static final MarkdomNodeKind LIST_ITEM
-
CODE_CONTENT
public static final MarkdomNodeKind CODE_CONTENT
-
EMPHASIS_CONTENT
public static final MarkdomNodeKind EMPHASIS_CONTENT
-
IMAGE_CONTENT
public static final MarkdomNodeKind IMAGE_CONTENT
-
LINE_BREAK_CONTENT
public static final MarkdomNodeKind LINE_BREAK_CONTENT
-
LINK_CONTENT
public static final MarkdomNodeKind LINK_CONTENT
-
TEXT_CONTENT
public static final MarkdomNodeKind TEXT_CONTENT
-
-
Method Detail
-
values
public static MarkdomNodeKind[] 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 (MarkdomNodeKind c : MarkdomNodeKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkdomNodeKind 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
-
-