|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty<T>
public abstract class AbstractDavProperty<T>
AbstractDavProperty provides generic METHODS used by various
implementations of the DavProperty interface.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AbstractDavProperty(DavPropertyName name,
boolean isInvisibleInAllprop)
Create a new AbstractDavProperty with the given DavPropertyName
and a boolean flag indicating whether this property should be suppressed
in PROPFIND/allprop responses. |
|
| 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 property's name and value. |
boolean |
isInvisibleInAllprop()
Return true if this property should be suppressed
in a PROPFIND/DAV:allprop
response. |
Element |
toXml(Document document)
Return a XML 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 isInvisibleInAllprop)
AbstractDavProperty with the given DavPropertyName
and a boolean flag indicating whether this property should be suppressed
in PROPFIND/allprop responses.
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
name
and value as the given one.
equals in class Objectobj - 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 XmlSerializabledocument -
XmlSerializable.toXml(Document)public DavPropertyName getName()
getName in interface DavProperty<T>DavProperty.getName()public boolean isInvisibleInAllprop()
true if this property should be suppressed
in a PROPFIND/DAV:allprop
response. See RFC 4918, Section 9.1.
isInvisibleInAllprop in interface DavProperty<T>DavProperty.isInvisibleInAllprop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||