Class SimpleXmlClaimReporter
java.lang.Object
org.apache.rat.report.AbstractReport
org.apache.rat.report.claim.impl.xml.SimpleXmlClaimReporter
- All Implemented Interfaces:
RatReport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEmpty default implementation.voidEmpty default implementation.voidEmpty default implementation.protected voidwriteClaim(String pPredicate, String pObject, boolean pLiteral)Writes a single claim to the XML file.
-
Constructor Details
-
SimpleXmlClaimReporter
-
-
Method Details
-
writeClaim
protected void writeClaim(String pPredicate, String pObject, boolean pLiteral) throws IOException, RatExceptionWrites a single claim to the XML file.- Parameters:
pPredicate- The claims predicate.pObject- The claims object.pLiteral- Whether to write the object as an element (true), or an attribute (false).- Throws:
IOException- An I/O error occurred while writing the claim.RatException- Another error occurred while writing the claim.
-
report
Description copied from class:AbstractReportEmpty default implementation.- Specified by:
reportin interfaceRatReport- Overrides:
reportin classAbstractReport- Parameters:
subject- the actual document- Throws:
RatException- on error.
-
startReport
Description copied from class:AbstractReportEmpty default implementation.- Specified by:
startReportin interfaceRatReport- Overrides:
startReportin classAbstractReport- Throws:
RatException- on error.- See Also:
RatReport.report(Document)
-
endReport
Description copied from class:AbstractReportEmpty default implementation.- Specified by:
endReportin interfaceRatReport- Overrides:
endReportin classAbstractReport- Throws:
RatException- on error.- See Also:
RatReport.report(Document)
-