Package org.alfresco.solr.query
Class SolrXPathHandler
- java.lang.Object
-
- org.alfresco.solr.query.SolrXPathHandler
-
- All Implemented Interfaces:
org.jaxen.saxpath.XPathHandler
public class SolrXPathHandler extends java.lang.Object implements org.jaxen.saxpath.XPathHandlerXPATH handler for lucene - currently only does basic paths- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description SolrXPathHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendAbsoluteLocationPath()voidendAdditiveExpr(int op)voidendAllNodeStep()voidendAndExpr(boolean create)voidendCommentNodeStep()voidendEqualityExpr(int op)voidendFilterExpr()voidendFunction()voidendMultiplicativeExpr(int op)voidendNameStep()voidendOrExpr(boolean create)voidendPathExpr()voidendPredicate()voidendProcessingInstructionNodeStep()voidendRelationalExpr(int op)voidendRelativeLocationPath()voidendTextNodeStep()voidendUnaryExpr(int op)voidendUnionExpr(boolean create)voidendXPath()SolrPathQuerygetQuery()Get the resulting queryvoidliteral(java.lang.String arg0)voidnumber(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 prefixesvoidstartAbsoluteLocationPath()voidstartAdditiveExpr()voidstartAllNodeStep(int axis)voidstartAndExpr()voidstartCommentNodeStep(int arg0)voidstartEqualityExpr()voidstartFilterExpr()voidstartFunction(java.lang.String arg0, java.lang.String arg1)voidstartMultiplicativeExpr()voidstartNameStep(int axis, java.lang.String nameSpace, java.lang.String localName)voidstartOrExpr()voidstartPathExpr()voidstartPredicate()voidstartProcessingInstructionNodeStep(int arg0, java.lang.String arg1)voidstartRelationalExpr()voidstartRelativeLocationPath()voidstartTextNodeStep(int arg0)voidstartUnaryExpr()voidstartUnionExpr()voidstartXPath()voidvariableReference(java.lang.String uri, java.lang.String localName)
-
-
-
Method Detail
-
getQuery
public SolrPathQuery 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
public void literal(java.lang.String arg0) throws org.jaxen.saxpath.SAXPathException- 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
public void startFunction(java.lang.String arg0, java.lang.String arg1) throws org.jaxen.saxpath.SAXPathException- 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, java.lang.String nameSpace, java.lang.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, java.lang.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(java.lang.String uri, java.lang.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-
-
-