|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty<Value[]>
org.apache.jackrabbit.webdav.jcr.search.SearchResultProperty
public class SearchResultProperty
SearchResultProperty
...
Field Summary |
---|
Fields inherited from interface org.apache.jackrabbit.webdav.jcr.ItemResourceConstants |
---|
EXCLUSIVE_SESSION, JCR_DEFINITION, JCR_DEPTH, JCR_INDEX, JCR_ISMODIFIED, JCR_ISNEW, JCR_LENGTH, JCR_LENGTHS, JCR_MIXINNODETYPES, JCR_NAME, JCR_NAMESPACES, JCR_PARENT, JCR_PATH, JCR_PRIMARYITEM, JCR_PRIMARYNODETYPE, JCR_REFERENCES, JCR_SELECTOR_NAME, JCR_TYPE, JCR_UUID, JCR_VALUE, JCR_VALUES, JCR_VERSIONABLEUUID, JCR_WEAK_REFERENCES, JCR_WORKSPACE_NAME, METHODS, NAMESPACE, PRIVILEGE_JCR_ADD_NODE, PRIVILEGE_JCR_READ, PRIVILEGE_JCR_REMOVE, PRIVILEGE_JCR_SET_PROPERTY |
Constructor Summary | |
---|---|
SearchResultProperty(DavProperty<?> property,
ValueFactory valueFactory)
Wrap the specified DavProperty in a new SearchResultProperty . |
|
SearchResultProperty(String[] columnNames,
String[] selectorNames,
Value[] values)
Creates a new SearchResultProperty . |
Method Summary | |
---|---|
String[] |
getColumnNames()
Return the column names representing the names of the properties present in the values . |
String[] |
getSelectorNames()
|
Value[] |
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 |
Constructor Detail |
---|
public SearchResultProperty(String[] columnNames, String[] selectorNames, Value[] values)
SearchResultProperty
.
columnNames
- the column names of the search row represented by
this dav property.selectorNames
- the selecotr names of the 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 String[] getSelectorNames()
public Value[] getValues()
Row.getValues()
public Value[] getValue()
getValues()
getValue
in interface DavProperty<Value[]>
public Element toXml(Document document)
----------------------------------------------------------- col-name | bla | bli | jcr:path | jcr:score ----------------------------------------------------------- value | xxx | 111 | /aNode | 1 type | 1 | 3 | 8 | 3 sel-name | | | S | S -----------------------------------------------------------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:selectorName>S<dcr:selectorName/> </dcr:column> <dcr:column> <dcr:name>jcr:score<dcr:name/> <dcr:value dcr:type="Long">1<dcr:value/> <dcr:selectorName>S<dcr:selectorName/> </dcr:column> </dcr:search-result-property>
toXml
in interface XmlSerializable
toXml
in class AbstractDavProperty<Value[]>
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 |