Class ParentElement
- java.lang.Object
-
- org.apache.jackrabbit.webdav.bind.ParentElement
-
- All Implemented Interfaces:
XmlSerializable
public class ParentElement extends Object implements XmlSerializable
ParentElementwraps en element of the parent set of a resource. Ajava.util.SetofParentElementobjects may serve as the value object of theParentSetDavProperty.
-
-
Constructor Summary
Constructors Constructor Description ParentElement(String href, String segment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParentElementcreateFromXml(Element root)Build anParentElementobject from an XML element DAV:parentStringgetHref()StringgetSegment()ElementtoXml(Document document)Returns the xml representation of the implementing object asElement.
-
-
-
Method Detail
-
getHref
public String getHref()
-
getSegment
public String getSegment()
-
createFromXml
public static ParentElement createFromXml(Element root) throws DavException
Build anParentElementobject 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 Element toXml(Document document)
Description copied from interface:XmlSerializableReturns the xml representation of the implementing object asElement. The givenDocumentis used as factory and represents theowner documentof the returned DOM element.- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(org.w3c.dom.Document)
-
-