public enum TocOptionTypes extends Enum<TocOptionTypes> implements com.vladsch.flexmark.util.options.OptionParser<TocOptions>
| Enum Constant and Description |
|---|
BULLETS |
FLAT |
FLAT_REVERSED |
FORMATTED |
HIERARCHY |
LEVELS |
NUMERIC |
SORTED |
SORTED_REVERSED |
TEXT |
| Modifier and Type | Field and Description |
|---|---|
static com.vladsch.flexmark.util.options.OptionParser<TocOptions>[] |
OPTIONS |
com.vladsch.flexmark.util.options.OptionParser<TocOptions> |
parser |
| Modifier and Type | Method and Description |
|---|---|
String |
getOptionName() |
String |
getOptionText(TocOptions options,
TocOptions defaultOptions) |
com.vladsch.flexmark.util.misc.Pair<TocOptions,List<com.vladsch.flexmark.util.options.ParsedOption<TocOptions>>> |
parseOption(com.vladsch.flexmark.util.sequence.BasedSequence optionText,
TocOptions options,
com.vladsch.flexmark.util.options.MessageProvider provider) |
static TocOptionTypes |
valueOf(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.
|
public static final TocOptionTypes LEVELS
public static final TocOptionTypes BULLETS
public static final TocOptionTypes NUMERIC
public static final TocOptionTypes TEXT
public static final TocOptionTypes FORMATTED
public static final TocOptionTypes HIERARCHY
public static final TocOptionTypes FLAT
public static final TocOptionTypes FLAT_REVERSED
public static final TocOptionTypes SORTED
public static final TocOptionTypes SORTED_REVERSED
public final com.vladsch.flexmark.util.options.OptionParser<TocOptions> parser
public static final com.vladsch.flexmark.util.options.OptionParser<TocOptions>[] OPTIONS
public static TocOptionTypes[] values()
for (TocOptionTypes c : TocOptionTypes.values()) System.out.println(c);
public static TocOptionTypes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getOptionName()
getOptionName in interface com.vladsch.flexmark.util.options.OptionParser<TocOptions>public com.vladsch.flexmark.util.misc.Pair<TocOptions,List<com.vladsch.flexmark.util.options.ParsedOption<TocOptions>>> parseOption(com.vladsch.flexmark.util.sequence.BasedSequence optionText, TocOptions options, com.vladsch.flexmark.util.options.MessageProvider provider)
parseOption in interface com.vladsch.flexmark.util.options.OptionParser<TocOptions>public String getOptionText(TocOptions options, TocOptions defaultOptions)
getOptionText in interface com.vladsch.flexmark.util.options.OptionParser<TocOptions>Copyright © 2020. All rights reserved.