org.alfresco.repo.search.impl.lucene
Class LuceneXPathHandler

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.LuceneXPathHandler
All Implemented Interfaces:
org.saxpath.XPathHandler

public class LuceneXPathHandler
extends java.lang.Object
implements org.saxpath.XPathHandler

XPATH handler for lucene - currently only does basic paths


Constructor Summary
LuceneXPathHandler()
           
 
Method Summary
 void endAbsoluteLocationPath()
           
 void endAdditiveExpr(int op)
           
 void endAllNodeStep()
           
 void endAndExpr(boolean create)
           
 void endCommentNodeStep()
           
 void endEqualityExpr(int op)
           
 void endFilterExpr()
           
 void endFunction()
           
 void endMultiplicativeExpr(int op)
           
 void endNameStep()
           
 void endOrExpr(boolean create)
           
 void endPathExpr()
           
 void endPredicate()
           
 void endProcessingInstructionNodeStep()
           
 void endRelationalExpr(int op)
           
 void endRelativeLocationPath()
           
 void endTextNodeStep()
           
 void endUnaryExpr(int op)
           
 void endUnionExpr(boolean create)
           
 void endXPath()
           
 PathQuery getQuery()
          Get the resulting query
 void literal(java.lang.String arg0)
           
 void number(double arg0)
           
 void number(int arg0)
           
 void setDictionaryService(DictionaryService dictionaryService)
          Set the dictionary service.
 void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
          Set the service to resolve name space prefixes
 void startAbsoluteLocationPath()
           
 void startAdditiveExpr()
           
 void startAllNodeStep(int axis)
           
 void startAndExpr()
           
 void startCommentNodeStep(int arg0)
           
 void startEqualityExpr()
           
 void startFilterExpr()
           
 void startFunction(java.lang.String arg0, java.lang.String arg1)
           
 void startMultiplicativeExpr()
           
 void startNameStep(int axis, java.lang.String nameSpace, java.lang.String localName)
           
 void startOrExpr()
           
 void startPathExpr()
           
 void startPredicate()
           
 void startProcessingInstructionNodeStep(int arg0, java.lang.String arg1)
           
 void startRelationalExpr()
           
 void startRelativeLocationPath()
           
 void startTextNodeStep(int arg0)
           
 void startUnaryExpr()
           
 void startUnionExpr()
           
 void startXPath()
           
 void variableReference(java.lang.String uri, java.lang.String localName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneXPathHandler

public LuceneXPathHandler()
Method Detail

getQuery

public PathQuery getQuery()
Get the resulting query

Returns:
- the query

endAbsoluteLocationPath

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

endAdditiveExpr

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

endAllNodeStep

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

endAndExpr

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

endCommentNodeStep

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

endEqualityExpr

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

endFilterExpr

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

endFunction

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

endMultiplicativeExpr

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

endNameStep

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

endOrExpr

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

endPathExpr

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

endPredicate

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

endProcessingInstructionNodeStep

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

endRelationalExpr

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

endRelativeLocationPath

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

endTextNodeStep

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

endUnaryExpr

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

endUnionExpr

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

endXPath

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

literal

public void literal(java.lang.String arg0)
             throws org.saxpath.SAXPathException
Specified by:
literal in interface org.saxpath.XPathHandler
Throws:
org.saxpath.SAXPathException

number

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

number

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

startAbsoluteLocationPath

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

startAdditiveExpr

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

startAllNodeStep

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

startAndExpr

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

startCommentNodeStep

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

startEqualityExpr

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

startFilterExpr

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

startFunction

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

startMultiplicativeExpr

public void startMultiplicativeExpr()
                             throws org.saxpath.SAXPathException
Specified by:
startMultiplicativeExpr in interface org.saxpath.XPathHandler
Throws:
org.saxpath.SAXPathException

startNameStep

public void startNameStep(int axis,
                          java.lang.String nameSpace,
                          java.lang.String localName)
                   throws org.saxpath.SAXPathException
Specified by:
startNameStep in interface org.saxpath.XPathHandler
Throws:
org.saxpath.SAXPathException

startOrExpr

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

startPathExpr

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

startPredicate

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

startProcessingInstructionNodeStep

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

startRelationalExpr

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

startRelativeLocationPath

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

startTextNodeStep

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

startUnaryExpr

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

startUnionExpr

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

startXPath

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

variableReference

public void variableReference(java.lang.String uri,
                              java.lang.String localName)
                       throws org.saxpath.SAXPathException
Specified by:
variableReference in interface org.saxpath.XPathHandler
Throws:
org.saxpath.SAXPathException

setNamespacePrefixResolver

public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
Set the service to resolve name space prefixes

Parameters:
namespacePrefixResolver -

setDictionaryService

public void setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service.

Parameters:
dictionaryService -


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.