Top Description Fields Constructors Methods
liquibase.command

public Class CommandBuilder

extends Object
Class Inheritance

Builder for configuring CommandStep settings, such as CommandArgumentDefinitions and CommandResultDefinitions

Field Summary

Modifier and TypeField and Description
private final String[][]

Constructor Summary

AccessConstructor and Description
public
CommandBuilder(String[]... commandNames)

Creates a builder for the given command name

Method Summary

Modifier and TypeMethod and Description
public <DataType> CommandArgumentDefinition.Building<DataType>
addArgument(CommandArgumentDefinition<DataType> example)

Uses an existing CommandArgumentDefinition as template

public <DataType> CommandArgumentDefinition.Building<DataType>
argument(String name, Class<DataType> type)

Starts the building of a new CommandArgumentDefinition.

public <DataType> CommandArgumentDefinition.Building<DataType>
argument(CommonArgumentNames argument, Class<DataType> type)

Starts the building of a new CommandArgumentDefinition.

public <DataType> CommandResultDefinition.Building<DataType>
result(String name, Class<DataType> type)

Starts the building of a new CommandResultDefinition.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commandNamesback to summary
private final String[][] commandNames

Constructor Detail

CommandBuilderback to summary
public CommandBuilder(String[]... commandNames)

Creates a builder for the given command name

Method Detail

addArgumentback to summary
public <DataType> CommandArgumentDefinition.Building<DataType> addArgument(CommandArgumentDefinition<DataType> example)

Uses an existing CommandArgumentDefinition as template

argumentback to summary
public <DataType> CommandArgumentDefinition.Building<DataType> argument(String name, Class<DataType> type)

Starts the building of a new CommandArgumentDefinition.

argumentback to summary
public <DataType> CommandArgumentDefinition.Building<DataType> argument(CommonArgumentNames argument, Class<DataType> type)

Starts the building of a new CommandArgumentDefinition.

resultback to summary
public <DataType> CommandResultDefinition.Building<DataType> result(String name, Class<DataType> type)

Starts the building of a new CommandResultDefinition.