|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty
AbstractDavProperty provides generic METHODS used by various
implementations of the DavProperty interface.
| Field Summary |
| Constructor Summary | |
AbstractDavProperty(DavPropertyName name,
boolean isProtected)
Create a new AbstractDavProperty with the given DavPropertyName
and a boolean flag indicating whether this property is protected. |
|
| Method Summary | |
boolean |
equals(Object obj)
Checks if this property has the same name
and value as the given one. |
DavPropertyName |
getName()
Returns the name of this property. |
int |
hashCode()
Computes the hash code using this propertys name and value. |
boolean |
isProtected()
Returns true if this property is protected or computed. |
org.jdom.Element |
toXml()
Return a JDOM element representation of this property. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.webdav.property.DavProperty |
getValue |
| Constructor Detail |
public AbstractDavProperty(DavPropertyName name,
boolean isProtected)
AbstractDavProperty with the given DavPropertyName
and a boolean flag indicating whether this property is protected.
name - isProtected - | Method Detail |
public int hashCode()
public boolean equals(Object obj)
name
and value as the given one.
obj - the object to compare to
true if the 2 objects are equal;
false otherwisepublic org.jdom.Element toXml()
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>
toXml in interface DavPropertyDavProperty.toXml()public DavPropertyName getName()
getName in interface DavPropertyDavProperty.getName()public boolean isProtected()
isProtected in interface DavPropertyDavProperty.isProtected()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||