|
||||||||||
| 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.property.HrefProperty
public class HrefProperty
HrefProperty is an extension to the common DavProperty.
The String representation of the property value is always displayed as text
inside an extra 'href' element. If the value is a String array each array
element is added as text to a separate 'href' element.
DavConstants.XML_HREF,
DavProperty.getValue()| Field Summary |
|---|
| Constructor Summary | |
|---|---|
HrefProperty(DavProperty prop)
Create a new HrefProperty from the specified property. |
|
HrefProperty(DavPropertyName name,
String[] value,
boolean isProtected)
Creates a new WebDAV property with the given DavPropertyName |
|
HrefProperty(DavPropertyName name,
String value,
boolean isProtected)
Creates a new WebDAV property with the given DavPropertyName |
|
| Method Summary | |
|---|---|
List |
getHrefs()
Return an array of String containg the text of those DAV:href elements that would be returned as child elements of this property on XmlSerializable.toXml(Document) |
Object |
getValue()
Returns an array of String. |
Element |
toXml(Document document)
Returns an Xml element with the following form: |
| Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
|---|
equals, getName, hashCode, isProtected |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HrefProperty(DavPropertyName name,
String value,
boolean isProtected)
DavPropertyName
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 HrefProperty(DavPropertyName name,
String[] value,
boolean isProtected)
DavPropertyName
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 HrefProperty(DavProperty prop)
HrefProperty from the specified property.
Please note, that the property must have a List value
object, consisting of href Element entries.
prop - | Method Detail |
|---|
public Element toXml(Document document)
<Z:name>
<DAV:href>value</DAV:href/>
</Z:name>
where Z: represents the prefix of the namespace defined with the initial
webdav property name.
toXml in interface XmlSerializabletoXml in class AbstractDavPropertydocument -
DomUtil.hrefToXml(String,org.w3c.dom.Document)public Object getValue()
DavProperty.getValue()public List getHrefs()
XmlSerializable.toXml(Document)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||