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 charThe carriage return char '\r'.static final charThe newline char '\r'. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungexecute(ControllerState controllerState) Generates the output for this template into the Generated object.intgetCount()Returns how many newlines should be created.booleanReturns whether windows newlines (\r\n) are used.voidsetCount(int count) Sets how many newlines should be created.voidsetWindowsStyle(boolean windowsStyle) Sets whether windows newlines (\r\n) are used.Von Klasse geerbte Methoden org.apache.torque.generator.outlet.java.OutletWithoutMergepoints
addMergepointMapping, getMergepointMappingVon 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:OutletGenerates the output for this template into the Generated object.- Angegeben von:
executein SchnittstelleOutlet- Angegeben von:
executein 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.
-