The
Property
class represents a Property of a WebDAV resource. The {@link #hashCode()} and {@link #equals(Object)} METHODS areoverridden in a way, that the name and value of the property are respected. this means, an property is equal to another, if the names and values are equal.
The XML representation of a
DavProperty
:
new DavProperty("displayname", "WebDAV Directory").toXml gives a element like: <D:displayname>WebDAV Directory</D:displayname> new DavProperty("resourcetype", new Element("collection")).toXml gives a element like: <D:resourcetype><D:collection/></D:resourcetype> Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace) }; new DavProperty("custom-property", customVals, customNamespace).toXml gives an element like <Z:custom-property> <Z:bla/> <Z:bli/> </Z:custom-property>