org.problets.domain.line
Class ErrorLine

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

public class ErrorLine
extends AbstractLine

ErrorLine class maintains one line of error in code

Author:
Amruth Kumar

Field Summary
static ErrorLine CODE_OK
           
static java.lang.String CODE_OK_STRING
           
 
Fields inherited from class org.problets.domain.line.AbstractLine
UNASSIGNED_LINE
 
Constructor Summary
ErrorLine()
          Default Constructor - initializing to default values
ErrorLine(java.lang.String inClassName, java.lang.String inObjectName, java.lang.String inErrorName, int inLineNumber)
          Constructor when creating an object in PtrModel, VarModel, etc.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(ErrorLine parameter)
          Method to compare if two ErrorLine objects are all the same except for status
 java.lang.String getClassName()
           
 java.lang.String getErrorDescription()
          Returns the description that follows the error title
 java.lang.String getErrorName()
           
 java.lang.String getObjectName()
           
 boolean getStatus()
           
 boolean notEquals(ErrorLine parameter)
          Method to compare if two ErrorLine objects are not the same, status notwithstanding
 void print()
          Implements a base class method Prints all the fields
 void reset()
           
 void setClassName(java.lang.String inClassName)
           
 void setErrorName(java.lang.String inErrorName)
           
 void setObjectName(java.lang.String inObjectName)
           
 void setStatus(boolean inStatus)
           
 java.lang.String toString()
          Method to return a coherent string summarizing this ErrorLine object - Implements a base class method Returns only that which is entered in the log
 
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

CODE_OK_STRING

public static final java.lang.String CODE_OK_STRING
See Also:
Constant Field Values

CODE_OK

public static final ErrorLine CODE_OK
Constructor Detail

ErrorLine

public ErrorLine()
Default Constructor - initializing to default values


ErrorLine

public ErrorLine(java.lang.String inClassName,
                 java.lang.String inObjectName,
                 java.lang.String inErrorName,
                 int inLineNumber)
Constructor when creating an object in PtrModel, VarModel, etc.

Method Detail

clone

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

setClassName

public void setClassName(java.lang.String inClassName)

setObjectName

public void setObjectName(java.lang.String inObjectName)

setErrorName

public void setErrorName(java.lang.String inErrorName)

setStatus

public void setStatus(boolean inStatus)

reset

public void reset()

getClassName

public java.lang.String getClassName()

getObjectName

public java.lang.String getObjectName()

getErrorName

public java.lang.String getErrorName()

getErrorDescription

public java.lang.String getErrorDescription()
Returns the description that follows the error title


getStatus

public boolean getStatus()

equals

public boolean equals(ErrorLine parameter)
Method to compare if two ErrorLine objects are all the same except for status


notEquals

public boolean notEquals(ErrorLine parameter)
Method to compare if two ErrorLine objects are not the same, status notwithstanding


toString

public java.lang.String toString()
Method to return a coherent string summarizing this ErrorLine object - Implements a base class method Returns only that which is entered in the log

Specified by:
toString in class AbstractLine

print

public void print()
Implements a base class method Prints all the fields

Specified by:
print in class AbstractLine