public class SelectorStep extends Object
Modifier and Type | Field and Description |
---|---|
static long |
NO_ELEMENT_INDEX |
Constructor and Description |
---|
SelectorStep(String xpathExpression)
Public constructor.
|
SelectorStep(String xpathExpression,
org.jaxen.expr.Step step)
Public constructor.
|
SelectorStep(String xpathExpression,
org.jaxen.expr.Step step,
org.jaxen.expr.Step attributeStep)
Public constructor.
|
SelectorStep(String xpathExpression,
String targetElementName)
Public constructor.
|
SelectorStep(String xpathExpression,
String targetElementName,
String targetAttributeName)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accessesText()
Does this step require access to the element text content.
|
void |
buildPredicatesEvaluator(Properties namespaces) |
SelectorStep |
clone() |
org.jaxen.expr.Step |
getAttributeStep() |
<T extends XPathExpressionEvaluator> |
getEvaluators(Class<T> evaluatorClass,
List<T> evaluators) |
XPathExpressionEvaluator |
getPredicatesEvaluator() |
QName |
getTargetAttribute() |
QName |
getTargetElement() |
String |
getXPathExpression()
Get the XPath selector expression of which this SelectorStep instance is a part.
|
boolean |
isHashedAttribute()
Is this selector step a hashed attribute selector step.
|
boolean |
isRooted() |
boolean |
isStar() |
boolean |
isStarStar() |
boolean |
isTargetedAtElement(Element element) |
boolean |
isTargetedAtElement(SAXElement element) |
boolean |
isTargetedAtNamespace(String namespace)
Is this StepSelector instance targeted at the specified namespace.
|
void |
setAttributeStep(org.jaxen.expr.Step attributeStep) |
static SelectorStep[] |
setNamespaces(SelectorStep[] steps,
Properties namespaces)
Set the namespaces on the specified set of selector steps.
|
void |
setRooted(boolean rooted) |
String |
toString() |
public static final long NO_ELEMENT_INDEX
public SelectorStep(String xpathExpression)
xpathExpression
- The XPath expression of which the Step
is a
part.public SelectorStep(String xpathExpression, org.jaxen.expr.Step step) throws org.jaxen.saxpath.SAXPathException
xpathExpression
- The XPath expression of which the Step
is a
part.step
- The XPath Step
.org.jaxen.saxpath.SAXPathException
- Error constructing the selector step.public SelectorStep(String xpathExpression, org.jaxen.expr.Step step, org.jaxen.expr.Step attributeStep) throws org.jaxen.saxpath.SAXPathException
xpathExpression
- The XPath expression of which the Step
is a
part.step
- The XPath Step
.attributeStep
- The Attribute Step.org.jaxen.saxpath.SAXPathException
- Error constructing the selector step.public SelectorStep(String xpathExpression, String targetElementName)
xpathExpression
- The XPath expression of which the Step
is a
part.targetElementName
- The target element name associated with this selector step.public SelectorStep(String xpathExpression, String targetElementName, String targetAttributeName)
xpathExpression
- The XPath expression of which the Step
is a
part.targetElementName
- The target element name associated with this selector step.targetAttributeName
- The target attribute name associated with this selector step.public org.jaxen.expr.Step getAttributeStep()
public void setAttributeStep(org.jaxen.expr.Step attributeStep)
public SelectorStep clone()
public String getXPathExpression()
public QName getTargetElement()
public QName getTargetAttribute()
public XPathExpressionEvaluator getPredicatesEvaluator()
public boolean isRooted()
public void setRooted(boolean rooted)
public boolean isStar()
public boolean isStarStar()
public void buildPredicatesEvaluator(Properties namespaces) throws org.jaxen.saxpath.SAXPathException, javassist.NotFoundException, javassist.CannotCompileException, IllegalAccessException, InstantiationException
org.jaxen.saxpath.SAXPathException
javassist.NotFoundException
javassist.CannotCompileException
IllegalAccessException
InstantiationException
public boolean isTargetedAtElement(SAXElement element)
public boolean isTargetedAtElement(Element element)
public boolean isTargetedAtNamespace(String namespace)
namespace
- The namespace to be tested.public boolean accessesText()
public <T extends XPathExpressionEvaluator> void getEvaluators(Class<T> evaluatorClass, List<T> evaluators)
public static SelectorStep[] setNamespaces(SelectorStep[] steps, Properties namespaces) throws org.jaxen.saxpath.SAXPathException
steps
- The selector steps.namespaces
- The set of selector steps to be updated.org.jaxen.saxpath.SAXPathException
- Error setting namespacespublic boolean isHashedAttribute()
Copyright © 2020. All rights reserved.