Package org.alfresco.solr.query
Class SolrXPathHandler
java.lang.Object
org.alfresco.solr.query.SolrXPathHandler
- All Implemented Interfaces:
org.jaxen.saxpath.XPathHandler
XPATH handler for lucene - currently only does basic paths
- Author:
- andyh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidendAdditiveExpr(int op) voidvoidendAndExpr(boolean create) voidvoidendEqualityExpr(int op) voidvoidvoidendMultiplicativeExpr(int op) voidvoidendOrExpr(boolean create) voidvoidvoidvoidendRelationalExpr(int op) voidvoidvoidendUnaryExpr(int op) voidendUnionExpr(boolean create) voidendXPath()getQuery()Get the resulting queryvoidvoidnumber(double arg0) voidnumber(int arg0) voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) Set the dictionary service.voidsetNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver) Set the service to resolve name space prefixesvoidvoidvoidstartAllNodeStep(int axis) voidvoidstartCommentNodeStep(int arg0) voidvoidvoidstartFunction(String arg0, String arg1) voidvoidstartNameStep(int axis, String nameSpace, String localName) voidvoidvoidvoidstartProcessingInstructionNodeStep(int arg0, String arg1) voidvoidvoidstartTextNodeStep(int arg0) voidvoidvoidvoidvariableReference(String uri, String localName)
-
Constructor Details
-
SolrXPathHandler
public SolrXPathHandler()
-
-
Method Details
-
getQuery
Get the resulting query- Returns:
- - the query
-
endAbsoluteLocationPath
public void endAbsoluteLocationPath() throws org.jaxen.saxpath.SAXPathException- Specified by:
endAbsoluteLocationPathin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endAdditiveExpr
public void endAdditiveExpr(int op) throws org.jaxen.saxpath.SAXPathException - Specified by:
endAdditiveExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endAllNodeStep
public void endAllNodeStep() throws org.jaxen.saxpath.SAXPathException- Specified by:
endAllNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endAndExpr
public void endAndExpr(boolean create) throws org.jaxen.saxpath.SAXPathException - Specified by:
endAndExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endCommentNodeStep
public void endCommentNodeStep() throws org.jaxen.saxpath.SAXPathException- Specified by:
endCommentNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endEqualityExpr
public void endEqualityExpr(int op) throws org.jaxen.saxpath.SAXPathException - Specified by:
endEqualityExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endFilterExpr
public void endFilterExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
endFilterExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endFunction
public void endFunction() throws org.jaxen.saxpath.SAXPathException- Specified by:
endFunctionin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endMultiplicativeExpr
public void endMultiplicativeExpr(int op) throws org.jaxen.saxpath.SAXPathException - Specified by:
endMultiplicativeExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endNameStep
public void endNameStep() throws org.jaxen.saxpath.SAXPathException- Specified by:
endNameStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endOrExpr
public void endOrExpr(boolean create) throws org.jaxen.saxpath.SAXPathException - Specified by:
endOrExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endPathExpr
public void endPathExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
endPathExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endPredicate
public void endPredicate() throws org.jaxen.saxpath.SAXPathException- Specified by:
endPredicatein interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endProcessingInstructionNodeStep
public void endProcessingInstructionNodeStep() throws org.jaxen.saxpath.SAXPathException- Specified by:
endProcessingInstructionNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endRelationalExpr
public void endRelationalExpr(int op) throws org.jaxen.saxpath.SAXPathException - Specified by:
endRelationalExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endRelativeLocationPath
public void endRelativeLocationPath() throws org.jaxen.saxpath.SAXPathException- Specified by:
endRelativeLocationPathin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endTextNodeStep
public void endTextNodeStep() throws org.jaxen.saxpath.SAXPathException- Specified by:
endTextNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endUnaryExpr
public void endUnaryExpr(int op) throws org.jaxen.saxpath.SAXPathException - Specified by:
endUnaryExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endUnionExpr
public void endUnionExpr(boolean create) throws org.jaxen.saxpath.SAXPathException - Specified by:
endUnionExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
endXPath
public void endXPath() throws org.jaxen.saxpath.SAXPathException- Specified by:
endXPathin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
literal
- Specified by:
literalin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
number
public void number(double arg0) throws org.jaxen.saxpath.SAXPathException - Specified by:
numberin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
number
public void number(int arg0) throws org.jaxen.saxpath.SAXPathException - Specified by:
numberin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startAbsoluteLocationPath
public void startAbsoluteLocationPath() throws org.jaxen.saxpath.SAXPathException- Specified by:
startAbsoluteLocationPathin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startAdditiveExpr
public void startAdditiveExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startAdditiveExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startAllNodeStep
public void startAllNodeStep(int axis) throws org.jaxen.saxpath.SAXPathException - Specified by:
startAllNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startAndExpr
public void startAndExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startAndExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startCommentNodeStep
public void startCommentNodeStep(int arg0) throws org.jaxen.saxpath.SAXPathException - Specified by:
startCommentNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startEqualityExpr
public void startEqualityExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startEqualityExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startFilterExpr
public void startFilterExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startFilterExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startFunction
- Specified by:
startFunctionin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startMultiplicativeExpr
public void startMultiplicativeExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startMultiplicativeExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startNameStep
public void startNameStep(int axis, String nameSpace, String localName) throws org.jaxen.saxpath.SAXPathException - Specified by:
startNameStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startOrExpr
public void startOrExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startOrExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startPathExpr
public void startPathExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startPathExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startPredicate
public void startPredicate() throws org.jaxen.saxpath.SAXPathException- Specified by:
startPredicatein interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startProcessingInstructionNodeStep
public void startProcessingInstructionNodeStep(int arg0, String arg1) throws org.jaxen.saxpath.SAXPathException - Specified by:
startProcessingInstructionNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startRelationalExpr
public void startRelationalExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startRelationalExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startRelativeLocationPath
public void startRelativeLocationPath() throws org.jaxen.saxpath.SAXPathException- Specified by:
startRelativeLocationPathin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startTextNodeStep
public void startTextNodeStep(int arg0) throws org.jaxen.saxpath.SAXPathException - Specified by:
startTextNodeStepin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startUnaryExpr
public void startUnaryExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startUnaryExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startUnionExpr
public void startUnionExpr() throws org.jaxen.saxpath.SAXPathException- Specified by:
startUnionExprin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
startXPath
public void startXPath() throws org.jaxen.saxpath.SAXPathException- Specified by:
startXPathin interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
variableReference
public void variableReference(String uri, String localName) throws org.jaxen.saxpath.SAXPathException - Specified by:
variableReferencein interfaceorg.jaxen.saxpath.XPathHandler- Throws:
org.jaxen.saxpath.SAXPathException
-
setNamespacePrefixResolver
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver) Set the service to resolve name space prefixes- Parameters:
namespacePrefixResolver-
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) Set the dictionary service.- Parameters:
dictionaryService-
-