Package liquibase.command
Class CommandArgumentDefinition<DataType>
java.lang.Object
liquibase.command.CommandArgumentDefinition<DataType>
- All Implemented Interfaces:
Comparable<CommandArgumentDefinition<?>>
public class CommandArgumentDefinition<DataType>
extends Object
implements Comparable<CommandArgumentDefinition<?>>
Defines a known, type-safe argument for a specific
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.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A newCommandArgumentDefinition
under construction fromCommandBuilder
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommandArgumentDefinition
(String name, Class<DataType> type) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Aliases for the argument.boolean
Hidden arguments are ones that can be called via integrations, but should not be normally shown in help to users.int
hashCode()
toString()
void
validate
(CommandScope commandScope) Validates that the value stored in the givenCommandScope
is valid.
-
Constructor Details
-
CommandArgumentDefinition
-
-
Method Details
-
getAliases
Aliases for the argument. Must be camelCase alphanumeric. -
getForcePrintedAliases
-
getHidden
public boolean getHidden()Hidden arguments are ones that can be called via integrations, but should not be normally shown in help to users. -
validate
Validates that the value stored in the givenCommandScope
is valid.- Throws:
CommandValidationException
- if the stored value is not valid.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<DataType>
-
equals
-
hashCode
public int hashCode() -
toString
-