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
Creates new lines (\n or \r\n).
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final char
The carriage return char '\r'.static final char
The newline char '\r'. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungexecute
(ControllerState controllerState) Generates the output for this template into the Generated object.int
getCount()
Returns how many newlines should be created.boolean
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
-
Felddetails
-
CARRIAGE_RETURN
public static final char CARRIAGE_RETURNThe carriage return char '\r'.- Siehe auch:
-
NEWLINE
public static final char NEWLINEThe newline char '\r'.- Siehe auch:
-
-
Konstruktordetails
-
NewlineOutlet
Constructor.- Parameter:
name
- the qualified name of the outlet.
-
-
Methodendetails
-
execute
Beschreibung aus Schnittstelle kopiert:Outlet
Generates the output for this template into the Generated object.- Angegeben von:
execute
in SchnittstelleOutlet
- Angegeben von:
execute
in KlasseOutletImpl
- 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.
-