org.jboss.test.audit.report
Class AuditParser

java.lang.Object
  extended by org.jboss.test.audit.report.AuditParser

public class AuditParser
extends Object

Parsing utilities for tck-audit.xml

Author:
Shane Bryzak

Constructor Summary
AuditParser(InputStream source)
           
 
Method Summary
 List<AuditAssertion> getAssertionsForSection(String sectionId)
           
 List<SectionItem> getItemsForSection(String sectionId)
          Returns a list of items for the specified section ID
 String getName()
           
 List<String> getSectionIds()
           
 Map<String,List<SectionItem>> getSectionItems()
           
 String getSectionTitle(String sectionId)
           
 String getSpecId()
           
 String getVersion()
           
 boolean hasAssertion(String sectionId, String assertionId)
           
 void parse()
          Load the spec assertions defined in tck-audit.xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditParser

public AuditParser(InputStream source)
Method Detail

getName

public String getName()

getSpecId

public String getSpecId()

getVersion

public String getVersion()

getSectionTitle

public String getSectionTitle(String sectionId)

getSectionItems

public Map<String,List<SectionItem>> getSectionItems()

getSectionIds

public List<String> getSectionIds()

getAssertionsForSection

public List<AuditAssertion> getAssertionsForSection(String sectionId)
Parameters:
sectionId -
Returns:

getItemsForSection

public List<SectionItem> getItemsForSection(String sectionId)
Returns a list of items for the specified section ID

Parameters:
sectionId -
Returns:

hasAssertion

public boolean hasAssertion(String sectionId,
                            String assertionId)
Parameters:
sectionId -
assertionId -
Returns:

parse

public void parse()
           throws Exception
Load the spec assertions defined in tck-audit.xml

Throws:
Exception


Copyright © 2009-2012. All Rights Reserved.