|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.webdav.version.report.ReportType
public class ReportType
ReportType
...
Field Summary | |
---|---|
static ReportType |
EXPAND_PROPERTY
|
static ReportType |
LOCATE_BY_HISTORY
|
static ReportType |
VERSION_TREE
|
Method Summary | |
---|---|
Report |
createReport(DeltaVResource resource,
ReportInfo info)
Creates a new Report with this type. |
String |
getLocalName()
|
Namespace |
getNamespace()
|
String |
getReportName()
Return the qualified name of this ReportType . |
static ReportType |
getType(ReportInfo reportInfo)
Return the ReportType requested by the given report info object. |
boolean |
isRequestedReportType(ReportInfo reqInfo)
Returns true if this ReportType is requested by the given
ReportInfo |
static ReportType |
register(String localName,
Namespace namespace,
Class reportClass)
Register the report type with the given name, namespace and class, that can run that report. |
Element |
toXml(Document document)
Returns an Xml element representing this report type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ReportType VERSION_TREE
public static final ReportType EXPAND_PROPERTY
public static final ReportType LOCATE_BY_HISTORY
Method Detail |
---|
public Report createReport(DeltaVResource resource, ReportInfo info) throws DavException
Report
with this type.
DavException
public Element toXml(Document document)
toXml
in interface XmlSerializable
document
-
XmlSerializable.toXml(org.w3c.dom.Document)
public boolean isRequestedReportType(ReportInfo reqInfo)
ReportType
is requested by the given
ReportInfo
reqInfo
-
public String getReportName()
ReportType
.
public String getLocalName()
public Namespace getNamespace()
public static ReportType register(String localName, Namespace namespace, Class reportClass)
localName
- namespace
- reportClass
-
IllegalArgumentException
- if either parameter is null
or
if the given class does not implement the Report
interface or if
it does not provide an empty constructor.public static ReportType getType(ReportInfo reportInfo)
ReportType
requested by the given report info object.
reportInfo
-
ReportType
IllegalArgumentException
- if the reportInfo is null
or
if the requested report type has not been registered yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |