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.StringKEY_OPTION_0_VALUE_1_NOT_IN_RANGEstatic java.lang.StringKEY_OPTION_0_VALUE_1_NOT_INTEGERstatic java.lang.StringKEY_OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGEstatic java.lang.StringKEY_OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2private java.lang.StringmyOptionNamestatic java.lang.StringOPTION_0_VALUE_1_NOT_IN_RANGEstatic java.lang.StringOPTION_0_VALUE_1_NOT_INTEGERstatic java.lang.StringOPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGEstatic java.lang.StringOPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2private static java.util.Map<java.lang.Integer,java.lang.String>TOC_LEVELS_MAP
-
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.StringgetOptionName()java.lang.StringgetOptionText(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
-
myOptionName
private final java.lang.String myOptionName
-
TOC_LEVELS_MAP
private static final java.util.Map<java.lang.Integer,java.lang.String> TOC_LEVELS_MAP
-
-
Method Detail
-
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>
-
-