public class ParentElement extends Object implements XmlSerializable
ParentElement wraps en element of the parent set of a resource. A java.util.Set of
 ParentElement objects may serve as the value object of the ParentSet DavProperty.| Constructor and Description | 
|---|
ParentElement(String href,
             String segment)  | 
| Modifier and Type | Method and Description | 
|---|---|
static ParentElement | 
createFromXml(Element root)
Build an  
ParentElement object from an XML element DAV:parent | 
String | 
getHref()  | 
String | 
getSegment()  | 
Element | 
toXml(Document document)
Returns the xml representation of the implementing object as
  
Element. | 
public String getHref()
public String getSegment()
public static ParentElement createFromXml(Element root) throws DavException
ParentElement object from an XML element DAV:parentroot - the DAV:parent elementDavException - if the DAV:parent element is malformedpublic Element toXml(Document document)
XmlSerializableElement. The given Document is used
 as factory and represents the owner document of the returned DOM element.toXml in interface XmlSerializabledocument - to be used as factory.XmlSerializable.toXml(org.w3c.dom.Document)Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.