|
||||||||||
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>
org.apache.jackrabbit.webdav.property.DefaultDavProperty<T>
public class DefaultDavProperty<T>
DefaultDavProperty
...
Field Summary |
---|
Constructor Summary | |
---|---|
DefaultDavProperty(DavPropertyName name,
T value)
Creates a new non- protected WebDAV property with the given DavPropertyName and value. |
|
DefaultDavProperty(DavPropertyName name,
T value,
boolean isProtected)
Creates a new WebDAV property with the given DavPropertyName
and value. |
|
DefaultDavProperty(String name,
T value,
Namespace namespace)
Creates a new non-protected WebDAV property with the given namespace, name and value. |
|
DefaultDavProperty(String name,
T value,
Namespace namespace,
boolean isProtected)
Creates a new WebDAV property with the given namespace, name and value. |
Method Summary | |
---|---|
static DefaultDavProperty<?> |
createFromXml(Element propertyElement)
Create a new DefaultDavProperty instance from the given Xml
element. |
T |
getValue()
Returns the value of this property |
Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
---|
equals, getName, hashCode, isInvisibleInAllprop, toXml |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDavProperty(String name, T value, Namespace namespace, boolean isProtected)
name
- the name of the propertyvalue
- the value of the propertynamespace
- the namespace of the propertyisProtected
- A value of true, defines this property to be protected.
It will not be returned in a DAV:allprop
PROPFIND request and cannot be set/removed with a PROPPATCH request.public DefaultDavProperty(String name, T value, Namespace namespace)
name
- the name of the propertyvalue
- the value of the propertynamespace
- the namespace of the propertypublic DefaultDavProperty(DavPropertyName name, T value, boolean isProtected)
DavPropertyName
and value. If the property is meant to be protected the 'isProtected'
flag must be set to true.
name
- the name of the propertyvalue
- the value of the propertyisProtected
- A value of true, defines this property to be protected.
It will not be returned in a DAV:allprop
PROPFIND request and cannot be set/removed with a PROPPATCH request.public DefaultDavProperty(DavPropertyName name, T value)
DavPropertyName
and value.
name
- the name of the propertyvalue
- the value of the propertyMethod Detail |
---|
public T getValue()
public static DefaultDavProperty<?> createFromXml(Element propertyElement)
DefaultDavProperty
instance from the given Xml
element. Name and namespace of the element are building the DavPropertyName
,
while the element's content forms the property value. The following logic
is applied:
- empty Element ->null
value - single Text content ->String
value - single non-Text content -> Element.getContent(0) is used as value - other: List obtained from Element.getContent() is used as value
propertyElement
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |