Argument for java specifying the type of object received by the argument. This
allows converting the given raw value into the specified type.
| Modifier and Type | Field and Description |
|---|---|
| protected Converter | converter
The converter to use to create the value. |
| protected Class | type
The type of the argument. |
| Access | Constructor and Description |
|---|---|
| public | TypedArgument(TypedArgument<T>
the copied argument arg)Creates a new instance of |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | ensureValidity()
Overrides io. Checks whether or not the argument configuration is valid. |
| public Converter | |
| public Class | |
| public TypedArgument | setArgName(String
the argument name, must not be argName)nullOverrides io. Sets the argument name of this |
| public TypedArgument | Returns: the currentTypedArgument instancethe converter converter)Sets the converter used to create the value. |
| public TypedArgument | setDefaultValue(String
the default value defaultValue)Overrides io. Sets the default value of this |
| public TypedArgument | setDescription(String
the description description)Overrides io. Sets the description of the |
| public TypedArgument | setHidden(boolean
enables or disables the visibility of this hidden)ArgumentOverrides io. Sets whether or not the current |
| public TypedArgument | setIndex(int
the index, must not be negative index)Overrides io. Sets the argument index. |
| public TypedArgument | setMultiValued(boolean
true to mark this argument as multi-valued.Overrides io. Sets whether or not the argument can receive several values. |
| public TypedArgument | setRequired(boolean
true to make this argument mandatory, false otherwiseOverrides io. Sets whether or not the current |
| public TypedArgument |
| converter | back to summary |
|---|---|
| protected Converter<T> converter The converter to use to create the value. | |
| type | back to summary |
|---|---|
| protected Class<T> type The type of the argument. | |
| TypedArgument | back to summary |
|---|---|
| public TypedArgument(TypedArgument<T> arg) Creates a new instance of
| |
| TypedArgument | back to summary |
|---|---|
| public TypedArgument() Creates an empty instance of | |
| ensureValidity | back to summary |
|---|---|
| public void ensureValidity() Overrides io. Checks whether or not the argument configuration is valid. In addition of the check made by the parent class it
ensures that the type is set.
If the configuration is not valid, this method throws a
| |
| getConverter | back to summary |
|---|---|
public Converter
| |
| getType | back to summary |
|---|---|
public Class
| |
| setArgName | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets the argument name of this
| |
| setConverter | back to summary |
|---|---|
| public TypedArgument Sets the converter used to create the value.
| |
| setDefaultValue | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets the default value of this
| |
| setDescription | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets the description of the
| |
| setHidden | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets whether or not the current
| |
| setIndex | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets the argument index.
| |
| setMultiValued | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets whether or not the argument can receive several values. Only the last argument can receive several values.
| |
| setRequired | back to summary |
|---|---|
| public TypedArgument Overrides io. Doc from io. Sets whether or not the current
| |
| setType | back to summary |
|---|---|
| public TypedArgument Sets the argument type.
| |