org.problets.domain.line
Class LogLine

java.lang.Object
  extended by org.problets.domain.line.AbstractLine
      extended by org.problets.domain.line.LogLine
All Implemented Interfaces:
java.lang.Cloneable

public class LogLine
extends AbstractLine
implements java.lang.Cloneable

LogLine class maintains one line of log entry

Author:
Amruth Kumar

Field Summary
static int ANALYSIS
           
static int ANSWER
           
static int CODE
           
static int DIAGNOSIS
           
static int EVENT
           
static int FORMAT
           
static int GRADE
           
static int GRADE_LEVEL
          Options for viewing log entries
static int NONE
           
static int PROBLEM_LEVEL
           
static int REFLECTION
           
static int RESPONSE
           
static int SUMMARY
           
static int SYSTEM_ERROR
          Constants to identify the types of log entries.
static int TIME_LEVEL
           
static long UNASSIGNED
           
 
Fields inherited from class org.problets.domain.line.AbstractLine
UNASSIGNED_LINE
 
Constructor Summary
LogLine(java.lang.String inContent, int inType, long inTime)
          Constructor with all members initialized
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getContent()
           
 long getTime()
           
 int getType()
           
 void print()
          Prints all the fields of the class Implementing base class method
 void setContent(java.lang.String inContent)
           
 void setTime(long inTime)
           
 void setType(int inType)
           
 java.lang.String toString()
          Returns only that which is entered into the log Implementing base class method
 
Methods inherited from class org.problets.domain.line.AbstractLine
getLineNumber, setLineNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GRADE_LEVEL

public static final int GRADE_LEVEL
Options for viewing log entries

See Also:
Constant Field Values

PROBLEM_LEVEL

public static final int PROBLEM_LEVEL
See Also:
Constant Field Values

TIME_LEVEL

public static final int TIME_LEVEL
See Also:
Constant Field Values

SYSTEM_ERROR

public static final int SYSTEM_ERROR
Constants to identify the types of log entries. The constants are sorted by the frequency with which they will be included in any log viewing option. See these with the log viewing option constants shown before.

See Also:
Constant Field Values

FORMAT

public static final int FORMAT
See Also:
Constant Field Values

ANALYSIS

public static final int ANALYSIS
See Also:
Constant Field Values

GRADE

public static final int GRADE
See Also:
Constant Field Values

SUMMARY

public static final int SUMMARY
See Also:
Constant Field Values

REFLECTION

public static final int REFLECTION
See Also:
Constant Field Values

CODE

public static final int CODE
See Also:
Constant Field Values

RESPONSE

public static final int RESPONSE
See Also:
Constant Field Values

ANSWER

public static final int ANSWER
See Also:
Constant Field Values

DIAGNOSIS

public static final int DIAGNOSIS
See Also:
Constant Field Values

EVENT

public static final int EVENT
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

UNASSIGNED

public static final long UNASSIGNED
See Also:
Constant Field Values
Constructor Detail

LogLine

public LogLine(java.lang.String inContent,
               int inType,
               long inTime)
Constructor with all members initialized

Method Detail

clone

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

setContent

public void setContent(java.lang.String inContent)

setType

public void setType(int inType)

setTime

public void setTime(long inTime)

getContent

public java.lang.String getContent()

getType

public int getType()

getTime

public long getTime()

toString

public java.lang.String toString()
Returns only that which is entered into the log Implementing base class method

Specified by:
toString in class AbstractLine

print

public void print()
Prints all the fields of the class Implementing base class method

Specified by:
print in class AbstractLine