All Superinterfaces:
DavConstants, PropEntry, XmlSerializable
All Known Implementing Classes:
AbstractDavProperty, DefaultDavProperty, HrefProperty, ResourceType

public interface DavProperty<T> extends XmlSerializable, DavConstants, PropEntry
The Property class represents a Property of a WebDAV resource. The Object.hashCode() and Object.equals(Object) methods are overridden in a way, such that the name and value of the property are respected. This means, a 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>
 
  • Method Details

    • getName

      DavPropertyName getName()
      Returns the name of this property
      Returns:
      the name of this property
    • getValue

      T getValue()
      Returns the value of this property
      Returns:
      the value of this property
    • isInvisibleInAllprop

      boolean isInvisibleInAllprop()
      Return true if this property should be suppressed in a PROPFIND/DAV:allprop response. See RFC 4918, Section 9.1.
      Returns:
      true, if this property should be suppressed in a PROPFIND/allprop response