org.anadix
Interface ReportItem

All Known Implementing Classes:
AbstractReportItem, CellMissingAssociation, ColumnMissingHeader, DocumentContainsStyle, DocumentHasErrors, DocumentMissingNoscript, DocumentRequiresTime, DocumentSkipNavigation, ElementCauseFlickering, ElementContainsColor, ElementContainsStyle, ElementWrongContrast, FrameMissingTitle, HrefContainsJavascript, ImgEmptyAlt, ImgIsMap, InputMissingLabel, MissingAlt, MultimediaNeedAlternative, ObjectCompliesConditions, RowMissingHeader, Section508ReportItem, TextContainsColor

public interface ReportItem

Represents single item in report. Otherwise it is a simple object. It has two mandatory attributes - status and itemText. Optional attributes provide more detailed information in final report file.

Version:
$Id: $
Author:
tomason

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
 

Method Detail

getStatus

ItemStatus getStatus()
Gets the item status.

Returns:
item status

getItemText

String getItemText()
Gets the basic item text.

Returns:
basic item text

setAdvice

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.

Parameters:
advice - - advice how to fix a reported problem

getAdvice

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

Returns:
advice how to fix a reported problem

setDescription

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

Parameters:
description - - detailed description of ReportItem

getDescription

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

Returns:
detailed description of ReportItem


Copyright © 2011. All Rights Reserved.