|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.version.MergeInfo
MergeInfo
encapsulates the information present in the DAV:merge
element, that forms the mandatory request body of a MERGE request.
The DAV:merge element is specified to have the following form.
<!ELEMENT merge ANY> ANY value: A sequence of elements with one DAV:source element, at most one DAV:no-auto-merge element, at most one DAV:no-checkout element, at most one DAV:prop element, and any legal set of elements that can occur in a DAV:checkout element. <!ELEMENT source (href+)> <!ELEMENT no-auto-merge EMPTY> <!ELEMENT no-checkout EMPTY> prop: see RFC 2518, Section 12.11
Field Summary |
Constructor Summary | |
MergeInfo(Element mergeElement)
Create a new MergeInfo |
Method Summary | |
Element |
getMergeElement()
Returns the DAV:merge element used to create this MergeInfo
object. |
DavPropertyNameSet |
getPropertyNameSet()
Returns a DavPropertyNameSet . |
String[] |
getSourceHrefs()
Returns the URL specified with the DAV:source element or null
if no such child element is present in the DAV:merge element. |
boolean |
isNoAutoMerge()
Returns true if the DAV:merge element contains a DAV:no-auto-merge child element. |
boolean |
isNoCheckout()
Returns true if the DAV:merge element contains a DAV:no-checkout child element. |
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 |
Constructor Detail |
public MergeInfo(Element mergeElement) throws DavException
MergeInfo
mergeElement
-
DavException
- if the mergeElement is null
or not a DAV:merge element.Method Detail |
public String[] getSourceHrefs()
null
if no such child element is present in the DAV:merge element.
null
.public boolean isNoAutoMerge()
public boolean isNoCheckout()
public DavPropertyNameSet getPropertyNameSet()
DavPropertyNameSet
. If the DAV:merge element contains
a DAV:prop child element the properties specified therein are included
in the set. Otherwise an empty set is returned.UpdateInfo
.
public Element getMergeElement()
MergeInfo
object.
public Element toXml(Document document)
XmlSerializable
Element
. The given Document
is used
as factory and represents the owner document
of the returned DOM element.
toXml
in interface XmlSerializable
document
-
XmlSerializable.toXml(Document)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |