Class SimpleXmlClaimReporter
java.lang.Object
org.apache.rat.report.AbstractReport
org.apache.rat.report.claim.impl.xml.SimpleXmlClaimReporter
- All Implemented Interfaces:
RatReport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Empty default implementation.void
Empty default implementation.void
Empty default implementation.protected void
writeClaim(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:AbstractReport
Empty default implementation.- Specified by:
report
in interfaceRatReport
- Overrides:
report
in classAbstractReport
- Parameters:
subject
- the actual document- Throws:
RatException
- on error.
-
startReport
Description copied from class:AbstractReport
Empty default implementation.- Specified by:
startReport
in interfaceRatReport
- Overrides:
startReport
in classAbstractReport
- Throws:
RatException
- on error.- See Also:
RatReport.report(Document)
-
endReport
Description copied from class:AbstractReport
Empty default implementation.- Specified by:
endReport
in interfaceRatReport
- Overrides:
endReport
in classAbstractReport
- Throws:
RatException
- on error.- See Also:
RatReport.report(Document)
-