public abstract class AbstractAllowedValuesRestriction extends AbstractCommonRestriction implements HelpHint
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
CASE_INSENSITIVE |
protected static boolean |
CASE_SENSITIVE |
protected boolean |
caseInsensitive |
protected Set<String> |
rawValues |
| Constructor and Description |
|---|
AbstractAllowedValuesRestriction(boolean caseInsensitive) |
| Modifier and Type | Method and Description |
|---|---|
protected static Set<Object> |
asObjects(Set<String> set) |
Set<String> |
getAllowedValues() |
String[] |
getContentBlock(int blockNumber)
Gets the content block with the given number
|
HelpFormat |
getFormat()
Gets the format of the provided help information
|
String |
getPreamble()
Gets the preamble text that should be included
|
int |
numContentBlocks()
Gets the number of content blocks provided
|
finalValidate, finalValidate, getArgumentTitle, getArgumentTitle, getOptionTitle, postValidate, postValidate, preValidate, preValidateprotected static final boolean CASE_SENSITIVE
protected static final boolean CASE_INSENSITIVE
protected final boolean caseInsensitive
public AbstractAllowedValuesRestriction(boolean caseInsensitive)
public String getPreamble()
HelpHintgetPreamble in interface HelpHintpublic HelpFormat getFormat()
HelpHintpublic int numContentBlocks()
HelpHint
Help generators should consult the HelpHint.getFormat() return value to
determine how to format the content blocks but they are not required to
do so
numContentBlocks in interface HelpHintpublic String[] getContentBlock(int blockNumber)
HelpHintgetContentBlock in interface HelpHintblockNumber - Block numberCopyright © 2012–2022. All rights reserved.