pl.edu.agh.cast.importer.base.stat
Class AbstractErrorLogData

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.stat.AbstractErrorLogData
Direct Known Subclasses:
DataRowErrorLogData, TabularDataErrorLogData, TokenErrorLogData

public abstract class AbstractErrorLogData
extends Object

Representation of error log data.

Author:
AGH CAST Team

Field Summary
protected  ErrorType errorType
          The error type.
protected  String[] params
          The additional parameters array.
protected  IDataRow<?> relatedRow
          The data row related to the error.
 
Constructor Summary
AbstractErrorLogData(ErrorType type, String[] params, IDataRow<?> row)
          The default constructor.
 
Method Summary
 boolean equals(Object obj)
          
 String getDescription()
           
 ErrorSeverity getErrorSeverity()
           
 ErrorType getErrorType()
           
 String getMessage()
          Returns localized error message.
 String[] getParams()
           
 IDataRow<?> getRow()
           
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorType

protected ErrorType errorType
The error type.


params

protected String[] params
The additional parameters array.


relatedRow

protected IDataRow<?> relatedRow
The data row related to the error.

Constructor Detail

AbstractErrorLogData

public AbstractErrorLogData(ErrorType type,
                            String[] params,
                            IDataRow<?> row)
The default constructor.

Parameters:
type - the error type
params - the parameters table
row - the related row
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

getMessage

public String getMessage()
Returns localized error message.

Returns:
the localized error message

getDescription

public String getDescription()

getErrorSeverity

public ErrorSeverity getErrorSeverity()

getRow

public IDataRow<?> getRow()

getErrorType

public ErrorType getErrorType()

getParams

public String[] getParams()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.