Packages

p

scales.xml

jaxen

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. jaxen
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. 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.Navigator implementation.

    See also

    org.jaxen.dom4j.Dom4jXPath XPath for dom4j

    org.jaxen.jdom.JDOMXPath XPath for JDOM

    org.jaxen.dom.DOMXPath XPath for W3C DOM

  2. class ScalesDefaultLocationPath extends DefaultLocationPath
  3. class ScalesNavigator extends DefaultNavigator

    Maps Scales Xml into Jaxen

  4. class ScalesUnionExpr extends DefaultBinaryExpr with UnionExpr

    To use a proper comparator

  5. 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.

  6. class ScalesDefaultAbsoluteLocationPath extends ScalesDefaultLocationPath

    Deprecated

    this class will become non-public in the future; use the interface instead

Value Members

  1. object Implicits
  2. object ScalesComparator extends Comparator[AnyRef]

    Interesting exercise in futility, its better not to sort as so many other places make reference / identity assumptions.

  3. object ScalesXPath extends Serializable

    Useful constructors for String XPaths

  4. object ScalesXPathFactory extends DefaultXPathFactory

    Due to reference equality comparisoms and a deeply woven comparator we need to override a few things...

Inherited from AnyRef

Inherited from Any

Ungrouped