org.anadix.section508.report
Class Section508ReportItem

java.lang.Object
  extended by org.anadix.impl.AbstractReportItem
      extended by org.anadix.section508.report.Section508ReportItem
All Implemented Interfaces:
ReportItem
Direct Known Subclasses:
CellMissingAssociation, ColumnMissingHeader, DocumentContainsStyle, DocumentHasErrors, DocumentMissingNoscript, DocumentRequiresTime, DocumentSkipNavigation, ElementCauseFlickering, ElementContainsColor, ElementContainsStyle, ElementWrongContrast, FrameMissingTitle, HrefContainsJavascript, ImgEmptyAlt, ImgIsMap, InputMissingLabel, MissingAlt, MultimediaNeedAlternative, ObjectCompliesConditions, RowMissingHeader, TextContainsColor

public abstract class Section508ReportItem
extends AbstractReportItem

Abstract class for all Section 508 related reports

Version:
$Id: $
Author:
tomason

Constructor Summary
Section508ReportItem(ItemStatus status, String key, Object... args)
          Constructor
 
Method Summary
protected static String formatAdviceString(String key, Object... args)
          Retrieves and formats the advice from the resource bundle
protected static String formatDescriptionString(String key, Object... args)
          Retrieves and formats the description from the resource bundle
 
Methods inherited from class org.anadix.impl.AbstractReportItem
getAdvice, getDescription, getItemText, getStatus, setAdvice, setDescription, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Section508ReportItem

public Section508ReportItem(ItemStatus status,
                            String key,
                            Object... args)
Constructor

Parameters:
status - ReportItem status
key - key to find description under (in ItemText resource bundle)
args - arguments to insert into descritption
Method Detail

formatAdviceString

protected static String formatAdviceString(String key,
                                           Object... args)
Retrieves and formats the advice from the resource bundle

Parameters:
key - key to get format from (from Advice.properties)
args - arguments to format the advice with
Returns:
formatted advice string

formatDescriptionString

protected static String formatDescriptionString(String key,
                                                Object... args)
Retrieves and formats the description from the resource bundle

Parameters:
key - key to get format from (from Description.properties)
args - arguments to format the description with
Returns:
formatted description string


Copyright © 2011. All Rights Reserved.