package jaxen
This package provides string XPath evaluation based on the Jaxen library, sample use:
val xpath = ScalesXPath(str, Map( "pre" -> "urn:prefix", "jh" -> "urn:justHere", "def" -> "urn:default" )) val result : Iterable[Either[AttributePath, XmlPath]] = xpath.evaluate(x : XmlPath)
NB: This class is only available with the scales-jaxen dependencies.
- Alphabetic
- By Inheritance
- jaxen
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
ScalesBaseJaxenXPath extends org.jaxen.XPath with Serializable
Base functionality for all concrete, implementation-specific XPaths.
Base functionality for all concrete, implementation-specific XPaths.
This class provides generic functionality for further-defined implementation-specific XPaths.
If you want to adapt the Jaxen engine so that it can traverse your own object model, then this is a good base class to derive from. Typically you only really need to provide your own
org.jaxen.Navigatorimplementation.- See also
org.jaxen.dom4j.Dom4jXPath XPath for dom4j
org.jaxen.jdom.JDOMXPath XPath for JDOM
org.jaxen.dom.DOMXPath XPath for W3C DOM
- class ScalesDefaultLocationPath extends DefaultLocationPath
-
class
ScalesNavigator extends DefaultNavigator
Maps Scales Xml into Jaxen
-
class
ScalesUnionExpr extends DefaultBinaryExpr with UnionExpr
To use a proper comparator
-
class
ScalesXPath extends ScalesBaseJaxenXPath
Use evaluate every time, select nodes will not work.
Use evaluate every time, select nodes will not work.
NB: This class is only available with the scales-jaxen dependencies.
-
class
ScalesDefaultAbsoluteLocationPath extends ScalesDefaultLocationPath
- Deprecated
this class will become non-public in the future; use the interface instead
Value Members
- object Implicits
-
object
ScalesComparator extends Comparator[AnyRef]
Interesting exercise in futility, its better not to sort as so many other places make reference / identity assumptions.
-
object
ScalesXPath extends Serializable
Useful constructors for String XPaths
-
object
ScalesXPathFactory extends DefaultXPathFactory
Due to reference equality comparisoms and a deeply woven comparator we need to override a few things...