Class ParentElement
- java.lang.Object
-
- org.apache.jackrabbit.webdav.bind.ParentElement
-
- All Implemented Interfaces:
XmlSerializable
public class ParentElement extends java.lang.Object implements XmlSerializable
ParentElement
wraps en element of the parent set of a resource. Ajava.util.Set
ofParentElement
objects may serve as the value object of theParentSet
DavProperty.
-
-
Constructor Summary
Constructors Constructor Description ParentElement(java.lang.String href, java.lang.String segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParentElement
createFromXml(org.w3c.dom.Element root)
Build anParentElement
object from an XML element DAV:parentjava.lang.String
getHref()
java.lang.String
getSegment()
org.w3c.dom.Element
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object asElement
.
-
-
-
Method Detail
-
getHref
public java.lang.String getHref()
-
getSegment
public java.lang.String getSegment()
-
createFromXml
public static ParentElement createFromXml(org.w3c.dom.Element root) throws DavException
Build anParentElement
object from an XML element DAV:parent- Parameters:
root
- the DAV:parent element- Returns:
- a ParentElement object
- Throws:
DavException
- if the DAV:parent element is malformed
-
toXml
public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
Description copied from interface:XmlSerializable
Returns the xml representation of the implementing object asElement
. The givenDocument
is used as factory and represents theowner document
of the returned DOM element.- Specified by:
toXml
in interfaceXmlSerializable
- Parameters:
document
- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(org.w3c.dom.Document)
-
-