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 argumentbuild()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 theCommandArgumentDefinition.getValueConverter()to use.setValueObfuscator(ConfigurationValueObfuscator<DataType> valueObfuscator) Set theCommandArgumentDefinition.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 theCommandArgumentDefinition.getValueConverter()to use. -
setValueObfuscator
public CommandArgumentDefinition.Building<DataType> setValueObfuscator(ConfigurationValueObfuscator<DataType> valueObfuscator) Set theCommandArgumentDefinition.getValueObfuscator()to use. -
addAlias
Adds an alias for this command argument -
build
Complete construction and register the definition with the rest of the system.- Throws:
IllegalArgumentException- is an invalid configuration was specified
-