public class MutuallyExclusiveRestriction extends Object implements OptionRestriction, HelpHint
| Constructor and Description |
|---|
MutuallyExclusiveRestriction(String tag) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
finalValidate(ParseState<T> state,
OptionMetadata option)
Method that is called after Airline has completed parsing
|
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
|
String |
getTag() |
int |
numContentBlocks()
Gets the number of content blocks provided
|
<T> void |
postValidate(ParseState<T> state,
OptionMetadata option,
Object value)
Method that is called after Airline has converted a string argument
received into a strongly typed Java value
|
<T> void |
preValidate(ParseState<T> state,
OptionMetadata option,
String value)
Method that is called before Airline attempts to convert a string
argument received into a strongly typed Java value
|
public MutuallyExclusiveRestriction(String tag)
public <T> void finalValidate(ParseState<T> state, OptionMetadata option)
OptionRestrictionThis can be used to implement restrictions that require the final parser state to process
finalValidate in interface OptionRestrictionstate - Parser stateoption - Option meta-datapublic String getTag()
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 numberpublic <T> void preValidate(ParseState<T> state, OptionMetadata option, String value)
OptionRestrictionpreValidate in interface OptionRestrictionstate - Parser stateoption - Option meta-datavalue - String valuepublic <T> void postValidate(ParseState<T> state, OptionMetadata option, Object value)
OptionRestrictionpostValidate in interface OptionRestrictionstate - Parser stateoption - Option meta-datavalue - Strongly typed valueCopyright © 2012–2022. All rights reserved.