org.jfree.report.modules.parser.base
Class OperationResult

java.lang.Object
  extended byorg.jfree.report.modules.parser.base.OperationResult
All Implemented Interfaces:
java.io.Serializable

public class OperationResult
extends java.lang.Object
implements java.io.Serializable

The OperationResult class provides the possibility to monitor the result of the parsing progress and to handle warnings and errors.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
OperationResult(java.lang.String message, SeverityLevel severity)
          Creates a new operation result with the given message and severity.
OperationResult(java.lang.String message, SeverityLevel severity, int column, int line)
          Creates a new operation result with the given message, severity and parse position.
 
Method Summary
 int getColumn()
          Returns the column of the parse position where this message occured.
 int getLine()
          Returns the line of the parse position where this message occured.
 java.lang.String getMessage()
          Returns the message of the operation result.
 SeverityLevel getSeverity()
          Returns the severity of the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationResult

public OperationResult(java.lang.String message,
                       SeverityLevel severity)
Creates a new operation result with the given message and severity.

Parameters:
message - the message of this result object.
severity - the assigned severity.
Throws:
java.lang.NullPointerException - if one of the parameters is null.

OperationResult

public OperationResult(java.lang.String message,
                       SeverityLevel severity,
                       int column,
                       int line)
Creates a new operation result with the given message, severity and parse position.

Parameters:
message - the message of this result object.
severity - the assigned severity.
column - the column of the parse position
line - the line of the parse position.
Throws:
java.lang.NullPointerException - if one of the parameters is null.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the message of the operation result. The message is never null.

Returns:
the message.

getSeverity

public SeverityLevel getSeverity()
Returns the severity of the message. The severity is never null.

Returns:
the severity.

getColumn

public int getColumn()
Returns the column of the parse position where this message occured.

Returns:
the column of the parse position.

getLine

public int getLine()
Returns the line of the parse position where this message occured.

Returns:
the line of the parse position.