Option
| Modifier and Type | Field and Description |
|---|---|
| protected String | argName
The argument name used in the usage. |
| public static final String | DEFAULT_ARG_NAME
The default argument name displayed in the usage. |
| protected String | defaultValue
The optional default value of this argument. |
| protected String | description
The argument description. |
| protected int | index
The argument index. |
| protected boolean | multiValued
Whether or not this argument can receive multiple value. |
| protected boolean | required
Whether or not this argument is mandatory. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Argument(JsonObject
the json object json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public String | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Argument | Returns: the currentArgument instancethe argument name, must not be argName)nullSets the argument name of this |
| public Argument | Returns: the currentArgument instancethe default value defaultValue)Sets the default value of this |
| public Argument | Returns: the currentArgument instancethe description description)Sets the description of the |
| public Argument | |
| public Argument | |
| public Argument | Returns: the currentArgument instancetrue to mark this argument as multi-valued.Sets whether or not the argument can receive several values. |
| public Argument | Returns: the currentArgument instancetrue to make this argument mandatory, false otherwiseSets whether or not the current |
| public JsonObject | Returns: the json object representing thisArgument
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Exports this |
| argName | back to summary |
|---|---|
| protected String argName The argument name used in the usage. | |
| DEFAULT_ARG_NAME | back to summary |
|---|---|
| public static final String DEFAULT_ARG_NAME The default argument name displayed in the usage. | |
| defaultValue | back to summary |
|---|---|
| protected String defaultValue The optional default value of this argument. | |
| description | back to summary |
|---|---|
| protected String description The argument description. | |
| index | back to summary |
|---|---|
| protected int index The argument index. Must be positive or null. It is set fo -1 by default to check that the index was set. | |
| multiValued | back to summary |
|---|---|
| protected boolean multiValued Whether or not this argument can receive multiple value. Only the last argument can receive multiple values. | |
| required | back to summary |
|---|---|
| protected boolean required Whether or not this argument is mandatory. Mandatory arguments throw a | |
| Argument | back to summary |
|---|---|
| public Argument() Creates a new empty instance of | |
| Argument | back to summary |
|---|---|
| public Argument(Argument other) Creates a new instance of
| |
| Argument | back to summary |
|---|---|
| public Argument(JsonObject json)
References Deprecated
See corresponding docs for further information. Creates a new instance of
| |
| ensureValidity | back to summary |
|---|---|
| public void ensureValidity() Checks that the argument configuration is valid. This method is mainly made for children classes adding constraint to the configuration. The parser verifies that arguments are valid before starting the parsing.
If the configuration is not valid, this method throws a | |
| getArgName | back to summary |
|---|---|
public String getArgName()
| |
| getDefaultValue | back to summary |
|---|---|
public String getDefaultValue()
| |
| getDescription | back to summary |
|---|---|
public String getDescription()
| |
| getIndex | back to summary |
|---|---|
public int getIndex()
| |
| isHidden | back to summary |
|---|---|
public boolean isHidden()
| |
| isMultiValued | back to summary |
|---|---|
public boolean isMultiValued()
| |
| isRequired | back to summary |
|---|---|
public boolean isRequired()
| |
| setArgName | back to summary |
|---|---|
| public Argument setArgName(String argName) Sets the argument name of this | |
| setDefaultValue | back to summary |
|---|---|
| public Argument setDefaultValue(String defaultValue) Sets the default value of this | |
| setDescription | back to summary |
|---|---|
| public Argument setDescription(String description) Sets the description of the | |
| setHidden | back to summary |
|---|---|
| public Argument setHidden(boolean hidden) Sets whether or not the current | |
| setIndex | back to summary |
|---|---|
| public Argument setIndex(int index) Sets the argument index. | |
| setMultiValued | back to summary |
|---|---|
| public Argument setMultiValued(boolean multiValued) Sets whether or not the argument can receive several values. Only the last argument can receive several values. | |
| setRequired | back to summary |
|---|---|
| public Argument setRequired(boolean required) Sets whether or not the current | |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. Exports this
| |