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

# Klasse NewlineOutlet

java.lang.Object
org.apache.torque.generator.outlet.OutletImpl
org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
org.apache.torque.generator.outlet.java.NewlineOutlet

Alle implementierten Schnittstellen:
  `Outlet`

public class NewlineOutlet extends OutletWithoutMergepoints
Creates new lines (\n or \r\n).

- ## Feldübersicht

  Felder
  Modifizierer und Typ
  Feld
  Beschreibung
  `static final char`
  `CARRIAGE_RETURN`
  The carriage return char '\r'.
  `static final char`
  `NEWLINE`
  The newline char '\r'.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `NewlineOutlet(QualifiedName name)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `OutletResult`
  `execute(ControllerState controllerState)`
  Generates the output for this template into the Generated object.
  `int`
  `getCount()`
  Returns how many newlines should be created.
  `boolean`
  `isWindowsStyle()`
  Returns whether windows newlines (\r\n) are used.
  `void`
  `setCount(int count)`
  Sets how many newlines should be created.
  `void`
  `setWindowsStyle(boolean windowsStyle)`
  Sets whether windows newlines (\r\n) are used.

  ### Von Klasse geerbte Methoden org.apache.torque.generator.outlet.java.OutletWithoutMergepoints

  `addMergepointMapping, getMergepointMapping`

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

  `afterExecute, beforeExecute, getInputClass, getInputElementName, 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`

- ## Felddetails

  - ### CARRIAGE_RETURN

    public static final char CARRIAGE_RETURN
    The carriage return char '\r'.
    Siehe auch:
      - Konstantenfeldwerte

  - ### NEWLINE

    public static final char NEWLINE
    The newline char '\r'.
    Siehe auch:
      - Konstantenfeldwerte

- ## Konstruktordetails

  - ### NewlineOutlet

    public NewlineOutlet(QualifiedName name)
    Constructor.
    Parameter:
      `name` - the qualified name of the outlet.

- ## 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.

  - ### getCount

    public int getCount()
    Returns how many newlines should be created.
    Gibt zurück:
      how many newlines should be created.

  - ### setCount

    public void setCount(int count)
    Sets how many newlines should be created.
    Parameter:
      `count` - how many newlines should be created.

  - ### isWindowsStyle

    public boolean isWindowsStyle()
    Returns whether windows newlines (\r\n) are used.
    Gibt zurück:
      whether windows newlines are used.

  - ### setWindowsStyle

    public void setWindowsStyle(boolean windowsStyle)
    Sets whether windows newlines (\r\n) are used.
    Parameter:
      `windowsStyle` - whether windows newlines should be used.