|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.outlet.OutletImpl org.apache.torque.generator.outlet.java.OutletWithoutMergepoints org.apache.torque.generator.outlet.java.NewlineOutlet
public class NewlineOutlet
Creates new lines (\n or \r\n).
Field Summary | |
---|---|
static char |
CARRIAGE_RETURN
The carriage return char '\r'. |
static char |
NEWLINE
The newline char '\r'. |
Constructor Summary | |
---|---|
NewlineOutlet(QualifiedName name)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.torque.generator.outlet.java.OutletWithoutMergepoints |
---|
addMergepointMapping, getMergepointMapping |
Methods inherited from class org.apache.torque.generator.outlet.OutletImpl |
---|
afterExecute, beforeExecute, getInputElementName, getMergepointMappings, getName, getVariable, mergepoint, setInputElementName, setMergepointMapping, setVariable, setVariable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char CARRIAGE_RETURN
public static final char NEWLINE
Constructor Detail |
---|
public NewlineOutlet(QualifiedName name)
name
- the qualified name of the outlet.Method Detail |
---|
public OutletResult execute(ControllerState controllerState) throws GeneratorException
Outlet
execute
in interface Outlet
execute
in class OutletImpl
controllerState
- the current controller state, not null.
GeneratorException
- if generation fails.public int getCount()
public void setCount(int count)
count
- how many newlines should be created.public boolean isWindowsStyle()
public void setWindowsStyle(boolean windowsStyle)
windowsStyle
- whether windows newlines should be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |