Class SolrXPathHandler

java.lang.Object
org.alfresco.solr.query.SolrXPathHandler
All Implemented Interfaces:
org.jaxen.saxpath.XPathHandler

public class SolrXPathHandler extends Object implements org.jaxen.saxpath.XPathHandler
XPATH handler for lucene - currently only does basic paths
Author:
andyh
  • Constructor Details

    • SolrXPathHandler

      public SolrXPathHandler()
  • Method Details

    • getQuery

      public SolrPathQuery getQuery()
      Get the resulting query
      Returns:
      - the query
    • endAbsoluteLocationPath

      public void endAbsoluteLocationPath() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endAbsoluteLocationPath in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endAdditiveExpr

      public void endAdditiveExpr(int op) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endAdditiveExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endAllNodeStep

      public void endAllNodeStep() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endAllNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endAndExpr

      public void endAndExpr(boolean create) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endAndExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endCommentNodeStep

      public void endCommentNodeStep() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endCommentNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endEqualityExpr

      public void endEqualityExpr(int op) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endEqualityExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endFilterExpr

      public void endFilterExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endFilterExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endFunction

      public void endFunction() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endFunction in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endMultiplicativeExpr

      public void endMultiplicativeExpr(int op) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endMultiplicativeExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endNameStep

      public void endNameStep() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endNameStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endOrExpr

      public void endOrExpr(boolean create) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endOrExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endPathExpr

      public void endPathExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endPathExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endPredicate

      public void endPredicate() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endPredicate in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endProcessingInstructionNodeStep

      public void endProcessingInstructionNodeStep() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endProcessingInstructionNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endRelationalExpr

      public void endRelationalExpr(int op) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endRelationalExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endRelativeLocationPath

      public void endRelativeLocationPath() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endRelativeLocationPath in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endTextNodeStep

      public void endTextNodeStep() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endTextNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endUnaryExpr

      public void endUnaryExpr(int op) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endUnaryExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endUnionExpr

      public void endUnionExpr(boolean create) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endUnionExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • endXPath

      public void endXPath() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      endXPath in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • literal

      public void literal(String arg0) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      literal in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • number

      public void number(double arg0) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      number in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • number

      public void number(int arg0) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      number in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startAbsoluteLocationPath

      public void startAbsoluteLocationPath() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startAbsoluteLocationPath in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startAdditiveExpr

      public void startAdditiveExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startAdditiveExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startAllNodeStep

      public void startAllNodeStep(int axis) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startAllNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startAndExpr

      public void startAndExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startAndExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startCommentNodeStep

      public void startCommentNodeStep(int arg0) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startCommentNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startEqualityExpr

      public void startEqualityExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startEqualityExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startFilterExpr

      public void startFilterExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startFilterExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startFunction

      public void startFunction(String arg0, String arg1) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startFunction in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startMultiplicativeExpr

      public void startMultiplicativeExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startMultiplicativeExpr in interface org.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:
      startNameStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startOrExpr

      public void startOrExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startOrExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startPathExpr

      public void startPathExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startPathExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startPredicate

      public void startPredicate() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startPredicate in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startProcessingInstructionNodeStep

      public void startProcessingInstructionNodeStep(int arg0, String arg1) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startProcessingInstructionNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startRelationalExpr

      public void startRelationalExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startRelationalExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startRelativeLocationPath

      public void startRelativeLocationPath() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startRelativeLocationPath in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startTextNodeStep

      public void startTextNodeStep(int arg0) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startTextNodeStep in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startUnaryExpr

      public void startUnaryExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startUnaryExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startUnionExpr

      public void startUnionExpr() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startUnionExpr in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • startXPath

      public void startXPath() throws org.jaxen.saxpath.SAXPathException
      Specified by:
      startXPath in interface org.jaxen.saxpath.XPathHandler
      Throws:
      org.jaxen.saxpath.SAXPathException
    • variableReference

      public void variableReference(String uri, String localName) throws org.jaxen.saxpath.SAXPathException
      Specified by:
      variableReference in interface org.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 -