com.qoppa.preflight.results
Class ResultRecord

java.lang.Object
  extended bycom.qoppa.preflight.results.ResultRecord

public class ResultRecord
extends Object

This object holds information about an issue found in the document. The information includes a header or short name, a detail string and the page number where the issue happened.

Author:
Qoppa Software

Constructor Summary
ResultRecord(String header, String detail, int pageNumber)
           
ResultRecord(String header, String detail, int pageNumber, Rectangle2D rect)
           
 
Method Summary
 Rectangle2D getBounds()
          Returns the bounds for which the result record was created.
 String getDetail()
          Returns detail information about this result.
 String getHeader()
          Returns a short string about the result.
 int getPageNumber()
          Returns the page number for which the result record was created.
 String toString()
          Returns a string representation of the result that includes the page number and the detail message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultRecord

public ResultRecord(String header,
                    String detail,
                    int pageNumber)

ResultRecord

public ResultRecord(String header,
                    String detail,
                    int pageNumber,
                    Rectangle2D rect)
Method Detail

getHeader

public String getHeader()
Returns a short string about the result. The intent is to use this in a list.

Returns:
The result header.

getDetail

public String getDetail()
Returns detail information about this result.

Returns:
The result detail.

getPageNumber

public int getPageNumber()
Returns the page number for which the result record was created.

Returns:
The page number.

getBounds

public Rectangle2D getBounds()
Returns the bounds for which the result record was created.

Returns:
The page number.

toString

public String toString()
Returns a string representation of the result that includes the page number and the detail message.