Top Fields Constructors Methods
liquibase.integration.commandline

public Class CommandLineArgumentValueProvider

extends AbstractMapConfigurationValueProvider
Class Inheritance
Imports
liquibase.configuration.AbstractMapConfigurationValueProvider, picocli.CommandLine, java.util.Map, .Set, .SortedMap, .TreeMap

Field Summary

Modifier and TypeField and Description
private final SortedMap<String, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Map<?, ?>
public int
getPrecedence()

Implements liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Returns the precedence of values returned by this provider.

protected String
protected boolean
keyMatches(String
the configuration key requested
wantedKey
,
String
the key stored in the map
storedKey
)

Overrides liquibase.configuration.AbstractMapConfigurationValueProvider.keyMatches.

Used by ConfigurationValueProvider#getProvidedValue(String[]) to determine of a given map entry matches the wanted key.

Inherited from liquibase.configuration.AbstractMapConfigurationValueProvider:
getMapHashgetProvidedValueisValueSetlookupProvidedValue

Field Detail

argumentValuesback to summary
private final SortedMap<String, Object> argumentValues

Constructor Detail

CommandLineArgumentValueProviderback to summary
public CommandLineArgumentValueProvider(CommandLine.ParseResult parseResult)

Method Detail

getMapback to summary
protected Map<?, ?> getMap()

Implements abstract liquibase.configuration.AbstractMapConfigurationValueProvider.getMap.

Annotations
@Override
getPrecedenceback to summary
public int getPrecedence()

Implements liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Doc from liquibase.configuration.ConfigurationValueProvider.getPrecedence.

Returns the precedence of values returned by this provider. Higher a provider with higher precedence overrides values from lower precedence providers.

Standard provider precedence:

Annotations
@Override
getSourceDescriptionback to summary
protected String getSourceDescription()

Implements abstract liquibase.configuration.AbstractMapConfigurationValueProvider.getSourceDescription.

Annotations
@Override
keyMatchesback to summary
protected boolean keyMatches(String wantedKey, String storedKey)

Overrides liquibase.configuration.AbstractMapConfigurationValueProvider.keyMatches.

Doc from liquibase.configuration.AbstractMapConfigurationValueProvider.keyMatches.

Used by ConfigurationValueProvider#getProvidedValue(String[]) to determine of a given map entry matches the wanted key. This implementation compares the values case-insensitively, and will replace camelCase words with kabob-case

Parameters
wantedKey:String

the configuration key requested

storedKey:String

the key stored in the map

Annotations
@Override