|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Property
class represents a Property of a WebDAV
resource. The #hashCode()
and #equals(Object)
METHODS are
overridden 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>
Field Summary |
Method Summary | |
DavPropertyName |
getName()
Returns the name of this property |
Object |
getValue()
Returns the value of this property |
boolean |
isProtected()
Return true if this property is protected. |
Methods inherited from interface org.apache.jackrabbit.webdav.xml.XmlSerializable |
toXml |
Method Detail |
public DavPropertyName getName()
public Object getValue()
public boolean isProtected()
DAV:allprop
PROPFIND request and cannot be set/removed with a PROPPATCH request.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |