org.apache.torque.generator.configuration.option

## Class FileOptionsConfiguration

- java.lang.Object
- - org.apache.torque.generator.configuration.option.FileOptionsConfiguration

- All Implemented Interfaces:
    OptionsConfiguration
  Direct Known Subclasses:
    PropertiesOptionConfiguration, XmlOptionConfiguration

      public abstract class FileOptionsConfiguration
      extends Object

  An options configuration which reads options from a file. $Id: FileOptionsConfiguration.java 1839288 2018-08-27 09:48:33Z tv $

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileOptionsConfiguration()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getPath()` Returns the path to the options file.
    `protected Collection<Option>` | `toOptions(Map<? extends Object,? extends Object> optionsMap)` Creates options from a Map and returns them.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.torque.generator.configuration.option.OptionsConfiguration

      `getOptions`

- - ### Constructor Detail

    - #### FileOptionsConfiguration

          public FileOptionsConfiguration()

  - ### Method Detail

    - #### getPath

          public String getPath()

      Returns the path to the options file.
      Returns:
        the path, not null if type is xml or properties.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toOptions

          protected Collection<Option> toOptions(Map<? extends Object,? extends Object> optionsMap)

      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.

Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.