|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty<long[]>
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 |
---|
Fields inherited from interface org.apache.jackrabbit.webdav.jcr.ItemResourceConstants |
---|
EXCLUSIVE_SESSION, JCR_DEFINITION, JCR_DEPTH, JCR_INDEX, JCR_ISMODIFIED, JCR_ISNEW, JCR_LENGTH, JCR_LENGTHS, JCR_MIXINNODETYPES, JCR_NAME, JCR_NAMESPACES, JCR_PARENT, JCR_PATH, JCR_PRIMARYITEM, JCR_PRIMARYNODETYPE, JCR_REFERENCES, JCR_SELECTOR_NAME, JCR_TYPE, JCR_UUID, JCR_VALUE, JCR_VALUES, JCR_VERSIONABLEUUID, JCR_WEAK_REFERENCES, JCR_WORKSPACE_NAME, METHODS, NAMESPACE, PRIVILEGE_JCR_ADD_NODE, PRIVILEGE_JCR_READ, PRIVILEGE_JCR_REMOVE, PRIVILEGE_JCR_SET_PROPERTY |
Constructor Summary | |
---|---|
LengthsProperty(long[] lengths)
Create a new LengthsProperty from the given long array. |
Method Summary | |
---|---|
long[] |
getValue()
Returns an array of long s representing the value of this
property. |
Element |
toXml(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 propertyMethod Detail |
---|
public long[] getValue()
long
s representing the value of this
property.
getValue
in interface DavProperty<long[]>
long
spublic Element toXml(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 XmlSerializable
toXml
in class AbstractDavProperty<long[]>
document
- to be used as factory.
XmlSerializable.toXml(Document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |