public class ParentElement extends java.lang.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(java.lang.String href,
java.lang.String segment) |
Modifier and Type | Method and Description |
---|---|
static ParentElement |
createFromXml(org.w3c.dom.Element root)
Build an
ParentElement object from an XML element DAV:parent |
java.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 as
Element . |
public ParentElement(java.lang.String href, java.lang.String segment)
public java.lang.String getHref()
public java.lang.String getSegment()
public static ParentElement createFromXml(org.w3c.dom.Element root) throws DavException
ParentElement
object from an XML element DAV:parentroot
- the DAV:parent elementDavException
- if the DAV:parent element is malformedpublic org.w3c.dom.Element toXml(org.w3c.dom.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
- to be used as factory.XmlSerializable.toXml(org.w3c.dom.Document)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"