|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty
org.apache.jackrabbit.webdav.jcr.property.LengthsProperty
public class LengthsProperty
LengthsProperty extends DavProperty providing
utilities to handle the multiple lengths of the property item represented
by this resource.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
LengthsProperty(long[] lengths)
Create a new LengthsProperty from the given long array. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getValue()
Returns an array of longs representing the value of this
property. |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Return a XML element representation of this property. |
| Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
|---|
equals, getName, hashCode, isInvisibleInAllprop |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LengthsProperty(long[] lengths)
LengthsProperty from the given long array.
lengths - as retrieved from the JCR property| Method Detail |
|---|
public java.lang.Object getValue()
longs representing the value of this
property.
getValue in interface DavPropertylongspublic org.w3c.dom.Element toXml(org.w3c.dom.Document document)
AbstractDavProperty
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 XmlSerializabletoXml in class AbstractDavPropertydocument - to be used as factory.
XmlSerializable.toXml(Document)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||