|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.webdav.property.AbstractDavProperty
public abstract class 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. |
Element |
toXml(Document document)
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()
hashCode
in class Object
public boolean equals(Object obj)
name
and value as the given one.
equals
in class Object
obj
- the object to compare to
true
if the 2 objects are equal;
false
otherwisepublic Element toXml(Document document)
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 XmlSerializable
document
-
XmlSerializable.toXml(Document)
public DavPropertyName getName()
getName
in interface DavProperty
DavProperty.getName()
public boolean isProtected()
isProtected
in interface DavProperty
DavProperty.isProtected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |