Package org.apache.torque.generator.configuration.outlet

# Klasse OutletConfiguration

java.lang.Object
org.apache.torque.generator.configuration.outlet.OutletConfiguration

public class OutletConfiguration extends Object
Administers the available Outlets.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `OutletConfiguration(Collection<Outlet> outlets, Collection<MergepointMapping> mergepointMappings, UnitDescriptor unitDescriptor)`
  Creates a OutletConfiguration containing a list of Outlets.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `void`
  `addOutlet(Outlet outlet, UnitDescriptor unitDescriptor)`
  Adds a outlet.
  `Outlet`
  `getOutlet(QualifiedName name)`
  Returns the outlet with the name `name`.
  `Map<QualifiedName,Outlet>`
  `getOutlets()`
  Returns a map containing all the configured outlets, keyed by their name.
  `boolean`
  `outletExists(QualifiedName qualifiedName)`
  Returns whether a outlet for the given name exists.
  `void`
  `resolveMergepointMappings()`
  Resolves the isolated merge point mappings and adds them to the relevant outlets.
  `String`
  `toString()`
  Creates a String view of this object for debuggung purposes.

  ### Von Klasse geerbte Methoden java.lang.Object

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

- ## Konstruktordetails

  - ### OutletConfiguration

    public OutletConfiguration(Collection<Outlet> outlets, Collection<MergepointMapping> mergepointMappings, UnitDescriptor unitDescriptor) throws ConfigurationException
    Creates a OutletConfiguration containing a list of Outlets.
    Parameter:
      `outlets` - the map of outlets, keyed by their name, not null.
      `mergepointMappings` - all isolated mergepoint mappings, not null.
      `unitDescriptor` - the descriptor of the unit of generation, not null.
    Löst aus:
      `ConfigurationException` - if outlets contains two outlets with the same name.
      `NullPointerException` - if a parameter is null.

- ## Methodendetails

  - ### resolveMergepointMappings

    public void resolveMergepointMappings() throws ConfigurationException
    Resolves the isolated merge point mappings and adds them to the relevant outlets.
    Löst aus:
      `ConfigurationException` - if configuration not found

  - ### getOutlets

    public Map<QualifiedName,Outlet> getOutlets()
    Returns a map containing all the configured outlets, keyed by their name.
    Gibt zurück:
      all outlets, not null.
    Löst aus:
      `IllegalStateException` - if the mergepoint mappings have not yet been resolved.

  - ### getOutlet

    public Outlet getOutlet(QualifiedName name)
    Returns the outlet with the name `name`.
    Parameter:
      `name` - the name of the outlet to be returned.
    Gibt zurück:
      The outlet with the given name, or null if it does not exist.
    Löst aus:
      `IllegalStateException` - if the mergepoint mappings have not yet been resolved.

  - ### addOutlet

    public void addOutlet(Outlet outlet, UnitDescriptor unitDescriptor) throws ConfigurationException
    Adds a outlet.
    Parameter:
      `outlet` - the outlet to be added, not null.
      `unitDescriptor` - the descriptor of the generation unit, not null.
    Löst aus:
      `ConfigurationException` - if a outlet with the outlet's name already exists in the configuration.
      `NullPointerException` - if outlet is null.

  - ### toString

    public String toString()
    Creates a String view of this object for debuggung purposes.
    Setzt außer Kraft:
      `toString` in Klasse `Object`
    Gibt zurück:
      a String view of this object, never null.
    Siehe auch:
      - `Object.toString()`

  - ### outletExists

    public boolean outletExists(QualifiedName qualifiedName)
    Returns whether a outlet for the given name exists. Name and namespace must match exactly.
    Parameter:
      `qualifiedName` - the name of the outlet.
    Gibt zurück:
      true if a outlet with the name exists, false otherwise.