scales.xml.xpath

DirectXPath

class DirectXPath[PT <: Iterable[xml.XmlPath]] extends XPath[PT]

Pos and filter for a direct access does not flatmap. The next / breaks the chain

Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DirectXPath
  2. XPath
  3. DocumentSplitters
  4. SiblingsAxis
  5. AttributeAxis
  6. OtherNodeTypes
  7. ElementStep
  8. Axis
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DirectXPath(path: XPathInfo, cbf: CanBuildFrom[PT, xml.XmlPath, PT])

Type Members

  1. type T = PT

    Definition Classes
    XPathAxis

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *: XPath[T]

    all child elements

    all child elements

    Definition Classes
    ElementStep
  5. def *(pos: Int): XPath[T]

    Immediate child with position pos, should only be an element.

    Immediate child with position pos, should only be an element. NOTE this will always be evaluated in place and is 1 indexed

    Definition Classes
    ElementStep
  6. def *(pred: (xml.XmlPath) ⇒ Boolean): XPath[T]

    Search for all immediate child elements matching the predicate

    Search for all immediate child elements matching the predicate

    Definition Classes
    ElementStep
  7. def *(qname: QName): XPath[T]

    Search for all immediate child elements with a matching qname

    Search for all immediate child elements with a matching qname

    Definition Classes
    ElementStep
  8. def *:*(local: String): XPath[T]

    Search for all immediate child elements with a matching local name only

    Search for all immediate child elements with a matching local name only

    Definition Classes
    ElementStep
  9. def *:@(local: String): AttributePaths[T]

    Only matches local name

    Only matches local name

    Definition Classes
    AttributeAxis
  10. def *@(qname: UnprefixedQName): AttributePaths[T]

    Loose match for UnprefixedQNames only, only matches local and namespace

    Loose match for UnprefixedQNames only, only matches local and namespace

    Definition Classes
    AttributeAxis
  11. def *@(attrQName: xml.AttributeQName): AttributePaths[T]

    Special case for AttributeQNames, only local and namespace match

    Special case for AttributeQNames, only local and namespace match

    Definition Classes
    AttributeAxis
  12. def *@(pred: (AttributePath) ⇒ Boolean): AttributePaths[T]

    Search for all immediate attributes with a matching predicate (allows localName only searches for example)

    Search for all immediate attributes with a matching predicate (allows localName only searches for example)

    Definition Classes
    AttributeAxis
  13. def *@: AttributePaths[T]

    All immediate attributes

    All immediate attributes

    Definition Classes
    AttributeAxis
  14. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  16. final def ===(textValue: ⇒ String): XPath[T]

    simple test for string equality

    simple test for string equality

    Definition Classes
    Axis
  17. def \: XPath[T]

    simply forwards the current context, element\item specific versions exist that step downwards in document order

    simply forwards the current context, element\item specific versions exist that step downwards in document order

    Definition Classes
    Axis
  18. def \*: XPath[T]

    Definition Classes
    ElementStep
  19. def \*(pos: Int): XPath[T]

    Definition Classes
    ElementStep
  20. def \*(pred: (xml.XmlPath) ⇒ Boolean): XPath[T]

    Definition Classes
    ElementStep
  21. def \*(qname: QName): XPath[T]

    Definition Classes
    ElementStep
  22. def \*:*(local: String): XPath[T]

    Definition Classes
    ElementStep
  23. def \*:@(local: String): AttributePaths[T]

    Definition Classes
    AttributeAxis
  24. def \+: XPath[T]

    all children unpacked, normal xpath requires the context in E1/E2, which hugely complicates things, so \ is this, \+ is \ in the case where unpacking is needed which just leaves \* varieties for elements.

    all children unpacked, normal xpath requires the context in E1/E2, which hugely complicates things, so \ is this, \+ is \ in the case where unpacking is needed which just leaves \* varieties for elements.

    Definition Classes
    Axis
  25. def \@(qname: UnprefixedQName): AttributePaths[T]

    Loose match for UnprefixedQNames only, only matches local and namespace

    Loose match for UnprefixedQNames only, only matches local and namespace

    Definition Classes
    AttributeAxis
  26. def \@(attrQName: xml.AttributeQName): AttributePaths[T]

    Special case for AttributeQNames, only local and namespace match

    Special case for AttributeQNames, only local and namespace match

    Definition Classes
    AttributeAxis
  27. def \@(pred: (AttributePath) ⇒ Boolean): AttributePaths[T]

    Definition Classes
    AttributeAxis
  28. def \@: AttributePaths[T]

    Definition Classes
    AttributeAxis
  29. def \\: XPath[T]

    All descendants, uses XPathInfo eager to choose an implementation

    All descendants, uses XPathInfo eager to choose an implementation

    Definition Classes
    Axis
  30. def \\*(pos: Int): XPath[T]

    Definition Classes
    ElementStep
  31. def \\*(pred: (xml.XmlPath) ⇒ Boolean): XPath[T]

    Definition Classes
    ElementStep
  32. def \\*(qname: QName): XPath[T]

    Definition Classes
    ElementStep
  33. def \\*: XPath[T]

    Definition Classes
    ElementStep
  34. def \\*:*(local: String): XPath[T]

    Definition Classes
    ElementStep
  35. def \\@(qname: UnprefixedQName): AttributePaths[T]

    Loose match for UnprefixedQNames only, only matches local and namespace

    Loose match for UnprefixedQNames only, only matches local and namespace

    Definition Classes
    AttributeAxis
  36. def \\@(attrQName: xml.AttributeQName): AttributePaths[T]

    Special case for AttributeQNames, only local and namespace match

    Special case for AttributeQNames, only local and namespace match

    Definition Classes
    AttributeAxis
  37. def \\@(pred: (AttributePath) ⇒ Boolean): AttributePaths[T]

    Definition Classes
    AttributeAxis
  38. def \\@: AttributePaths[T]

    Definition Classes
    AttributeAxis
  39. def \^: XPath[T]

    Parents of these paths

    Parents of these paths

    Definition Classes
    Axis
  40. def ancestor_::: XPath[T]

    All parents of this node

    All parents of this node

    Definition Classes
    DocumentSplitters
  41. def ancestor_or_self_::: XPath[T]

    All parents of this node or this node

    All parents of this node or this node

    Definition Classes
    DocumentSplitters
  42. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  43. val cbf: CanBuildFrom[PT, xml.XmlPath, PT]

    Definition Classes
    DirectXPathXPathAxis
  44. def cdata: XPath[T]

    all cdata child elements

    all cdata child elements

    Definition Classes
    OtherNodeTypes
  45. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def comment: XPath[T]

    all commnent child elements

    all commnent child elements

    Definition Classes
    OtherNodeTypes
  47. def descendant_::: XPath[T]

    As per spec all children of a context but predicates work directly on these children.

    As per spec all children of a context but predicates work directly on these children. i.e. path.\.descendant_::.*(pred).*(1) returns the first elem for which pred is true whereas path.\\*(pred).*(1) returns ALL the first elems for which this is true.

    Definition Classes
    DocumentSplitters
  48. def descendant_or_self_::: XPath[T]

    All descendants of this node or self

    All descendants of this node or self

    Definition Classes
    DocumentSplitters
  49. def empty: Iterable[xml.XmlPath]

    Definition Classes
    XPathAxis
  50. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  51. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  52. final def filter(pred: (xml.XmlPath) ⇒ Boolean): XPath[T]

    filter through the current matches

    filter through the current matches

    Definition Classes
    Axis
  53. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  54. def following_::: XPath[T]

    All nodes following this given node, in document order, excluding descendants

    All nodes following this given node, in document order, excluding descendants

    Definition Classes
    DocumentSplitters
  55. def following_sibling_::: XPath[T]

    All siblings after the context

    All siblings after the context

    Definition Classes
    SiblingsAxis
  56. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  57. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  58. def i_*@: Iterable[AttributePath]

    Definition Classes
    AttributeAxis
  59. def in(f: (XPath[T]) ⇒ XPath[T]): XPath[T]

    Allow working within the XPath, easily extend and test

    Allow working within the XPath, easily extend and test

    Definition Classes
    XPath
  60. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  61. def just(only: xml.XmlPath): Iterable[xml.XmlPath]

    Definition Classes
    XPathAxis
  62. def last_<(n: ⇒ Int): XPath[T]

    Equivalent to [last() < n]

    Equivalent to [last() < n]

    Definition Classes
    Axis
  63. def last_==(n: ⇒ Int): XPath[T]

    Equivalent to [last() = n]

    Equivalent to [last() = n]

    Definition Classes
    Axis
  64. def last_>(n: ⇒ Int): XPath[T]

    Equivalent to [last() > n]

    Equivalent to [last() > n]

    Definition Classes
    Axis
  65. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  66. def newThis(xpathInfo: XPathInfo): XPath[T]

    Definition Classes
    XPathAxis
  67. final def notify(): Unit

    Definition Classes
    AnyRef
  68. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  69. def one: Iterable[xml.XmlPath]

    Some when its only one in the result set

    Some when its only one in the result set

    Definition Classes
    XPath
  70. def oneOr(handler: (XPath[T]) ⇒ Iterable[xml.XmlPath]): Iterable[xml.XmlPath]

    Definition Classes
    XPath
  71. val path: XPathInfo

    Definition Classes
    DirectXPathXPathAxis
  72. def pi: XPath[T]

    all pi child elements

    all pi child elements

    Definition Classes
    OtherNodeTypes
  73. def pos(pos: ⇒ Int): XPath[T]

    1 index based, per spec, but unsure if it should be

    1 index based, per spec, but unsure if it should be

    Definition Classes
    Axis
  74. def pos_<(pos: ⇒ Int): XPath[T]

    Equivalent to [position() < pos]

    Equivalent to [position() < pos]

    Definition Classes
    Axis
  75. def pos_==(p: ⇒ Int): XPath[T]

    Definition Classes
    Axis
  76. def pos_>(pos: ⇒ Int): XPath[T]

    Equivalent to [position() > pos]

    Equivalent to [position() > pos]

    Definition Classes
    Axis
  77. def pos_eq_last: XPath[T]

    Equivalent to position() = last()

    Equivalent to position() = last()

    Definition Classes
    Axis
  78. def preceding_::: XPath[T]

    All nodes preceding this given context, in reverse document order, excluding parents

    All nodes preceding this given context, in reverse document order, excluding parents

    Definition Classes
    DocumentSplitters
  79. def preceding_sibling_::: XPath[T]

    All siblings before the context

    All siblings before the context

    Definition Classes
    SiblingsAxis
  80. def process(newNodes: Iterable[Iterable[xml.XmlPath]], info: XPathInfo = path): XPath[T]

    Definition Classes
    DirectXPathAxis
  81. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  82. def text: XPath[T]

    all text child elements - xpath standard way, including cdata nodes, filtered to join adjacent text nodes

    all text child elements - xpath standard way, including cdata nodes, filtered to join adjacent text nodes

    Definition Classes
    OtherNodeTypes
  83. def textOnly: XPath[T]

    all text child elements - not including cdata nodes, neither sorted nor dup filtered

    all text child elements - not including cdata nodes, neither sorted nor dup filtered

    Definition Classes
    OtherNodeTypes
  84. def toString(): String

    Definition Classes
    AnyRef → Any
  85. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  86. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  87. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. final def xfilter(f: (Iterable[xml.XmlPath]) ⇒ Boolean): XPath[T]

    Definition Classes
    Axis
  89. final def xflatMap(f: (Iterable[xml.XmlPath]) ⇒ Iterable[Iterable[xml.XmlPath]]): XPath[T]

    x prefixed to avoid disturbing the use of an xpath as an iterable

    x prefixed to avoid disturbing the use of an xpath as an iterable

    Definition Classes
    Axis
  90. final def xlast(onN: (Int) ⇒ Boolean): XPath[T]

    Attributes
    protected
    Definition Classes
    Axis
  91. final def xmap(f: (Iterable[xml.XmlPath]) ⇒ Iterable[xml.XmlPath]): XPath[T]

    Definition Classes
    Axis
  92. def |(other: XPath[T]): XPath[T]

    Union of the two paths, they must use the same type however

    Union of the two paths, they must use the same type however

    x | x === x but only when apply fromXPathToIterable (default behaviour anyway)

    For attribute paths only ++ on an iterable is supported.

    Definition Classes
    XPath
  93. def |>(f: (XPath[T]) ⇒ XPath[T]): XPath[T]

    Allow working within the XPath, easily extend and test

    Allow working within the XPath, easily extend and test

    Definition Classes
    XPath

Inherited from XPath[PT]

Inherited from DocumentSplitters

Inherited from SiblingsAxis

Inherited from AttributeAxis

Inherited from OtherNodeTypes

Inherited from ElementStep

Inherited from Axis

Inherited from AnyRef

Inherited from Any

Ungrouped