Enum TocOptionTypes
- java.lang.Object
-
- java.lang.Enum<TocOptionTypes>
-
- com.vladsch.flexmark.ext.toc.internal.TocOptionTypes
-
- All Implemented Interfaces:
OptionParser<TocOptions>,java.io.Serializable,java.lang.Comparable<TocOptionTypes>
public enum TocOptionTypes extends java.lang.Enum<TocOptionTypes> implements OptionParser<TocOptions>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTocOptionTypes.Constants
-
Enum Constant Summary
Enum Constants Enum Constant Description BULLETSFLATFLAT_REVERSEDFORMATTEDHIERARCHYLEVELSNUMERICSORTEDSORTED_REVERSEDTEXT
-
Field Summary
Fields Modifier and Type Field Description static OptionParser<TocOptions>[]OPTIONSOptionParser<TocOptions>parser
-
Constructor Summary
Constructors Modifier Constructor Description privateTocOptionTypes(OptionParser<TocOptions> parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetOptionName()java.lang.StringgetOptionText(TocOptions options, TocOptions defaultOptions)Pair<TocOptions,java.util.List<ParsedOption<TocOptions>>>parseOption(BasedSequence optionText, TocOptions options, MessageProvider provider)static TocOptionTypesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TocOptionTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEVELS
public static final TocOptionTypes LEVELS
-
BULLETS
public static final TocOptionTypes BULLETS
-
NUMERIC
public static final TocOptionTypes NUMERIC
-
TEXT
public static final TocOptionTypes TEXT
-
FORMATTED
public static final TocOptionTypes FORMATTED
-
HIERARCHY
public static final TocOptionTypes HIERARCHY
-
FLAT
public static final TocOptionTypes FLAT
-
FLAT_REVERSED
public static final TocOptionTypes FLAT_REVERSED
-
SORTED
public static final TocOptionTypes SORTED
-
SORTED_REVERSED
public static final TocOptionTypes SORTED_REVERSED
-
-
Field Detail
-
parser
public final OptionParser<TocOptions> parser
-
OPTIONS
public static final OptionParser<TocOptions>[] OPTIONS
-
-
Constructor Detail
-
TocOptionTypes
private TocOptionTypes(OptionParser<TocOptions> parser)
-
-
Method Detail
-
values
public static TocOptionTypes[] 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 (TocOptionTypes c : TocOptionTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TocOptionTypes valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getOptionName
public java.lang.String getOptionName()
- Specified by:
getOptionNamein interfaceOptionParser<TocOptions>
-
parseOption
public Pair<TocOptions,java.util.List<ParsedOption<TocOptions>>> parseOption(BasedSequence optionText, TocOptions options, MessageProvider provider)
- Specified by:
parseOptionin interfaceOptionParser<TocOptions>
-
getOptionText
public java.lang.String getOptionText(TocOptions options, TocOptions defaultOptions)
- Specified by:
getOptionTextin interfaceOptionParser<TocOptions>
-
-