Klasse MapOptionsConfiguration

java.lang.Object
org.apache.torque.generator.configuration.option.MapOptionsConfiguration
Alle implementierten Schnittstellen:
OptionsConfiguration

public class MapOptionsConfiguration extends Object
An option configuration in which the options are provided inside a java map. $Id: MapOptionsConfiguration.java 1917241 2024-04-21 13:29:41Z tv $
  • Konstruktordetails

    • MapOptionsConfiguration

      public MapOptionsConfiguration(Map<String,String> content)
      Constructor.
      Parameter:
      content - the options to set.
      Löst aus:
      NullPointerException - if content is null.
  • Methodendetails

    • getOptionMap

      public Map<String,String> getOptionMap()
      Returns the options map.
      Gibt zurück:
      the options map, not null.
    • getOptions

      public Collection<Option> getOptions(ConfigurationProvider configurationProvider) throws ConfigurationException
      Returns the contained options.
      Parameter:
      configurationProvider - the configuration provider to access configuration files, not null.
      Gibt zurück:
      the options contained in this configuration, not null.
      Löst aus:
      ConfigurationException - if an error occurs while reading the options.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • toOptions

      protected Collection<Option> toOptions(Map<? extends Object,? extends Object> optionsMap)
      Creates options from a Map and returns them.
      Parameter:
      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.
      Gibt zurück:
      the options, not null.