public class SelectorStepBuilder extends Object
SelectorStep
Builder class.Constructor and Description |
---|
SelectorStepBuilder() |
Modifier and Type | Method and Description |
---|---|
static SelectorStep[] |
buildSteps(String selectorExpression)
Construct a set of selector steps from the specified selector (ala XPath expresssion steps).
|
static SelectorStep[] |
buildSteps(String selectorExpression,
Properties namespaces)
Construct a set of selector steps from the specified selector (ala XPath expresssion steps).
|
static String |
extractTargetAttribute(SelectorStep[] selectorSteps) |
static String |
extractTargetElement(SelectorStep[] selectorSteps) |
static String[] |
toContextualSelector(SelectorStep[] selectorSteps) |
static String |
toString(SelectorStep[] steps)
Create a print friendly representation of the set of selector steps.
|
public static SelectorStep[] buildSteps(String selectorExpression) throws org.jaxen.saxpath.SAXPathException
SelectorStep.setNamespaces(SelectorStep[],java.util.Properties)
method needs to be called to configure the namespaces.selectorExpression
- The selector expression.org.jaxen.saxpath.SAXPathException
- Error parsing expression.public static SelectorStep[] buildSteps(String selectorExpression, Properties namespaces) throws org.jaxen.saxpath.SAXPathException
selectorExpression
- The selector expression.namespaces
- The namespace prefix-to-uri mappings.org.jaxen.saxpath.SAXPathException
- Error parsing expression.public static String toString(SelectorStep[] steps)
steps
- The selector steps.public static String[] toContextualSelector(SelectorStep[] selectorSteps)
public static String extractTargetElement(SelectorStep[] selectorSteps)
public static String extractTargetAttribute(SelectorStep[] selectorSteps)
Copyright © 2020. All rights reserved.