public class TocLevelsOptionParser extends Object implements OptionParser<TocOptions>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_OPTION_0_VALUE_1_NOT_IN_RANGE |
static String |
KEY_OPTION_0_VALUE_1_NOT_INTEGER |
static String |
KEY_OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE |
static String |
KEY_OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2 |
static String |
OPTION_0_VALUE_1_NOT_IN_RANGE |
static String |
OPTION_0_VALUE_1_NOT_INTEGER |
static String |
OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE |
static String |
OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2 |
| Constructor and Description |
|---|
TocLevelsOptionParser(String optionName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getOptionName() |
String |
getOptionText(TocOptions options,
TocOptions defaultOptions) |
Pair<TocOptions,List<ParsedOption<TocOptions>>> |
parseOption(BasedSequence optionText,
TocOptions options,
MessageProvider provider) |
public static final String OPTION_0_VALUE_1_NOT_IN_RANGE
public static final String KEY_OPTION_0_VALUE_1_NOT_IN_RANGE
public static final String OPTION_0_VALUE_1_NOT_INTEGER
public static final String KEY_OPTION_0_VALUE_1_NOT_INTEGER
public static final String OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
public static final String KEY_OPTION_0_VALUE_1_TRUNCATED_TO_RANGE_2
public static final String OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
public static final String KEY_OPTION_0_VALUE_1_TRUNCATED_TO_EMPTY_RANGE
public TocLevelsOptionParser(String optionName)
public String getOptionName()
getOptionName in interface OptionParser<TocOptions>public Pair<TocOptions,List<ParsedOption<TocOptions>>> parseOption(BasedSequence optionText, TocOptions options, MessageProvider provider)
parseOption in interface OptionParser<TocOptions>public String getOptionText(TocOptions options, TocOptions defaultOptions)
getOptionText in interface OptionParser<TocOptions>Copyright © 2017. All rights reserved.