Package liquibase.command
Class CommandArgumentDefinition.Building<DataType>
java.lang.Object
liquibase.command.CommandArgumentDefinition.Building<DataType>
- Enclosing class:
- CommandArgumentDefinition<DataType>
A new
CommandArgumentDefinition
under construction from CommandBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAdds an alias for this command argument; an alias added this way is not shown in the help output.addForcePrintAlias
(String alias) Adds an alias for this command argument that will be printed to the help output inline with the existing parameter (for which this is an alias).build()
Complete construction and register the definition with the rest of the system.defaultValue
(DataType defaultValue) Convenience version ofdefaultValue(Object, String)
but usingString.valueOf(Object)
for the description.defaultValue
(DataType defaultValue, String description) Set the default value for this argument as well as the description of the default value.description
(String description) Add a descriptionhidden()
Mark argument as hidden.optional()
Mark argument as optional.required()
Mark argument as required.setValueHandler
(ConfigurationValueConverter<DataType> valueHandler) Set the#getValueConverter()
to use.setValueObfuscator
(ConfigurationValueObfuscator<DataType> valueObfuscator) Set the#getValueObfuscator()
to use.supersededBy
(CommandArgumentDefinition<?> commandArgumentDefinition) Specifies a CommandArgument that can replace this one if it is not available.
-
Method Details
-
required
Mark argument as required.- See Also:
-
supersededBy
public CommandArgumentDefinition.Building<DataType> supersededBy(CommandArgumentDefinition<?> commandArgumentDefinition) Specifies a CommandArgument that can replace this one if it is not available. -
optional
Mark argument as optional.- See Also:
-
description
Add a description -
defaultValue
public CommandArgumentDefinition.Building<DataType> defaultValue(DataType defaultValue, String description) Set the default value for this argument as well as the description of the default value. -
defaultValue
Convenience version ofdefaultValue(Object, String)
but usingString.valueOf(Object)
for the description. -
setValueHandler
public CommandArgumentDefinition.Building<DataType> setValueHandler(ConfigurationValueConverter<DataType> valueHandler) Set the#getValueConverter()
to use. -
setValueObfuscator
public CommandArgumentDefinition.Building<DataType> setValueObfuscator(ConfigurationValueObfuscator<DataType> valueObfuscator) Set the#getValueObfuscator()
to use. -
addAlias
Adds an alias for this command argument; an alias added this way is not shown in the help output. -
addForcePrintAlias
Adds an alias for this command argument that will be printed to the help output inline with the existing parameter (for which this is an alias). -
build
Complete construction and register the definition with the rest of the system.- Throws:
IllegalArgumentException
- is an invalid configuration was specified
-