A class supporting filtered operations.
[use case] Concatenates this iterable collection with the elements of a traversable collection.
Concatenates this iterable collection with the elements of a traversable collection.
Applies a binary operator to a start value and all elements of this iterable collection, going left to right.
Applies a binary operator to all elements of this iterable collection and a start value, going right to left.
Appends all elements of this iterable collection to a string builder.
Appends all elements of this iterable collection to a string builder using a separator string.
Appends all elements of this iterable collection to a string builder using start, end, and separator strings.
Updates this MetaData with the MetaData given as argument.
gets attribute value of qualified (prefixed) attribute with given key@param key to be looked fore
forwards the call to next (because caller looks for unprefixed attribute@param key
convenience method, same as apply(namespace, owner.
def
asAttrMap: Map[String, String]
Returns a Map containing the attributes stored as key/value pairs.
def
basisForHashCode: List[AnyRef]
def
buildString(sb: StringBuilder): StringBuilder
def
canEqual(other: Any): Boolean
We insist we're only equal to other xml.
def
collect[B](pf: PartialFunction[MetaData, B]): Traversable[B]
[use case] Builds a new collection by applying a partial function to all elements of this iterable collection
on which the function is defined.
def
collect[B, That](pf: PartialFunction[MetaData, B])(implicit bf: CanBuildFrom[Iterable[MetaData], B, That]): That
Builds a new collection by applying a partial function to all elements of this iterable collection
on which the function is defined.
def
companion: GenericCompanion[Iterable[A][A]]
The factory companion object that builds instances of class Iterable.
def
copy(next: MetaData): PrefixedAttribute
Returns a copy of this unprefixed attribute with the given
next field.
def
copyToArray(xs: Array[MetaData], start: Int, len: Int): Unit
[use case] Copies elements of this iterable collection to an array.
def
copyToArray[B >: MetaData](xs: Array[B], start: Int, len: Int): Unit
Copies elements of this iterable collection to an array.
def
copyToArray(xs: Array[MetaData]): Unit
[use case] Copies values of this iterable collection to an array.
def
copyToArray[B >: MetaData](xs: Array[B]): Unit
Copies values of this iterable collection to an array.
def
copyToArray(xs: Array[MetaData], start: Int): Unit
[use case] Copies values of this iterable collection to an array.
def
copyToArray[B >: MetaData](xs: Array[B], start: Int): Unit
Copies values of this iterable collection to an array.
def
copyToBuffer[B >: MetaData](dest: Buffer[B]): Unit
Copies all elements of this iterable collection to a buffer.
def
count(p: (MetaData) ⇒ Boolean): Int
Counts the number of elements in the iterable collection which satisfy a predicate.
def
drop(n: Int): Iterable[MetaData]
Selects all elements except first n ones.
def
dropRight(n: Int): Iterable[MetaData]
Selects all elements except last n ones.
def
dropWhile(p: (MetaData) ⇒ Boolean): Iterable[MetaData]
Drops longest prefix of elements that satisfy a predicate.
def
elements: Iterator[MetaData]
def
equals(other: Any): Boolean
The equality method defined in AnyRef
.
def
exists(p: (MetaData) ⇒ Boolean): Boolean
Tests whether a predicate holds for some of the elements of this iterable collection.
def
filter(f: (MetaData) ⇒ Boolean): MetaData
filters this sequence of meta data@return a new iterable collection consisting of all elements of this iterable collection that satisfy the given
predicate p
.
def
filterNot(p: (MetaData) ⇒ Boolean): Iterable[MetaData]
Selects all elements of this iterable collection which do not satisfy a predicate.
def
find(p: (MetaData) ⇒ Boolean): Option[MetaData]
Finds the first element of the iterable collection satisfying a predicate, if any.
def
first: MetaData
def
firstOption: Option[MetaData]
None
if iterable is empty.
def
flatMap[B](f: (MetaData) ⇒ Traversable[B]): Traversable[B]
[use case] Builds a new collection by applying a function to all elements of this iterable collection
and concatenating the results.
def
flatMap[B, That](f: (MetaData) ⇒ Traversable[B])(implicit bf: CanBuildFrom[Iterable[MetaData], B, That]): That
Builds a new collection by applying a function to all elements of this iterable collection
and concatenating the results.
def
flatten[B]: CC[B]
[use case] Converts this iterable collection of traversable collections into
a iterable collection in which all element collections are concatenated.
def
flatten[B](implicit asTraversable: (MetaData) ⇒ Traversable[B]): Iterable[B]
Converts this iterable collection of traversable collections into
a iterable collection in which all element collections are concatenated.
def
foldLeft[B](z: B)(op: (B, MetaData) ⇒ B): B
Applies a binary operator to a start value and all elements of this iterable collection, going left to right.
def
foldRight[B](z: B)(op: (MetaData, B) ⇒ B): B
Applies a binary operator to all elements of this iterable collection and a start value, going right to left.
def
forall(p: (MetaData) ⇒ Boolean): Boolean
Tests whether a predicate holds for all elements of this iterable collection.
def
foreach(f: (MetaData) ⇒ Unit): Unit
[use case] Applies a function f
to all elements of this iterable collection.
def
foreach[U](f: (MetaData) ⇒ U): Unit
Applies a function f
to all elements of this iterable collection.
def
genericBuilder[B]: Builder[B, Iterable[B]]
The generic builder that builds instances of Iterable
at arbitrary element types.
def
get(uri: String, scope: NamespaceBinding, key: String): Option[Seq[Node]]
gets value of qualified (prefixed) attribute with given key.
def
get(uri: String, owner: Node, key: String): Option[Seq[Node]]
same as get(uri, owner.
def
get(key: String): Option[Seq[Node]]
Gets value of unqualified (unprefixed) attribute with given key, None if not found
def
getNamespace(owner: Node): String
if owner is the element of this metadata item, returns namespace
def
groupBy[K](f: (MetaData) ⇒ K): Map[K, Iterable[MetaData]]
Partitions this iterable collection into a map of iterable collections according to some discriminator function.
def
grouped(size: Int): Iterator[Iterable[MetaData]]
Partitions elements in fixed size iterable collections.
def
hasDefiniteSize: Boolean
Tests whether this iterable collection is known to have a finite size.
def
hasNext: Boolean
def
hashCode(): Int
It's be nice to make these final, but there are probably
people out there subclassing the XML types, especially when
it comes to equals.
def
head: MetaData
Selects the first element of this iterable collection.
def
headOption: Option[MetaData]
Optionally selects the first element.
def
init: Iterable[MetaData]
Selects all elements except the last.
def
isEmpty: Boolean
Tests whether this iterable collection is empty.
def
isPrefixed: Boolean
def
isTraversableAgain: Boolean
Tests whether this iterable collection can be repeatedly traversed.
def
iterator: Iterator[MetaData]
Returns an iterator on attributes@return the new iterator
val
key: String
returns key of this MetaData item
def
last: MetaData
Selects the last element.
def
lastOption: Option[MetaData]
Optionally selects the last element.
def
length(i: Int): Int
def
length: Int
def
map[B](f: (MetaData) ⇒ B): Traversable[B]
[use case] Builds a new collection by applying a function to all elements of this iterable collection.
def
map[B, That](f: (MetaData) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MetaData], B, That]): That
Builds a new collection by applying a function to all elements of this iterable collection.
def
max: MetaData
[use case] Finds the largest element.
def
max[B >: MetaData](implicit cmp: Ordering[B]): MetaData
Finds the largest element.
def
min: MetaData
[use case] Finds the smallest element.
def
min[B >: MetaData](implicit cmp: Ordering[B]): MetaData
Finds the smallest element.
def
mkString: String
Displays all elements of this iterable collection in a string.
def
mkString(sep: String): String
Displays all elements of this iterable collection in a string using a separator string.
def
mkString(start: String, sep: String, end: String): String
Displays all elements of this iterable collection in a string using start, end, and separator strings.
val
next: MetaData
returns Null or the next MetaData item
def
nonEmpty: Boolean
Tests whether the iterable collection is not empty.
def
partition(p: (MetaData) ⇒ Boolean): (Iterable[MetaData], Iterable[MetaData])
Partitions this iterable collection in two iterable collections according to a predicate.
val
pre: String
def
prefixedKey: String
Returns a String containing "prefix:key" if the first key is
prefixed, and "key" otherwise.
def
product: Int
[use case] Multiplies up the elements of this collection.
def
product[B >: MetaData](implicit num: Numeric[B]): B
Multiplies up the elements of this collection.
def
projection: IterableView[MetaData, Iterable[MetaData]]
returns a projection that can be used to call non-strict filter
,map
, and flatMap
methods that build projections
of the collection.
def
reduceLeft[B >: MetaData](op: (B, MetaData) ⇒ B): B
Applies a binary operator to all elements of this iterable collection, going left to right.
def
reduceLeftOption[B >: MetaData](op: (B, MetaData) ⇒ B): Option[B]
Optionally applies a binary operator to all elements of this iterable collection, going left to right.
def
reduceRight[B >: MetaData](op: (MetaData, B) ⇒ B): B
Applies a binary operator to all elements of this iterable collection, going right to left.
def
reduceRightOption[B >: MetaData](op: (MetaData, B) ⇒ B): Option[B]
Optionally applies a binary operator to all elements of this iterable collection, going right to left.
def
remove(namespace: String, scope: NamespaceBinding, key: String): MetaData
no summary matey
def
remove(key: String): MetaData
no summary matey
def
remove(namespace: String, owner: Node, key: String): MetaData
no summary matey
def
repr: Iterable[MetaData]
The collection of type iterable collection underlying this TraversableLike
object.
def
sameElements(that: Iterable[MetaData]): Boolean
[use case] Checks if the other iterable collection contains the same elements in the same order as this iterable collection.
def
sameElements[B >: MetaData](that: Iterable[B]): Boolean
Checks if the other iterable collection contains the same elements in the same order as this iterable collection.
def
scanLeft[B, That](z: B)(op: (B, MetaData) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MetaData], B, That]): That
Produces a collection containing cummulative results of applying the operator going left to right.
def
scanRight[B, That](z: B)(op: (MetaData, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[MetaData], B, That]): That
Produces a collection containing cummulative results of applying the operator going right to left.
def
size: Int
The size of this iterable collection.
def
slice(from: Int, until: Int): Iterable[MetaData]
Selects an interval of elements.
def
sliding[B >: MetaData](size: Int, step: Int): Iterator[Iterable[MetaData]]
def
sliding[B >: MetaData](size: Int): Iterator[Iterable[MetaData]]
Groups elements in fixed size blocks by passing a "sliding window"
over them (as opposed to partitioning them, as is done in grouped.
def
span(p: (MetaData) ⇒ Boolean): (Iterable[MetaData], Iterable[MetaData])
Splits this iterable collection into a prefix/suffix pair according to a predicate.
def
splitAt(n: Int): (Iterable[MetaData], Iterable[MetaData])
Splits this iterable collection into two at a given position.
def
strict_!=(other: Equality): Boolean
def
strict_==(other: Equality): Boolean
def
stringPrefix: String
Defines the prefix of this object's toString
representation.
def
sum: Int
[use case] Sums up the elements of this collection.
def
sum[B >: MetaData](implicit num: Numeric[B]): B
Sums up the elements of this collection.
def
tail: Iterable[MetaData]
Selects all elements except the first.
def
take(n: Int): Iterable[MetaData]
Selects first n elements.
def
takeRight(n: Int): Iterable[MetaData]
Selects last n elements.
def
takeWhile(p: (MetaData) ⇒ Boolean): Iterable[MetaData]
Takes longest prefix of elements that satisfy a predicate.
def
toArray: Array[MetaData]
[use case] Converts this iterable collection to an array.
def
toArray[B >: MetaData](implicit arg0: ClassManifest[B]): Array[B]
Converts this iterable collection to an array.
def
toBuffer[B >: MetaData]: Buffer[B]
Converts this iterable collection to a mutable buffer.
def
toIndexedSeq[B >: MetaData]: IndexedSeq[B]
Converts this iterable collection to an indexed sequence.
def
toIterable: Iterable[MetaData]
Converts this iterable collection to an iterable collection.
def
toIterator: Iterator[MetaData]
Returns an Iterator over the elements in this iterable collection.
def
toList: List[MetaData]
Converts this iterable collection to a list.
def
toMap[T, U](implicit ev: <:<[MetaData, (T, U)]): Map[T, U]
Converts this iterable collection to a map.
def
toSeq: Seq[MetaData]
Converts this iterable collection to a sequence.
def
toSet[B >: MetaData]: Set[B]
Converts this iterable collection to a set.
def
toStream: Stream[MetaData]
Converts this iterable collection to a stream.
def
toString(): String
Converts this iterable collection to a string.
def
toString1(sb: StringBuilder): Unit
Appends string representation of only this attribute to stringbuffer.
def
toString1(): String
def
toTraversable: Traversable[MetaData]
Converts this iterable collection to an unspecified Traversable.
def
transpose[B](implicit asTraversable: (MetaData) ⇒ Traversable[B]): Iterable[Iterable[B]]
Transposes this iterable collection of traversable collections into
a iterable collection of iterable collections.
def
unzip[A1, A2](implicit asPair: (MetaData) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
Converts this iterable collection of pairs into two collections of the first and second
halfs of each pair.
val
value: Seq[Node]
returns value of this MetaData item
def
view(from: Int, until: Int): IterableView[MetaData, Iterable[MetaData]]
Creates a non-strict view of a slice of this iterable collection.
def
view: IterableView[MetaData, Iterable[MetaData]]
Creates a non-strict view of this iterable collection.
def
wellformed(scope: NamespaceBinding): Boolean
no summary matey
def
withFilter(p: (MetaData) ⇒ Boolean): WithFilter
Creates a non-strict filter of this iterable collection.
def
xml_!=(other: Any): Boolean
def
xml_==(other: Any): Boolean
def
zip[B](that: Iterable[B]): Iterable[(MetaData, B)]
[use case] Returns a iterable collection formed from this iterable collection and another iterable collection
by combining corresponding elements in pairs.
def
zip[A1 >: MetaData, B, That](that: Iterable[B])(implicit bf: CanBuildFrom[Iterable[MetaData], (A1, B), That]): That
Returns a iterable collection formed from this iterable collection and another iterable collection
by combining corresponding elements in pairs.
def
zipAll[B](that: Iterable[B], thisElem: MetaData, thatElem: B): Iterable[(MetaData, B)]
[use case] Returns a iterable collection formed from this iterable collection and another iterable collection
by combining corresponding elements in pairs.
def
zipAll[B, A1 >: MetaData, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[MetaData], (A1, B), That]): That
Returns a iterable collection formed from this iterable collection and another iterable collection
by combining corresponding elements in pairs.
def
zipWithIndex: Iterable[(MetaData, Int)]
[use case] Zips this iterable collection with its indices.
def
zipWithIndex[A1 >: MetaData, That](implicit bf: CanBuildFrom[Iterable[MetaData], (A1, Int), That]): That
Zips this iterable collection with its indices.
prefixed attributes always have a non-null namespace.