|
||||||||||
| 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 isInvisibleInAllprop)
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 isInvisibleInAllprop)
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 isInvisibleInAllprop)
name - the name of the propertyvalue - the value of the propertynamespace - the namespace of the propertyisInvisibleInAllprop - 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 property
public DefaultDavProperty(DavPropertyName name,
T value,
boolean isInvisibleInAllprop)
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 propertyisInvisibleInAllprop - 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 property| Method 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 ->nullvalue - single Text content ->Stringvalue - 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 | |||||||||