org.apache.jackrabbit.webdav.version.report
Class CompareBaselineReport

java.lang.Object
  extended by org.apache.jackrabbit.webdav.version.report.CompareBaselineReport
All Implemented Interfaces:
Report, XmlSerializable

public class CompareBaselineReport
extends Object
implements Report

CompareBaselineReport...


Field Summary
static ReportType COMPARE_BASELINE
           
 
Constructor Summary
CompareBaselineReport()
           
 
Method Summary
 ReportType getType()
          Returns COMPARE_BASELINE.
 void init(DavResource resource, ReportInfo info)
          Set the DeltaVResource for which this report was requested and the ReportInfo as specified by the REPORT request body, that defines the details for this report.
 boolean isMultiStatusReport()
          Always returns false.
 Element toXml(Document document)
          Returns the xml representation of the implementing object as Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARE_BASELINE

public static final ReportType COMPARE_BASELINE
Constructor Detail

CompareBaselineReport

public CompareBaselineReport()
Method Detail

getType

public ReportType getType()
Returns COMPARE_BASELINE.

Specified by:
getType in interface Report
Returns:
the type of this report.
See Also:
Report.getType()

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns false.

Specified by:
isMultiStatusReport in interface Report
Returns:
false
See Also:
Report.isMultiStatusReport()

init

public void init(DavResource resource,
                 ReportInfo info)
          throws DavException
Description copied from interface: Report
Set the DeltaVResource for which this report was requested and the ReportInfo as specified by the REPORT request body, that defines the details for this report.
Please note that this methods should perform basic validation checks in order to prevent execeptional situations during the xml serialization.

Specified by:
init in interface Report
Parameters:
resource -
info -
Throws:
DavException
See Also:
Report.init(DavResource, ReportInfo)

toXml

public Element toXml(Document document)
Description copied from interface: XmlSerializable
Returns the xml representation of the implementing object as Element. The given Document is used as factory and represents the owner document of the returned DOM element.

Specified by:
toXml in interface XmlSerializable
Parameters:
document - to be used as factory.
Returns:
a w3c element representing this object
See Also:
XmlSerializable.toXml(Document)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.