|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty<String[]>
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 isInvisibleInAllprop)
Creates a new WebDAV property with the given DavPropertyName |
|
HrefProperty(DavPropertyName name,
String value,
boolean isInvisibleInAllprop)
Creates a new WebDAV property with the given DavPropertyName |
|
| Method Summary | |
|---|---|
List<String> |
getHrefs()
Return an list of String containing the text of those DAV:href elements that would be returned as child elements of this property on XmlSerializable.toXml(Document) |
String[] |
getValue()
Returns an array of String. |
Element |
toXml(Document document)
Returns an Xml element with the following form: <Z:name> <DAV:href>value</DAV:href/> </Z:name> where Z: represents the prefix of the namespace defined with the initial webdav property name. |
| 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 HrefProperty(DavPropertyName name,
String value,
boolean isInvisibleInAllprop)
DavPropertyName
name - the name of the propertyvalue - the value of the propertyisInvisibleInAllprop - A value of true, defines this property to be invisible in PROPFIND/allprop
It will not be returned in a DAV:allprop
PROPFIND request.
public HrefProperty(DavPropertyName name,
String[] value,
boolean isInvisibleInAllprop)
DavPropertyName
name - the name of the propertyvalue - the value of the propertyisInvisibleInAllprop - A value of true, defines this property to be invisible in PROPFIND/allprop
It will not be returned in a DAV:allprop
PROPFIND 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 AbstractDavProperty<String[]>document -
DomUtil.hrefToXml(String,org.w3c.dom.Document)public String[] getValue()
DavProperty.getValue()public List<String> getHrefs()
XmlSerializable.toXml(Document)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||