Class MapOptionsConfiguration
java.lang.Object
org.apache.torque.generator.configuration.option.MapOptionsConfiguration
- All Implemented Interfaces:
OptionsConfiguration
An option configuration in which the options are provided inside a java map.
$Id: MapOptionsConfiguration.java 1917241 2024-04-21 13:29:41Z tv $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the options map.getOptions(ConfigurationProvider configurationProvider) Returns the contained options.protected Collection<Option> Creates options from a Map and returns them.toString()
-
Constructor Details
-
MapOptionsConfiguration
Constructor.- Parameters:
content- the options to set.- Throws:
NullPointerException- if content is null.
-
-
Method Details
-
getOptionMap
Returns the options map.- Returns:
- the options map, not null.
-
getOptions
public Collection<Option> getOptions(ConfigurationProvider configurationProvider) throws ConfigurationException Returns the contained options.- Parameters:
configurationProvider- the configuration provider to access configuration files, not null.- Returns:
- the options contained in this configuration, not null.
- Throws:
ConfigurationException- if an error occurs while reading the options.
-
toString
-
toOptions
Creates options from a Map and returns them.- Parameters:
optionsMap- the map containing the option qualified names as key and the option value as value. optionsMap and the keys therein must not be null.- Returns:
- the options, not null.
-