Package org.apache.torque.generator.outlet.java

# Klasse ModifySourcenameOutlet

java.lang.Object
org.apache.torque.generator.outlet.OutletImpl
org.apache.torque.generator.outlet.java.ModifySourcenameOutlet

Alle implementierten Schnittstellen:
  `Outlet`

public class ModifySourcenameOutlet extends OutletImpl
Creates a target filename from a source filename.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `ModifySourcenameOutlet(QualifiedName qualifiedName)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `OutletResult`
  `execute(ControllerState controllerState)`
  Generates the output for this template into the Generated object.
  `String`
  `getDiscardFrom()`
  Returns the character sequence which separates the discarded beginning of the source filename from the returned end.
  `String`
  `getDiscardTo()`
  The character sequence from the beginning of the source filename to and including the last occurrence of the returned string is discarded for the result.
  `String`
  `getPrefix()`
  Returns the prefix which is added in front of the modified source filename.
  `String`
  `getSuffix()`
  Returns the suffix which is added after the modified source filename.
  `void`
  `setDiscardFrom(String discardFrom)`
  Sets the character sequence which separates the discarded beginning of the source filename from the returned end.
  `void`
  `setDiscardTo(String discardTo)`
  Sets the character sequence after which last occurrence the source filename is returned.
  `void`
  `setPrefix(String prefix)`
  Sets the prefix which is added in front of the modified source filename.
  `void`
  `setSuffix(String suffix)`
  Sets the suffix which is added after the modified source filename.

  ### Von Klasse geerbte Methoden org.apache.torque.generator.outlet.OutletImpl

  `addMergepointMapping, afterExecute, beforeExecute, getInputClass, getInputElementName, getMergepointMapping, getMergepointMappings, getName, getVariable, mergepoint, setInputClass, setInputElementName, setMergepointMapping, setVariable, setVariable, toString`

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

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

- ## Konstruktordetails

  - ### ModifySourcenameOutlet

    public ModifySourcenameOutlet(QualifiedName qualifiedName)
    Constructor.
    Parameter:
      `qualifiedName` - the qualified name of the outlet, not null.

- ## Methodendetails

  - ### execute

    public OutletResult execute(ControllerState controllerState) throws GeneratorException
    Beschreibung aus Schnittstelle kopiert: `Outlet`
    Generates the output for this template into the Generated object.
    Angegeben von:
      `execute` in Schnittstelle `Outlet`
    Angegeben von:
      `execute` in Klasse `OutletImpl`
    Parameter:
      `controllerState` - the current controller state, not null.
    Gibt zurück:
      the output of the Outlet.
    Löst aus:
      `GeneratorException` - if generation fails.

  - ### getPrefix

    public String getPrefix()
    Returns the prefix which is added in front of the modified source filename.
    Gibt zurück:
      the prefix, not null

  - ### setPrefix

    public void setPrefix(String prefix)
    Sets the prefix which is added in front of the modified source filename.
    Parameter:
      `prefix` - the prefix, not null.
    Löst aus:
      `NullPointerException` - if prefix is null.

  - ### getSuffix

    public String getSuffix()
    Returns the suffix which is added after the modified source filename.
    Gibt zurück:
      the suffix, not null.

  - ### setSuffix

    public void setSuffix(String suffix)
    Sets the suffix which is added after the modified source filename.
    Parameter:
      `suffix` - the suffix, not null
    Löst aus:
      `NullPointerException` - if suffix is null.

  - ### getDiscardFrom

    public String getDiscardFrom()
    Returns the character sequence which separates the discarded beginning of the source filename from the returned end.

    Example: if the source filename is "xyz.a.b.c", and discardFrom is ".", then "xyz" will be returned.

    Gibt zurück:
      the character sequence from whose first occurrence the source filename is discarded.

  - ### setDiscardFrom

    public void setDiscardFrom(String discardFrom)
    Sets the character sequence which separates the discarded beginning of the source filename from the returned end.

    Example: if the source filename is "xyz.a.b.c", and discardFrom is ".", then "xyz" will be returned.

    Parameter:
      `discardFrom` - the character sequence from whose first occurrence the source filename is discarded.

  - ### getDiscardTo

    public String getDiscardTo()
    The character sequence from the beginning of the source filename to and including the last occurrence of the returned string is discarded for the result.

    Example: if the source filename is "xyz.a.b.c", and discardTo is ".", then "c" will be returned.

    Gibt zurück:
      the character sequence up to whose last occurrence the source filename is discarded.

  - ### setDiscardTo

    public void setDiscardTo(String discardTo)
    Sets the character sequence after which last occurrence the source filename is returned.

    Example: if the source filename is "xyz.a.b.c", and discardTo is ".", then "c" will be returned.

    Parameter:
      `discardTo` - the character sequence up to whose last occurrence the source filename is discarded.