java.lang.Object
org.joox.selector.CSS2XPath
A utility class converting CSS selector expressions to XPath expressions.
This class is a facade for the more extensive functionality provided by the
css-selectors
project created by Christer Sandberg. jOOX does
not expose that functionality publicly.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
A selector pattern that can be evaluated using standard DOM API -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
Convert a CSS selector expression to an XPath expressionstatic final String
Convert a CSS selector expression to an XPath expressionprivate static void
endsWith
(StringBuilder sb, String attr, String value) XPath 2.0ends-with($str1, $str2)
is equivalent to XPath 1.0
$str2 = substring($str1, string-length($str1) - string-length($str2) + 1)
-
Field Details
-
SIMPLE_SELECTOR
A selector pattern that can be evaluated using standard DOM API
-
-
Constructor Details
-
CSS2XPath
public CSS2XPath()
-
-
Method Details
-
css2xpath
Convert a CSS selector expression to an XPath expression -
css2xpath
Convert a CSS selector expression to an XPath expression -
endsWith
XPath 2.0ends-with($str1, $str2)
is equivalent to XPath 1.0
$str2 = substring($str1, string-length($str1) - string-length($str2) + 1)
-