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
Nested ClassesModifier and TypeClassDescriptionstatic classA newCommandArgumentDefinitionunder construction fromCommandBuilder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommandArgumentDefinition(String name, Class<DataType> type) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanAliases for the argument.booleanHidden arguments are ones that can be called via integrations, but should not be normally shown in help to users.inthashCode()toString()voidvalidate(CommandScope commandScope) Validates that the value stored in the givenCommandScopeis 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 givenCommandScopeis valid.- Throws:
CommandValidationException- if the stored value is not valid.
-
compareTo
- Specified by:
compareToin interfaceComparable<DataType>
-
equals
-
hashCode
public int hashCode() -
toString
-