org.problets.domain.model.output
Class LineOutput
java.lang.Object
org.problets.domain.line.AbstractLine
org.problets.domain.model.output.LineOutput
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- StudentLineOutput
public class LineOutput
- extends AbstractLine
To store the output of one output statement
- Author:
- Amruth Kumar
Method Summary |
java.lang.Object |
clone()
|
boolean |
equals(LineOutput par)
|
boolean |
equalsIgnoreWhiteSpace(LineOutput par)
|
java.lang.String |
getOutput()
|
boolean |
isEmpty()
Returns true if either the output is empty or the line number has not been assigned
and false otherwise |
static void |
main(java.lang.String[] args)
|
void |
print()
Prints all the fields of the class |
void |
setOutput(java.lang.String inOutput)
|
java.lang.String |
toString()
Returns only that which is entered into the log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NO_OUTPUT_STRING
public static final java.lang.String NO_OUTPUT_STRING
- See Also:
- Constant Field Values
NO_OUTPUT
public static final LineOutput NO_OUTPUT
LineOutput
public LineOutput()
LineOutput
public LineOutput(java.lang.String inOutput,
int inLineNumber)
clone
public java.lang.Object clone()
- Overrides:
clone
in class AbstractLine
getOutput
public java.lang.String getOutput()
equals
public boolean equals(LineOutput par)
equalsIgnoreWhiteSpace
public boolean equalsIgnoreWhiteSpace(LineOutput par)
isEmpty
public boolean isEmpty()
- Returns true if either the output is empty or the line number has not been assigned
and false otherwise
setOutput
public void setOutput(java.lang.String inOutput)
toString
public java.lang.String toString()
- Returns only that which is entered into the log
- Specified by:
toString
in class AbstractLine
print
public void print()
- Prints all the fields of the class
- Specified by:
print
in class AbstractLine
main
public static void main(java.lang.String[] args)