org.problets.domain.line
Class AbstractLine

java.lang.Object
  extended by org.problets.domain.line.AbstractLine
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
AbstractExplanationLine, CodeLine, CodeSegmentAttempt, DataTraceItem, ErrorLine, LineOutput, LogLine, ValueDifference

public abstract class AbstractLine
extends java.lang.Object
implements java.lang.Cloneable

AbstractLine class serves as base class for CodeLine, ExplanationLine, ErrorLine

Author:
Amruth Kumar

Field Summary
static int UNASSIGNED_LINE
           
 
Constructor Summary
AbstractLine()
           
 
Method Summary
 java.lang.Object clone()
           
 int getLineNumber()
           
abstract  void print()
          Prints all the fields of the class
 void setLineNumber(int inLineNumber)
           
abstract  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
 

Field Detail

UNASSIGNED_LINE

public static final int UNASSIGNED_LINE
See Also:
Constant Field Values
Constructor Detail

AbstractLine

public AbstractLine()
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getLineNumber

public int getLineNumber()

setLineNumber

public void setLineNumber(int inLineNumber)

toString

public abstract java.lang.String toString()
Returns only that which is entered into the log

Overrides:
toString in class java.lang.Object

print

public abstract void print()
Prints all the fields of the class