org.apache.rat.report.claim.impl.xml
Class SimpleXmlClaimReporter
java.lang.Object
org.apache.rat.report.AbstractReport
org.apache.rat.report.claim.impl.xml.SimpleXmlClaimReporter
- All Implemented Interfaces:
- RatReport
public class SimpleXmlClaimReporter
- extends AbstractReport
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LICENSE_APPROVAL_PREDICATE
public static final String LICENSE_APPROVAL_PREDICATE
- See Also:
- Constant Field Values
LICENSE_FAMILY_PREDICATE
public static final String LICENSE_FAMILY_PREDICATE
- See Also:
- Constant Field Values
HEADER_SAMPLE_PREDICATE
public static final String HEADER_SAMPLE_PREDICATE
- See Also:
- Constant Field Values
HEADER_TYPE_PREDICATE
public static final String HEADER_TYPE_PREDICATE
- See Also:
- Constant Field Values
FILE_TYPE_PREDICATE
public static final String FILE_TYPE_PREDICATE
- See Also:
- Constant Field Values
ARCHIVE_TYPE_PREDICATE
public static final String ARCHIVE_TYPE_PREDICATE
- See Also:
- Constant Field Values
ARCHIVE_TYPE_UNREADABLE
public static final String ARCHIVE_TYPE_UNREADABLE
- See Also:
- Constant Field Values
ARCHIVE_TYPE_READABLE
public static final String ARCHIVE_TYPE_READABLE
- See Also:
- Constant Field Values
SimpleXmlClaimReporter
public SimpleXmlClaimReporter(IXmlWriter writer)
writeClaim
protected void writeClaim(String pPredicate,
String pObject,
boolean pLiteral)
throws IOException,
RatException
- Writes 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
public void report(Document subject)
throws RatException
- Specified by:
report
in interface RatReport
- Overrides:
report
in class AbstractReport
- Throws:
RatException
startReport
public void startReport()
throws RatException
- Specified by:
startReport
in interface RatReport
- Overrides:
startReport
in class AbstractReport
- Throws:
RatException
endReport
public void endReport()
throws RatException
- Specified by:
endReport
in interface RatReport
- Overrides:
endReport
in class AbstractReport
- Throws:
RatException
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.