in scala/xml
class NodeSeq
-
abstract class NodeSeq()
- extends Seq[Node]
- with ScalaObject
-
Implementing classes or objects:
-
class Node()
-
class Document()
-
a wrapper around Seq[Node] that adds XPath and comprehension methods
Methods inherited from java/lang/Object-class
|
clone, eq, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, wait, wait, wait |
theSeq
abstract def theSeq: Seq[Node]
length
def length: Int
-
Returns the length of the sequence.
- Returns:
-
the sequence length.
elements
def elements: Iterator[Node]
-
Creates a new iterator over all elements contained in this
object.
- Returns:
-
the new iterator
apply
def apply(i: Int): Node
apply
def apply(f: (Node) => Boolean): NodeSeq
equals
override def equals(x: Any): Boolean
-
structural equality
\
def \(that: String): NodeSeq
-
projection function. Similar to XPath, use this \ "foo" to get a list
of all elements of this sequence that are labelled with "foo".
Use \ "_" as a wildcard. The document order is preserved.
\\
def \\(that: String): NodeSeq
-
projection function. Similar to XPath, use this \\ 'foo to get a list
of all elements of this sequence that are labelled with "foo".
Use \ "_" as a wildcard. The document order is preserved.
toString
override def toString(): String
-
Customizes the
toString
method.
- Returns:
-
a string representation of this sequence.
asList
def asList: List[Node]
map
def map(f: (Node) => Node): NodeSeq
flatMap
def flatMap(f: (Node) => NodeSeq): NodeSeq
filter
def filter(f: (Node) => Boolean): NodeSeq
text
def text: String