Class ConformanceXPathHandler

java.lang.Object
org.saxpath.conformance.ConformanceXPathHandler
All Implemented Interfaces:
XPathHandler

public class ConformanceXPathHandler extends Object implements XPathHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Receive notification of the end of an absolute location path expression.
    void
    endAdditiveExpr(int operator)
    Receive notification of the end of an additive ('+' or '-') expression.
    void
    Receive notification of the end of a node() step.
    void
    endAndExpr(boolean create)
    Receive notification of the end of an 'and' expression.
    void
    Receive notification of the end of a comment() step.
    void
    endEqualityExpr(int operator)
    Receive notification of the end of an equality ('=' or '!=') expression.
    void
    Receive notification of the end of a filter expression.
    void
    Receive notification of the end of a function call.
    void
    endMultiplicativeExpr(int operator)
    Receive notification of the start of a multiplicative ('*', 'div' or 'mod') expression.
    void
    Receive notification of the end of a NameStep
    void
    endOrExpr(boolean create)
    Receive notification of the end of an 'or' expression.
    void
    Receive notification of the end of a path expression.
    void
    Receive notification of the end of a predicate.
    void
    Receive notification of the end of a processing-instruction(...) step.
    void
    endRelationalExpr(int operator)
    Receive notification of the start of a relational ('invalid input: '<'', '>', 'invalid input: '<'=', or '>=') expression.
    void
    Receive notification of the end of a relative location path expression.
    void
    Receive notification of the end of a text() step.
    void
    endUnaryExpr(int operator)
    Receive notification of the end of a unary ('+' or '-') expression.
    void
    endUnionExpr(boolean create)
    Receive notification of the end of a union ('|') expression.
    void
    Receive notification of the end of an XPath expression parse.
    boolean
    equals(Object thatObj)
     
    void
    literal(String literal)
    Receive notification of a literal expression.
    void
    number(double number)
    Receive notification of a number expression.
    void
    number(int number)
    Receive notification of a number expression.
    void
    Receive notification of the start of an absolute location path expression.
    void
    Receive notification of the start of an additive ('+' or '-') expression.
    void
    startAllNodeStep(int axis)
    Receive notification of the start of a node() step.
    void
    Receive notification of the start of an 'and' expression.
    void
    Receive notification of the start of a comment() step.
    void
    Receive notification of the start of an equality ('=' or '!=') expression.
    void
    Receive notification of the start of a filter expression.
    void
    startFunction(String prefix, String functionName)
    Receive notification of a function call.
    void
    Receive notification of the start of a multiplicative ('*', 'div' or 'mod') expression.
    void
    startNameStep(int axis, String prefix, String localName)
    Receive notification of the start of a name step.
    void
    Receive notification of the start of an 'or' expression.
    void
    Receive notification of the start of a path expression.
    void
    Receive notification of the start of a predicate.
    void
    Receive notification of the start of a processing-instruction(...) step.
    void
    Receive notification of the start of a relational ('invalid input: '<'', '>', 'invalid input: '<'=', or '>=') expression.
    void
    Receive notification of the start of a relative location path expression.
    void
    Receive notification of the start of a text() step.
    void
    Receive notification of the start of a unary ('+' or '-') expression.
    void
    Receive notification of the start of a union ('|') expression.
    void
    Receive notification of the start of an XPath expression parse.
     
    void
    variableReference(String prefix, String variableName)
    Receive notification of a variable-reference expression.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ConformanceXPathHandler

      public ConformanceXPathHandler()
  • Method Details

    • startXPath

      public void startXPath()
      Description copied from interface: XPathHandler
      Receive notification of the start of an XPath expression parse.
      Specified by:
      startXPath in interface XPathHandler
    • endXPath

      public void endXPath()
      Description copied from interface: XPathHandler
      Receive notification of the end of an XPath expression parse.
      Specified by:
      endXPath in interface XPathHandler
    • startPathExpr

      public void startPathExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of a path expression.
      Specified by:
      startPathExpr in interface XPathHandler
    • endPathExpr

      public void endPathExpr()
      Description copied from interface: XPathHandler
      Receive notification of the end of a path expression.
      Specified by:
      endPathExpr in interface XPathHandler
    • startAbsoluteLocationPath

      public void startAbsoluteLocationPath()
      Description copied from interface: XPathHandler
      Receive notification of the start of an absolute location path expression.
      Specified by:
      startAbsoluteLocationPath in interface XPathHandler
    • endAbsoluteLocationPath

      public void endAbsoluteLocationPath()
      Description copied from interface: XPathHandler
      Receive notification of the end of an absolute location path expression.
      Specified by:
      endAbsoluteLocationPath in interface XPathHandler
    • startRelativeLocationPath

      public void startRelativeLocationPath()
      Description copied from interface: XPathHandler
      Receive notification of the start of a relative location path expression.
      Specified by:
      startRelativeLocationPath in interface XPathHandler
    • endRelativeLocationPath

      public void endRelativeLocationPath()
      Description copied from interface: XPathHandler
      Receive notification of the end of a relative location path expression.
      Specified by:
      endRelativeLocationPath in interface XPathHandler
    • startNameStep

      public void startNameStep(int axis, String prefix, String localName)
      Description copied from interface: XPathHandler
      Receive notification of the start of a name step.
      Specified by:
      startNameStep in interface XPathHandler
      Parameters:
      axis - The axis of this step.
      prefix - The namespace prefix for the name to test, or the empty-string if no prefix is specified.
      localName - The local part of the name to test.
    • endNameStep

      public void endNameStep()
      Description copied from interface: XPathHandler
      Receive notification of the end of a NameStep
      Specified by:
      endNameStep in interface XPathHandler
    • startTextNodeStep

      public void startTextNodeStep(int axis)
      Description copied from interface: XPathHandler
      Receive notification of the start of a text() step.
      Specified by:
      startTextNodeStep in interface XPathHandler
      Parameters:
      axis - The axis of this step.
    • endTextNodeStep

      public void endTextNodeStep()
      Description copied from interface: XPathHandler
      Receive notification of the end of a text() step.
      Specified by:
      endTextNodeStep in interface XPathHandler
    • startCommentNodeStep

      public void startCommentNodeStep(int axis)
      Description copied from interface: XPathHandler
      Receive notification of the start of a comment() step.
      Specified by:
      startCommentNodeStep in interface XPathHandler
      Parameters:
      axis - The axis of this step.
    • endCommentNodeStep

      public void endCommentNodeStep()
      Description copied from interface: XPathHandler
      Receive notification of the end of a comment() step.
      Specified by:
      endCommentNodeStep in interface XPathHandler
    • startAllNodeStep

      public void startAllNodeStep(int axis)
      Description copied from interface: XPathHandler
      Receive notification of the start of a node() step.
      Specified by:
      startAllNodeStep in interface XPathHandler
      Parameters:
      axis - The axis of this step.
    • endAllNodeStep

      public void endAllNodeStep()
      Description copied from interface: XPathHandler
      Receive notification of the end of a node() step.
      Specified by:
      endAllNodeStep in interface XPathHandler
    • startProcessingInstructionNodeStep

      public void startProcessingInstructionNodeStep(int axis, String name)
      Description copied from interface: XPathHandler
      Receive notification of the start of a processing-instruction(...) step.
      Specified by:
      startProcessingInstructionNodeStep in interface XPathHandler
      Parameters:
      axis - The axis of this step.
      name - The name of the processing-instruction, of the empty-string if none is specified.
    • endProcessingInstructionNodeStep

      public void endProcessingInstructionNodeStep()
      Description copied from interface: XPathHandler
      Receive notification of the end of a processing-instruction(...) step.
      Specified by:
      endProcessingInstructionNodeStep in interface XPathHandler
    • startPredicate

      public void startPredicate()
      Description copied from interface: XPathHandler
      Receive notification of the start of a predicate.
      Specified by:
      startPredicate in interface XPathHandler
    • endPredicate

      public void endPredicate()
      Description copied from interface: XPathHandler
      Receive notification of the end of a predicate.
      Specified by:
      endPredicate in interface XPathHandler
    • startFilterExpr

      public void startFilterExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of a filter expression.
      Specified by:
      startFilterExpr in interface XPathHandler
    • endFilterExpr

      public void endFilterExpr()
      Description copied from interface: XPathHandler
      Receive notification of the end of a filter expression.
      Specified by:
      endFilterExpr in interface XPathHandler
    • startOrExpr

      public void startOrExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of an 'or' expression.
      Specified by:
      startOrExpr in interface XPathHandler
    • endOrExpr

      public void endOrExpr(boolean create)
      Description copied from interface: XPathHandler
      Receive notification of the end of an 'or' expression.
      Specified by:
      endOrExpr in interface XPathHandler
      Parameters:
      create - Flag that indicates if this expression should truly be instantiated, or if it was just a pass-through, based upon the grammar productions.
    • startAndExpr

      public void startAndExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of an 'and' expression.
      Specified by:
      startAndExpr in interface XPathHandler
    • endAndExpr

      public void endAndExpr(boolean create)
      Description copied from interface: XPathHandler
      Receive notification of the end of an 'and' expression.
      Specified by:
      endAndExpr in interface XPathHandler
      Parameters:
      create - Flag that indicates if this expression should truly be instantiated, or if it was just a pass-through, based upon the grammar productions.
    • startEqualityExpr

      public void startEqualityExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of an equality ('=' or '!=') expression.
      Specified by:
      startEqualityExpr in interface XPathHandler
    • endEqualityExpr

      public void endEqualityExpr(int operator)
      Description copied from interface: XPathHandler
      Receive notification of the end of an equality ('=' or '!=') expression.
      Specified by:
      endEqualityExpr in interface XPathHandler
    • startRelationalExpr

      public void startRelationalExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of a relational ('invalid input: '<'', '>', 'invalid input: '<'=', or '>=') expression.
      Specified by:
      startRelationalExpr in interface XPathHandler
    • endRelationalExpr

      public void endRelationalExpr(int operator)
      Description copied from interface: XPathHandler
      Receive notification of the start of a relational ('invalid input: '<'', '>', 'invalid input: '<'=', or '>=') expression.
      Specified by:
      endRelationalExpr in interface XPathHandler
    • startAdditiveExpr

      public void startAdditiveExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of an additive ('+' or '-') expression.
      Specified by:
      startAdditiveExpr in interface XPathHandler
    • endAdditiveExpr

      public void endAdditiveExpr(int operator)
      Description copied from interface: XPathHandler
      Receive notification of the end of an additive ('+' or '-') expression.
      Specified by:
      endAdditiveExpr in interface XPathHandler
    • startMultiplicativeExpr

      public void startMultiplicativeExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of a multiplicative ('*', 'div' or 'mod') expression.
      Specified by:
      startMultiplicativeExpr in interface XPathHandler
    • endMultiplicativeExpr

      public void endMultiplicativeExpr(int operator)
      Description copied from interface: XPathHandler
      Receive notification of the start of a multiplicative ('*', 'div' or 'mod') expression.
      Specified by:
      endMultiplicativeExpr in interface XPathHandler
    • startUnaryExpr

      public void startUnaryExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of a unary ('+' or '-') expression.
      Specified by:
      startUnaryExpr in interface XPathHandler
    • endUnaryExpr

      public void endUnaryExpr(int operator)
      Description copied from interface: XPathHandler
      Receive notification of the end of a unary ('+' or '-') expression.
      Specified by:
      endUnaryExpr in interface XPathHandler
    • startUnionExpr

      public void startUnionExpr()
      Description copied from interface: XPathHandler
      Receive notification of the start of a union ('|') expression.
      Specified by:
      startUnionExpr in interface XPathHandler
    • endUnionExpr

      public void endUnionExpr(boolean create)
      Description copied from interface: XPathHandler
      Receive notification of the end of a union ('|') expression.
      Specified by:
      endUnionExpr in interface XPathHandler
      Parameters:
      create - Flag that indicates if this expression should truly be instantiated, or if it was just a pass-through, based upon the grammar productions.
    • number

      public void number(int number)
      Description copied from interface: XPathHandler
      Receive notification of a number expression.
      Specified by:
      number in interface XPathHandler
      Parameters:
      number - The number value.
    • number

      public void number(double number)
      Description copied from interface: XPathHandler
      Receive notification of a number expression.
      Specified by:
      number in interface XPathHandler
      Parameters:
      number - The number value.
    • literal

      public void literal(String literal)
      Description copied from interface: XPathHandler
      Receive notification of a literal expression.
      Specified by:
      literal in interface XPathHandler
      Parameters:
      literal - The string literal value.
    • variableReference

      public void variableReference(String prefix, String variableName)
      Description copied from interface: XPathHandler
      Receive notification of a variable-reference expression.
      Specified by:
      variableReference in interface XPathHandler
      Parameters:
      prefix - The ns-uri prefix of the variable.
      variableName - The name of the variable.
    • startFunction

      public void startFunction(String prefix, String functionName)
      Description copied from interface: XPathHandler
      Receive notification of a function call.
      Specified by:
      startFunction in interface XPathHandler
      Parameters:
      prefix - The ns-uri prefix of the function.
      functionName - The name of the function.
    • endFunction

      public void endFunction()
      Description copied from interface: XPathHandler
      Receive notification of the end of a function call.
      Specified by:
      endFunction in interface XPathHandler
    • equals

      public boolean equals(Object thatObj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object