public class DefaultXPathHandler extends java.lang.Object implements XPathHandler
XPathHandler.
Application writers can extend this class when they need to
implement only part of the XPathHandler
interface. Parser writers can instantiate
this class to provide default handlers when the application has not
supplied its own.| Constructor and Description |
|---|
DefaultXPathHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
endAbsoluteLocationPath()
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 |
endAllNodeStep()
Receive notification of the end of a node() step.
|
void |
endAndExpr(boolean create)
Receive notification of the end of an 'and' expression.
|
void |
endCommentNodeStep()
Receive notification of the end of a comment() step.
|
void |
endEqualityExpr(int operator)
Receive notification of the end of an equality ('=' or '!=') expression.
|
void |
endFilterExpr()
Receive notification of the end of a filter expression.
|
void |
endFunction()
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 |
endNameStep()
Receive notification of the end of a NameStep
|
void |
endOrExpr(boolean create)
Receive notification of the end of an 'or' expression.
|
void |
endPathExpr()
Receive notification of the end of a path expression.
|
void |
endPredicate()
Receive notification of the end of a predicate.
|
void |
endProcessingInstructionNodeStep()
Receive notification of the end of a processing-instruction(...) step.
|
void |
endRelationalExpr(int operator)
Receive notification of the start of a relational ('<', '>', '<=', or '>=') expression.
|
void |
endRelativeLocationPath()
Receive notification of the end of a relative location path expression.
|
void |
endTextNodeStep()
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 |
endXPath()
Receive notification of the end of an XPath expression parse.
|
void |
literal(java.lang.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 |
startAbsoluteLocationPath()
Receive notification of the start of an absolute location path expression.
|
void |
startAdditiveExpr()
Receive notification of the start of an additive ('+' or '-') expression.
|
void |
startAllNodeStep(int axis)
Receive notification of the start of a node() step.
|
void |
startAndExpr()
Receive notification of the start of an 'and' expression.
|
void |
startCommentNodeStep(int axis)
Receive notification of the start of a comment() step.
|
void |
startEqualityExpr()
Receive notification of the start of an equality ('=' or '!=') expression.
|
void |
startFilterExpr()
Receive notification of the start of a filter expression.
|
void |
startFunction(java.lang.String prefix,
java.lang.String functionName)
Receive notification of a function call.
|
void |
startMultiplicativeExpr()
Receive notification of the start of a multiplicative ('*', 'div' or 'mod') expression.
|
void |
startNameStep(int axis,
java.lang.String prefix,
java.lang.String localName)
Receive notification of the start of a name step.
|
void |
startOrExpr()
Receive notification of the start of an 'or' expression.
|
void |
startPathExpr()
Receive notification of the start of a path expression.
|
void |
startPredicate()
Receive notification of the start of a predicate.
|
void |
startProcessingInstructionNodeStep(int axis,
java.lang.String name)
Receive notification of the start of a processing-instruction(...) step.
|
void |
startRelationalExpr()
Receive notification of the start of a relational ('<', '>', '<=', or '>=') expression.
|
void |
startRelativeLocationPath()
Receive notification of the start of a relative location path expression.
|
void |
startTextNodeStep(int axis)
Receive notification of the start of a text() step.
|
void |
startUnaryExpr()
Receive notification of the start of a unary ('+' or '-') expression.
|
void |
startUnionExpr()
Receive notification of the start of a union ('|') expression.
|
void |
startXPath()
Receive notification of the start of an XPath expression parse.
|
void |
variableReference(java.lang.String prefix,
java.lang.String variableName)
Receive notification of a variable-reference expression.
|
public void startXPath()
throws SAXPathException
XPathHandlerstartXPath in interface XPathHandlerSAXPathExceptionpublic void endXPath()
throws SAXPathException
XPathHandlerendXPath in interface XPathHandlerSAXPathExceptionpublic void startPathExpr()
throws SAXPathException
XPathHandlerstartPathExpr in interface XPathHandlerSAXPathExceptionpublic void endPathExpr()
throws SAXPathException
XPathHandlerendPathExpr in interface XPathHandlerSAXPathExceptionpublic void startAbsoluteLocationPath()
throws SAXPathException
XPathHandlerstartAbsoluteLocationPath in interface XPathHandlerSAXPathExceptionpublic void endAbsoluteLocationPath()
throws SAXPathException
XPathHandlerendAbsoluteLocationPath in interface XPathHandlerSAXPathExceptionpublic void startRelativeLocationPath()
throws SAXPathException
XPathHandlerstartRelativeLocationPath in interface XPathHandlerSAXPathExceptionpublic void endRelativeLocationPath()
throws SAXPathException
XPathHandlerendRelativeLocationPath in interface XPathHandlerSAXPathExceptionpublic void startNameStep(int axis,
java.lang.String prefix,
java.lang.String localName)
throws SAXPathException
XPathHandlerstartNameStep in interface XPathHandleraxis - the axis of this stepprefix - the namespace prefix for the name to test,
or the empty string if no prefix is specifiedlocalName - the local part of the name to testSAXPathExceptionpublic void endNameStep()
throws SAXPathException
XPathHandlerendNameStep in interface XPathHandlerSAXPathExceptionpublic void startTextNodeStep(int axis)
throws SAXPathException
XPathHandlerstartTextNodeStep in interface XPathHandleraxis - the axis of this stepSAXPathExceptionpublic void endTextNodeStep()
throws SAXPathException
XPathHandlerendTextNodeStep in interface XPathHandlerSAXPathExceptionpublic void startCommentNodeStep(int axis)
throws SAXPathException
XPathHandlerstartCommentNodeStep in interface XPathHandleraxis - the axis of this stepSAXPathExceptionpublic void endCommentNodeStep()
throws SAXPathException
XPathHandlerendCommentNodeStep in interface XPathHandlerSAXPathExceptionpublic void startAllNodeStep(int axis)
throws SAXPathException
XPathHandlerstartAllNodeStep in interface XPathHandleraxis - the axis of this stepSAXPathExceptionpublic void endAllNodeStep()
throws SAXPathException
XPathHandlerendAllNodeStep in interface XPathHandlerSAXPathExceptionpublic void startProcessingInstructionNodeStep(int axis,
java.lang.String name)
throws SAXPathException
XPathHandlerstartProcessingInstructionNodeStep in interface XPathHandleraxis - the axis of this stepname - the name of the processing-instruction, or
the empty string if none is specifiedSAXPathExceptionpublic void endProcessingInstructionNodeStep()
throws SAXPathException
XPathHandlerendProcessingInstructionNodeStep in interface XPathHandlerSAXPathExceptionpublic void startPredicate()
throws SAXPathException
XPathHandlerstartPredicate in interface XPathHandlerSAXPathExceptionpublic void endPredicate()
throws SAXPathException
XPathHandlerendPredicate in interface XPathHandlerSAXPathExceptionpublic void startFilterExpr()
throws SAXPathException
XPathHandlerstartFilterExpr in interface XPathHandlerSAXPathExceptionpublic void endFilterExpr()
throws SAXPathException
XPathHandlerendFilterExpr in interface XPathHandlerSAXPathExceptionpublic void startOrExpr()
throws SAXPathException
XPathHandlerstartOrExpr in interface XPathHandlerSAXPathExceptionpublic void endOrExpr(boolean create)
throws SAXPathException
XPathHandlerendOrExpr in interface XPathHandlercreate - flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productionsSAXPathExceptionpublic void startAndExpr()
throws SAXPathException
XPathHandlerstartAndExpr in interface XPathHandlerSAXPathExceptionpublic void endAndExpr(boolean create)
throws SAXPathException
XPathHandlerendAndExpr in interface XPathHandlercreate - flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productionsSAXPathExceptionpublic void startEqualityExpr()
throws SAXPathException
XPathHandlerstartEqualityExpr in interface XPathHandlerSAXPathExceptionpublic void endEqualityExpr(int operator)
throws SAXPathException
XPathHandlerendEqualityExpr in interface XPathHandleroperator - the operator specific to this particular
equality expression. If null, this expression
is only a pass-through, and should not actually
be instantiated.SAXPathExceptionpublic void startRelationalExpr()
throws SAXPathException
XPathHandlerstartRelationalExpr in interface XPathHandlerSAXPathExceptionpublic void endRelationalExpr(int operator)
throws SAXPathException
XPathHandlerendRelationalExpr in interface XPathHandleroperator - the operator specific to this particular
relational expression. If NO_OP, this expression
is only a pass-through, and should not actually
be instantiated.SAXPathExceptionpublic void startAdditiveExpr()
throws SAXPathException
XPathHandlerstartAdditiveExpr in interface XPathHandlerSAXPathExceptionpublic void endAdditiveExpr(int operator)
throws SAXPathException
XPathHandlerendAdditiveExpr in interface XPathHandleroperator - the operator specific to this particular
additive expression. If NO_OP, this expression
is only a pass-through, and should not actually
be instantiated.SAXPathExceptionpublic void startMultiplicativeExpr()
throws SAXPathException
XPathHandlerstartMultiplicativeExpr in interface XPathHandlerSAXPathExceptionpublic void endMultiplicativeExpr(int operator)
throws SAXPathException
XPathHandlerendMultiplicativeExpr in interface XPathHandleroperator - the operator specific to this particular
multiplicative expression. If null, this expression
is only a pass-through, and should not actually
be instantiated.SAXPathExceptionpublic void startUnaryExpr()
throws SAXPathException
XPathHandlerstartUnaryExpr in interface XPathHandlerSAXPathExceptionpublic void endUnaryExpr(int operator)
throws SAXPathException
XPathHandlerendUnaryExpr in interface XPathHandleroperator - the operator specific to this particular
unary expression. If NO_OP, this expression is only
a pass-through, and should not actually be instantiated.
If not Operator.NO_OP, it will
always be Operator.NEGATIVE.SAXPathExceptionpublic void startUnionExpr()
throws SAXPathException
XPathHandlerstartUnionExpr in interface XPathHandlerSAXPathExceptionpublic void endUnionExpr(boolean create)
throws SAXPathException
XPathHandlerendUnionExpr in interface XPathHandlercreate - flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productionsSAXPathExceptionpublic void number(int number)
throws SAXPathException
XPathHandlernumber in interface XPathHandlernumber - the number valueSAXPathExceptionpublic void number(double number)
throws SAXPathException
XPathHandlernumber in interface XPathHandlernumber - the number valueSAXPathExceptionpublic void literal(java.lang.String literal)
throws SAXPathException
XPathHandlerliteral in interface XPathHandlerliteral - the string literal valueSAXPathExceptionpublic void variableReference(java.lang.String prefix,
java.lang.String variableName)
throws SAXPathException
XPathHandlervariableReference in interface XPathHandlerprefix - the namespace prefix of the variablevariableName - the local name of the variableSAXPathExceptionpublic void startFunction(java.lang.String prefix,
java.lang.String functionName)
throws SAXPathException
XPathHandlerstartFunction in interface XPathHandlerprefix - the namespace prefix of the functionfunctionName - the local name of the functionSAXPathExceptionpublic void endFunction()
throws SAXPathException
XPathHandlerendFunction in interface XPathHandlerSAXPathException