|
||||||||||
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.jcr.search.SearchResultProperty
public class SearchResultProperty
SearchResultProperty
...
Field Summary | |
---|---|
static DavPropertyName |
SEARCH_RESULT_PROPERTY
|
Constructor Summary | |
---|---|
SearchResultProperty(DavProperty property,
ValueFactory valueFactory)
Wrap the specified DavProperty in a new SearchResultProperty . |
|
SearchResultProperty(String[] columnNames,
Value[] values)
Creates a new SearchResultProperty . |
Method Summary | |
---|---|
String[] |
getColumnNames()
Return the column names representing the names of the properties present in the values . |
Object |
getValue()
Same as getValues() |
Value[] |
getValues()
Return the values representing the values of that row in the search result table. |
Element |
toXml(Document document)
Return the xml representation of this webdav 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 |
Field Detail |
---|
public static final DavPropertyName SEARCH_RESULT_PROPERTY
Constructor Detail |
---|
public SearchResultProperty(String[] columnNames, Value[] values)
SearchResultProperty
.
columnNames
- the column names of the search row represented by this
dav property.values
- the values present in the columnspublic SearchResultProperty(DavProperty property, ValueFactory valueFactory) throws RepositoryException
DavProperty
in a new SearchResultProperty
.
property
- valueFactory
- factory used to deserialize the xml value to a JCR value.
RepositoryException
- if an error occurs while build the property value
IllegalArgumentException
- if the specified property does have the
required form.getValues()
Method Detail |
---|
public String[] getColumnNames()
values
.
public Value[] getValues()
Row.getValues()
public Object getValue()
getValues()
getValue
in interface DavProperty
public Element toXml(Document document)
----------------------------------------------------------- col-name | bla | bli | jcr:path | jcr:score ----------------------------------------------------------- value | xxx | 111 | /aNode | 1 type | 1 | 3 | 8 | 3 -----------------------------------------------------------results in:
<dcr:search-result-property xmlns:dcr="http://www.day.com/jcr/webdav/1.0"> <dcr:column> <dcr:name>bla<dcr:name/> <dcr:value dcr:type="String">xxx<dcr:value/> </dcr:column> <dcr:column> <dcr:name>bli<dcr:name/> <dcr:value dcr:type="Long">111<dcr:value/> </dcr:column> <dcr:column> <dcr:name>jcr:path<dcr:name/> <dcr:value dcr:type="Path">/aNode<dcr:value/> </dcr:column> <dcr:column> <dcr:name>jcr:score<dcr:name/> <dcr:value dcr:type="Long">1<dcr:value/> </dcr:column> </dcr:search-result-property>
toXml
in interface XmlSerializable
toXml
in class AbstractDavProperty
document
- to be used as factory.
XmlSerializable.toXml(org.w3c.dom.Document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |