CommandStep.
Includes metadata about the argument such as a description, if it is required, a default value, etc.
Because this definition is tied to a specific step, multiple steps in a pipeline can define arguments of the same name.
for constructing new instances.
| Modifier and Type | Class and Description |
|---|---|
| public static class | CommandArgumentDefinition.
A new |
| Modifier and Type | Field and Description |
|---|---|
| private final SortedSet | |
| private static final Pattern | |
| private static final String | |
| private final Class | |
| private DataType | |
| private String | |
| private String | |
| private final String | |
| private boolean | |
| private CommandArgumentDefinition | |
| private ConfigurationValueConverter | |
| private ConfigurationValueObfuscator |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(CommandArgumentDefinition<?>
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public SortedSet | |
| public Class | |
| public DataType | |
| public String | |
| public String | |
| public boolean | getHidden()
Hidden arguments are ones that can be called via integrations, but should not be normally shown in help to users. |
| public String | |
| public CommandArgumentDefinition | |
| public ConfigurationValueConverter | getValueConverter()
Function for converting values set in underlying |
| public ConfigurationValueObfuscator | |
| public int | |
| public boolean | |
| public void | |
| public String | |
| public void | validate(CommandScope commandScope)
Validates that the value stored in the given |
| aliases | back to summary |
|---|---|
| private final SortedSet<String> aliases | |
| ALLOWED_ARGUMENT_PATTERN | back to summary |
|---|---|
| private static final Pattern ALLOWED_ARGUMENT_PATTERN | |
| ALLOWED_ARGUMENT_REGEX | back to summary |
|---|---|
| private static final String ALLOWED_ARGUMENT_REGEX | |
| dataType | back to summary |
|---|---|
| private final Class<DataType> dataType | |
| defaultValue | back to summary |
|---|---|
| private DataType defaultValue | |
| defaultValueDescription | back to summary |
|---|---|
| private String defaultValueDescription | |
| description | back to summary |
|---|---|
| private String description | |
| name | back to summary |
|---|---|
| private final String name | |
| required | back to summary |
|---|---|
| private boolean required | |
| supersededBy | back to summary |
|---|---|
| private CommandArgumentDefinition<?> supersededBy | |
| valueConverter | back to summary |
|---|---|
| private ConfigurationValueConverter<DataType> valueConverter | |
| valueObfuscator | back to summary |
|---|---|
| private ConfigurationValueObfuscator<DataType> valueObfuscator | |
| CommandArgumentDefinition | back to summary |
|---|---|
| protected CommandArgumentDefinition(String name, Class<DataType> type) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CommandArgumentDefinition<?> o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAliases | back to summary |
|---|---|
| public SortedSet Aliases for the argument. Must be camelCase alphanumeric. | |
| getDataType | back to summary |
|---|---|
| public Class The datatype this argument will return. | |
| getDefaultValue | back to summary |
|---|---|
| public DataType getDefaultValue() The default value to use for this argument | |
| getDefaultValueDescription | back to summary |
|---|---|
| public String getDefaultValueDescription() A description of the default value. Defaults to | |
| getDescription | back to summary |
|---|---|
| public String getDescription() The description of the argument. Used in generated help documentation. | |
| getHidden | back to summary |
|---|---|
| public boolean getHidden() Hidden arguments are ones that can be called via integrations, but should not be normally shown in help to users. | |
| getName | back to summary |
|---|---|
| public String getName() The name of the argument. Must be camelCase alphanumeric. | |
| getSupersededBy | back to summary |
|---|---|
| public CommandArgumentDefinition | |
| getValueConverter | back to summary |
|---|---|
| public ConfigurationValueConverter Function for converting values set in underlying | |
| getValueObfuscator | back to summary |
|---|---|
| public ConfigurationValueObfuscator Used when sending the value to user output to protect secure values. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isRequired | back to summary |
|---|---|
| public boolean isRequired() Whether this argument is required. Exposed as a separate setting for help doc purposes.
| |
| setSupersededBy | back to summary |
|---|---|
| public void setSupersededBy(CommandArgumentDefinition<?> supersededBy) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validate | back to summary |
|---|---|
| public void validate(CommandScope commandScope) throws CommandValidationException Validates that the value stored in the given
| |
CommandArgumentDefinition under construction from CommandBuilder
| Modifier and Type | Field and Description |
|---|---|
| private final String[][] | |
| private final CommandArgumentDefinition |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CommandArgumentDefinition. | |
| public CommandArgumentDefinition | |
| public CommandArgumentDefinition. | defaultValue(DataType defaultValue, String description)
Set the default value for this argument as well as the description of the default value. |
| public CommandArgumentDefinition. | defaultValue(DataType defaultValue)
Convenience version of |
| public CommandArgumentDefinition. | |
| public CommandArgumentDefinition. | |
| public CommandArgumentDefinition. | |
| public CommandArgumentDefinition. | setValueHandler(ConfigurationValueConverter<DataType> valueHandler)
Set the |
| public CommandArgumentDefinition. | setValueObfuscator(ConfigurationValueObfuscator<DataType> valueObfuscator)
Set the |
| public CommandArgumentDefinition. | supersededBy(CommandArgumentDefinition<?> commandArgumentDefinition)
Specifies a CommandArgument that can replace this one if it is not available. |
| commandNames | back to summary |
|---|---|
| private final String[][] commandNames | |
| newCommandArgument | back to summary |
|---|---|
| private final CommandArgumentDefinition<DataType> newCommandArgument | |
| Building | back to summary |
|---|---|
| pack-priv Building(String[][] commandNames, CommandArgumentDefinition<DataType> newCommandArgument) | |
| addAlias | back to summary |
|---|---|
| public CommandArgumentDefinition. Adds an alias for this command argument | |
| build | back to summary |
|---|---|
| public CommandArgumentDefinition Complete construction and register the definition with the rest of the system.
| |
| defaultValue | back to summary |
|---|---|
| public CommandArgumentDefinition. Set the default value for this argument as well as the description of the default value. | |
| defaultValue | back to summary |
|---|---|
| public CommandArgumentDefinition. Convenience version of | |
| description | back to summary |
|---|---|
| public CommandArgumentDefinition. Add a description | |
| optional | back to summary |
|---|---|
| public CommandArgumentDefinition. Mark argument as optional.
| |
| required | back to summary |
|---|---|
| public CommandArgumentDefinition. Mark argument as required.
| |
| setValueHandler | back to summary |
|---|---|
| public CommandArgumentDefinition. Set the | |
| setValueObfuscator | back to summary |
|---|---|
| public CommandArgumentDefinition. Set the | |
| supersededBy | back to summary |
|---|---|
| public CommandArgumentDefinition. Specifies a CommandArgument that can replace this one if it is not available. | |