org.anadix.impl
Class AbstractReportItem

java.lang.Object
  extended by org.anadix.impl.AbstractReportItem
All Implemented Interfaces:
ReportItem
Direct Known Subclasses:
Section508ReportItem

public abstract class AbstractReportItem
extends Object
implements ReportItem

Abstract implementation of ReportItem

Version:
$Id: $
Author:
tomason

Constructor Summary
AbstractReportItem(ItemStatus status, String itemText)
          Constructor
 
Method Summary
 String getAdvice()
          Gets advice on how to fix a problem or how to perform the manual check.
 String getDescription()
          Gets more detailed description of this report item.
 String getItemText()
          Gets the basic item text.
 ItemStatus getStatus()
          Gets the item status.
 void setAdvice(String advice)
          Sets the advice - advice should contain some suggestion how to fix the problem.
 void setDescription(String description)
          Sets the more detailed description of the ReportItem
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractReportItem

public AbstractReportItem(ItemStatus status,
                          String itemText)
Constructor

Parameters:
status - - item status
itemText - - basic description of report item
Method Detail

getStatus

public ItemStatus getStatus()
Gets the item status.

Specified by:
getStatus in interface ReportItem
Returns:
item status

getItemText

public String getItemText()
Gets the basic item text.

Specified by:
getItemText in interface ReportItem
Returns:
basic item text

setAdvice

public void setAdvice(String advice)
Sets the advice - advice should contain some suggestion how to fix the problem. Therefore it makes sense only for ReportItems with status ERROR or WARNING.

Specified by:
setAdvice in interface ReportItem
Parameters:
advice - - advice how to fix a reported problem

getAdvice

public String getAdvice()
Gets advice on how to fix a problem or how to perform the manual check.

Specified by:
getAdvice in interface ReportItem
Returns:
advice how to fix a reported problem

setDescription

public void setDescription(String description)
Sets the more detailed description of the ReportItem

Specified by:
setDescription in interface ReportItem
Parameters:
description - - detailed description of ReportItem

getDescription

public String getDescription()
Gets more detailed description of this report item.

Specified by:
getDescription in interface ReportItem
Returns:
detailed description of ReportItem

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.