Class TocLevelsOptionParser
- java.lang.Object
-
- com.vladsch.flexmark.ext.toc.internal.TocLevelsOptionParser
-
- All Implemented Interfaces:
OptionParser<TocOptions>
public class TocLevelsOptionParser extends java.lang.Object implements OptionParser<TocOptions>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_OPTION_0_VALUE_1_NOT_IN_RANGE
static java.lang.String
KEY_OPTION_0_VALUE_1_NOT_INTEGER
static java.lang.String
KEY_OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
static java.lang.String
KEY_OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
static java.lang.String
OPTION_0_VALUE_1_NOT_IN_RANGE
static java.lang.String
OPTION_0_VALUE_1_NOT_INTEGER
static java.lang.String
OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
static java.lang.String
OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
-
Constructor Summary
Constructors Constructor Description TocLevelsOptionParser(java.lang.String optionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOptionName()
java.lang.String
getOptionText(TocOptions options, TocOptions defaultOptions)
Pair<TocOptions,java.util.List<ParsedOption<TocOptions>>>
parseOption(BasedSequence optionText, TocOptions options, MessageProvider provider)
-
-
-
Field Detail
-
OPTION_0_VALUE_1_NOT_IN_RANGE
public static final java.lang.String OPTION_0_VALUE_1_NOT_IN_RANGE
- See Also:
- Constant Field Values
-
KEY_OPTION_0_VALUE_1_NOT_IN_RANGE
public static final java.lang.String KEY_OPTION_0_VALUE_1_NOT_IN_RANGE
- See Also:
- Constant Field Values
-
OPTION_0_VALUE_1_NOT_INTEGER
public static final java.lang.String OPTION_0_VALUE_1_NOT_INTEGER
- See Also:
- Constant Field Values
-
KEY_OPTION_0_VALUE_1_NOT_INTEGER
public static final java.lang.String KEY_OPTION_0_VALUE_1_NOT_INTEGER
- See Also:
- Constant Field Values
-
OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
public static final java.lang.String OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
- See Also:
- Constant Field Values
-
KEY_OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
public static final java.lang.String KEY_OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
- See Also:
- Constant Field Values
-
OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
public static final java.lang.String OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
- See Also:
- Constant Field Values
-
KEY_OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
public static final java.lang.String KEY_OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOptionName
public java.lang.String getOptionName()
- Specified by:
getOptionName
in interfaceOptionParser<TocOptions>
-
parseOption
public Pair<TocOptions,java.util.List<ParsedOption<TocOptions>>> parseOption(BasedSequence optionText, TocOptions options, MessageProvider provider)
- Specified by:
parseOption
in interfaceOptionParser<TocOptions>
-
getOptionText
public java.lang.String getOptionText(TocOptions options, TocOptions defaultOptions)
- Specified by:
getOptionText
in interfaceOptionParser<TocOptions>
-
-