open class TypedArgument<T : Any> : Argument
An implementation of Argument for java specifying the type of object received by the argument. This allows converting the given raw value into the specified type.
Author
Clement Escoffier
TypedArgument(arg: TypedArgument<T>)
Creates a new instance of TypedArgument by copying the state of another TypedArgument. TypedArgument()
Creates an empty instance of TypedArgument. |
static val DEFAULT_ARG_NAME: String
The default argument name displayed in the usage. |
open fun ensureValidity(): Unit
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 IllegalArgumentException. |
|
open fun getConverter(): Converter<T> |
|
open fun getType(): Class<T> |
|
open fun setArgName(argName: String): TypedArgument<T> |
|
open fun setConverter(converter: Converter<T>): TypedArgument<T>
Sets the converter used to create the value. |
|
open fun setDefaultValue(defaultValue: String): TypedArgument<T> |
|
open fun setDescription(description: String): TypedArgument<T> |
|
open fun setHidden(: Boolean): TypedArgument<T> |
|
open fun setIndex(index: Int): TypedArgument<T> |
|
open fun setMultiValued(multiValued: Boolean): TypedArgument<T> |
|
open fun setRequired(required: Boolean): TypedArgument<T> |
|
open fun setType(type: Class<T>): TypedArgument<T>
Sets the argument type. |
open fun getArgName(): String |
|
open fun getDefaultValue(): String |
|
open fun getDescription(): String |
|
open fun getIndex(): Int |
|
open fun isHidden(): Boolean |
|
open fun isMultiValued(): Boolean |
|
open fun isRequired(): Boolean |
|
open fun toJson(): JsonObject
Exports this Argument to its corresponding JSON representation. |