Package org.jboss.test.audit.report
Class AuditParser
- java.lang.Object
-
- org.jboss.test.audit.report.AuditParser
-
public class AuditParser extends Object
Parsing utilities for tck-audit.xml- Author:
- Shane Bryzak
-
-
Constructor Summary
Constructors Constructor Description AuditParser(InputStream source, RuntimeProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AuditAssertion>getAssertionsForSection(String sectionId)List<SectionItem>getItemsForSection(String sectionId)Returns a list of items for the specified section IDStringgetName()List<String>getSectionIds()Map<String,List<SectionItem>>getSectionItems()StringgetSectionOriginalId(String sectionId)StringgetSectionTitle(String sectionId)StringgetSpecId()StringgetVersion()booleanhasAssertion(String sectionId, String assertionId)booleanhasSectionIdsGenerated()AuditParserparse()Load the spec assertions defined in tck-audit.xml
-
-
-
Constructor Detail
-
AuditParser
public AuditParser(InputStream source, RuntimeProperties properties)
-
-
Method Detail
-
getName
public String getName()
-
getSpecId
public String getSpecId()
-
getVersion
public String getVersion()
-
getSectionItems
public Map<String,List<SectionItem>> getSectionItems()
-
getAssertionsForSection
public List<AuditAssertion> getAssertionsForSection(String sectionId)
- Parameters:
sectionId- - id of related section- Returns:
- list of AuditAssertions
-
getItemsForSection
public List<SectionItem> getItemsForSection(String sectionId)
Returns a list of items for the specified section ID- Parameters:
sectionId- - id of related section- Returns:
- list of Section items
-
hasAssertion
public boolean hasAssertion(String sectionId, String assertionId)
- Parameters:
sectionId- - id of related sectionassertionId- - assertion id- Returns:
- true if it has assertion
-
parse
public AuditParser parse() throws Exception
Load the spec assertions defined in tck-audit.xml- Returns:
- AuditParse
- Throws:
Exception
-
hasSectionIdsGenerated
public boolean hasSectionIdsGenerated()
-
-