Class SelectorPathJaxenHandler
- java.lang.Object
-
- org.jaxen.JaxenHandler
-
- org.smooks.engine.resource.config.xpath.SelectorPathJaxenHandler
-
- All Implemented Interfaces:
org.jaxen.saxpath.XPathHandler
public class SelectorPathJaxenHandler extends org.jaxen.JaxenHandler
-
-
Constructor Summary
Constructors Constructor Description SelectorPathJaxenHandler(String selector, Properties namespaces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addParameters(org.jaxen.expr.FunctionCallExpr function, Iterator paramIter)
protected void
addPredicates(org.jaxen.expr.Predicated obj, Iterator predIter)
protected void
addSteps(org.jaxen.expr.LocationPath locationPath, Iterator stepIter)
protected boolean
canPop()
void
endAbsoluteLocationPath()
void
endAdditiveExpr(int operator)
void
endAllNodeStep()
void
endAndExpr(boolean create)
void
endCommentNodeStep()
void
endEqualityExpr(int operator)
void
endFilterExpr()
void
endFunction()
protected void
endLocationPath()
void
endMultiplicativeExpr(int operator)
void
endNameStep()
void
endOrExpr(boolean create)
void
endPathExpr()
void
endPredicate()
void
endProcessingInstructionNodeStep()
void
endRelationalExpr(int operator)
void
endRelativeLocationPath()
protected void
endStep()
void
endTextNodeStep()
void
endUnaryExpr(int operator)
void
endUnionExpr(boolean create)
void
endXPath()
String
getSelector()
SelectorPath
getSelectorPath()
org.jaxen.expr.XPathExpr
getXPathExpr()
org.jaxen.expr.XPathExpr
getXPathExpr(boolean shouldSimplify)
org.jaxen.expr.XPathFactory
getXPathFactory()
void
literal(String literal)
void
number(double number)
void
number(int number)
protected LinkedList
peekFrame()
protected Object
pop()
protected LinkedList
popFrame()
protected void
push(Object obj)
protected void
pushFrame()
protected void
returnExpr()
void
setXPathFactory(org.jaxen.expr.XPathFactory xpathFactory)
protected int
stackSize()
void
startAbsoluteLocationPath()
void
startAdditiveExpr()
void
startAllNodeStep(int axis)
void
startAndExpr()
void
startCommentNodeStep(int axis)
void
startEqualityExpr()
void
startFilterExpr()
void
startFunction(String prefix, String functionName)
void
startMultiplicativeExpr()
void
startNameStep(int axis, String prefix, String localName)
void
startOrExpr()
void
startPathExpr()
void
startPredicate()
void
startProcessingInstructionNodeStep(int axis, String name)
void
startRelationalExpr()
void
startRelativeLocationPath()
void
startTextNodeStep(int axis)
void
startUnaryExpr()
void
startUnionExpr()
void
startXPath()
void
variableReference(String prefix, String variableName)
-
-
-
Constructor Detail
-
SelectorPathJaxenHandler
public SelectorPathJaxenHandler(String selector, Properties namespaces)
-
-
Method Detail
-
setXPathFactory
public void setXPathFactory(org.jaxen.expr.XPathFactory xpathFactory)
- Overrides:
setXPathFactory
in classorg.jaxen.JaxenHandler
-
getXPathFactory
public org.jaxen.expr.XPathFactory getXPathFactory()
- Overrides:
getXPathFactory
in classorg.jaxen.JaxenHandler
-
getXPathExpr
public org.jaxen.expr.XPathExpr getXPathExpr()
- Overrides:
getXPathExpr
in classorg.jaxen.JaxenHandler
-
getXPathExpr
public org.jaxen.expr.XPathExpr getXPathExpr(boolean shouldSimplify)
- Overrides:
getXPathExpr
in classorg.jaxen.JaxenHandler
-
startXPath
public void startXPath()
- Specified by:
startXPath
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startXPath
in classorg.jaxen.JaxenHandler
-
endXPath
public void endXPath() throws org.jaxen.JaxenException
- Specified by:
endXPath
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endXPath
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startPathExpr
public void startPathExpr()
- Specified by:
startPathExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startPathExpr
in classorg.jaxen.JaxenHandler
-
endPathExpr
public void endPathExpr() throws org.jaxen.JaxenException
- Specified by:
endPathExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endPathExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startAbsoluteLocationPath
public void startAbsoluteLocationPath() throws org.jaxen.JaxenException
- Specified by:
startAbsoluteLocationPath
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startAbsoluteLocationPath
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endAbsoluteLocationPath
public void endAbsoluteLocationPath() throws org.jaxen.JaxenException
- Specified by:
endAbsoluteLocationPath
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endAbsoluteLocationPath
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startRelativeLocationPath
public void startRelativeLocationPath() throws org.jaxen.JaxenException
- Specified by:
startRelativeLocationPath
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startRelativeLocationPath
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endRelativeLocationPath
public void endRelativeLocationPath() throws org.jaxen.JaxenException
- Specified by:
endRelativeLocationPath
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endRelativeLocationPath
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endLocationPath
protected void endLocationPath() throws org.jaxen.JaxenException
- Overrides:
endLocationPath
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
addSteps
protected void addSteps(org.jaxen.expr.LocationPath locationPath, Iterator stepIter)
- Overrides:
addSteps
in classorg.jaxen.JaxenHandler
-
startNameStep
public void startNameStep(int axis, String prefix, String localName) throws org.jaxen.JaxenException
- Specified by:
startNameStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startNameStep
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endNameStep
public void endNameStep()
- Specified by:
endNameStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endNameStep
in classorg.jaxen.JaxenHandler
-
startTextNodeStep
public void startTextNodeStep(int axis) throws org.jaxen.JaxenException
- Specified by:
startTextNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startTextNodeStep
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endTextNodeStep
public void endTextNodeStep()
- Specified by:
endTextNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endTextNodeStep
in classorg.jaxen.JaxenHandler
-
startCommentNodeStep
public void startCommentNodeStep(int axis) throws org.jaxen.JaxenException
- Specified by:
startCommentNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startCommentNodeStep
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endCommentNodeStep
public void endCommentNodeStep()
- Specified by:
endCommentNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endCommentNodeStep
in classorg.jaxen.JaxenHandler
-
startAllNodeStep
public void startAllNodeStep(int axis) throws org.jaxen.JaxenException
- Specified by:
startAllNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startAllNodeStep
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endAllNodeStep
public void endAllNodeStep()
- Specified by:
endAllNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endAllNodeStep
in classorg.jaxen.JaxenHandler
-
startProcessingInstructionNodeStep
public void startProcessingInstructionNodeStep(int axis, String name) throws org.jaxen.JaxenException
- Specified by:
startProcessingInstructionNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startProcessingInstructionNodeStep
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endProcessingInstructionNodeStep
public void endProcessingInstructionNodeStep()
- Specified by:
endProcessingInstructionNodeStep
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endProcessingInstructionNodeStep
in classorg.jaxen.JaxenHandler
-
endStep
protected void endStep()
- Overrides:
endStep
in classorg.jaxen.JaxenHandler
-
startPredicate
public void startPredicate()
- Specified by:
startPredicate
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startPredicate
in classorg.jaxen.JaxenHandler
-
endPredicate
public void endPredicate() throws org.jaxen.JaxenException
- Specified by:
endPredicate
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endPredicate
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startFilterExpr
public void startFilterExpr()
- Specified by:
startFilterExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startFilterExpr
in classorg.jaxen.JaxenHandler
-
endFilterExpr
public void endFilterExpr() throws org.jaxen.JaxenException
- Specified by:
endFilterExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endFilterExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
addPredicates
protected void addPredicates(org.jaxen.expr.Predicated obj, Iterator predIter)
- Overrides:
addPredicates
in classorg.jaxen.JaxenHandler
-
returnExpr
protected void returnExpr()
- Overrides:
returnExpr
in classorg.jaxen.JaxenHandler
-
startOrExpr
public void startOrExpr()
- Specified by:
startOrExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startOrExpr
in classorg.jaxen.JaxenHandler
-
endOrExpr
public void endOrExpr(boolean create) throws org.jaxen.JaxenException
- Specified by:
endOrExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endOrExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startAndExpr
public void startAndExpr()
- Specified by:
startAndExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startAndExpr
in classorg.jaxen.JaxenHandler
-
endAndExpr
public void endAndExpr(boolean create) throws org.jaxen.JaxenException
- Specified by:
endAndExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endAndExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startEqualityExpr
public void startEqualityExpr()
- Specified by:
startEqualityExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startEqualityExpr
in classorg.jaxen.JaxenHandler
-
endEqualityExpr
public void endEqualityExpr(int operator) throws org.jaxen.JaxenException
- Specified by:
endEqualityExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endEqualityExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startRelationalExpr
public void startRelationalExpr()
- Specified by:
startRelationalExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startRelationalExpr
in classorg.jaxen.JaxenHandler
-
endRelationalExpr
public void endRelationalExpr(int operator) throws org.jaxen.JaxenException
- Specified by:
endRelationalExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endRelationalExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startAdditiveExpr
public void startAdditiveExpr()
- Specified by:
startAdditiveExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startAdditiveExpr
in classorg.jaxen.JaxenHandler
-
endAdditiveExpr
public void endAdditiveExpr(int operator) throws org.jaxen.JaxenException
- Specified by:
endAdditiveExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endAdditiveExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startMultiplicativeExpr
public void startMultiplicativeExpr()
- Specified by:
startMultiplicativeExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startMultiplicativeExpr
in classorg.jaxen.JaxenHandler
-
endMultiplicativeExpr
public void endMultiplicativeExpr(int operator) throws org.jaxen.JaxenException
- Specified by:
endMultiplicativeExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endMultiplicativeExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startUnaryExpr
public void startUnaryExpr()
- Specified by:
startUnaryExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startUnaryExpr
in classorg.jaxen.JaxenHandler
-
endUnaryExpr
public void endUnaryExpr(int operator) throws org.jaxen.JaxenException
- Specified by:
endUnaryExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endUnaryExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startUnionExpr
public void startUnionExpr()
- Specified by:
startUnionExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startUnionExpr
in classorg.jaxen.JaxenHandler
-
endUnionExpr
public void endUnionExpr(boolean create) throws org.jaxen.JaxenException
- Specified by:
endUnionExpr
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endUnionExpr
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
number
public void number(int number) throws org.jaxen.JaxenException
- Specified by:
number
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
number
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
number
public void number(double number) throws org.jaxen.JaxenException
- Specified by:
number
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
number
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
literal
public void literal(String literal) throws org.jaxen.JaxenException
- Specified by:
literal
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
literal
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
variableReference
public void variableReference(String prefix, String variableName) throws org.jaxen.JaxenException
- Specified by:
variableReference
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
variableReference
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
startFunction
public void startFunction(String prefix, String functionName) throws org.jaxen.JaxenException
- Specified by:
startFunction
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
startFunction
in classorg.jaxen.JaxenHandler
- Throws:
org.jaxen.JaxenException
-
endFunction
public void endFunction()
- Specified by:
endFunction
in interfaceorg.jaxen.saxpath.XPathHandler
- Overrides:
endFunction
in classorg.jaxen.JaxenHandler
-
addParameters
protected void addParameters(org.jaxen.expr.FunctionCallExpr function, Iterator paramIter)
- Overrides:
addParameters
in classorg.jaxen.JaxenHandler
-
stackSize
protected int stackSize()
- Overrides:
stackSize
in classorg.jaxen.JaxenHandler
-
push
protected void push(Object obj)
- Overrides:
push
in classorg.jaxen.JaxenHandler
-
pop
protected Object pop()
- Overrides:
pop
in classorg.jaxen.JaxenHandler
-
canPop
protected boolean canPop()
- Overrides:
canPop
in classorg.jaxen.JaxenHandler
-
pushFrame
protected void pushFrame()
- Overrides:
pushFrame
in classorg.jaxen.JaxenHandler
-
popFrame
protected LinkedList popFrame()
- Overrides:
popFrame
in classorg.jaxen.JaxenHandler
-
peekFrame
protected LinkedList peekFrame()
- Overrides:
peekFrame
in classorg.jaxen.JaxenHandler
-
getSelectorPath
public SelectorPath getSelectorPath()
-
getSelector
public String getSelector()
-
-