scala.xml

UnprefixedAttribute

class UnprefixedAttribute extends MetaData with Attribute

Unprefixed attributes have the null namespace, and no prefix field

Inherits

  1. Attribute
  2. MetaData
  3. Iterable
  4. IterableLike
  5. Equals
  6. Traversable
  7. GenericTraversableTemplate
  8. TraversableLike
  9. HasNewBuilder
  10. AnyRef
  11. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def ++[B >: MetaData, That](that: Iterator[B])(bf: CanBuildFrom[Iterable[MetaData], B, That]): That

    Concatenates this iterable collection with the elements of an iterator

    Concatenates this iterable collection with the elements of an iterator.

    B

    the element type of the returned collection.

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type B being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

    that

    the iterator to append.

    bf

    an implicit value of class CanBuildFrom which determines the result class That from the current representation type Repr and and the new element type B.

    returns

    a new collection of type That which contains all elements of this iterable collection followed by all elements of that.

    definition classes: TraversableLike
  2. def ++[B >: MetaData, That](that: Traversable[B])(bf: CanBuildFrom[Iterable[MetaData], B, That]): That

    Concatenates this iterable collection with the elements of a traversable collection

    Concatenates this iterable collection with the elements of a traversable collection.

    B

    the element type of the returned collection.

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type B being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

    that

    the traversable to append.

    bf

    an implicit value of class CanBuildFrom which determines the result class That from the current representation type Repr and and the new element type B.

    returns

    a new collection of type That which contains all elements of this iterable collection followed by all elements of that.

    definition classes: TraversableLike
  3. def /:[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

    Applies a binary operator to a start value and all elements of this iterable collection, going left to right.

    Note: /: is alternate syntax for foldLeft; z /: xs is the same as xs foldLeft z.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    z

    the start value.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this iterable collection$, going left to right with the start value z on the left: {{{ op(...op(op(z, x1), x2), ..., xn) }}} where x,,1,,, ..., x,,n,, are the elements of this iterable collection.

    definition classes: TraversableLike
  4. def :\[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

    Applies a binary operator to all elements of this iterable collection and a start value, going right to left.

    Note: :\ is alternate syntax for foldRight; xs :\ z is the same as xs foldRight z.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    z

    the start value

    op

    the binary operator

    returns

    the result of inserting op between consecutive elements of this iterable collection$, going right to left with the start value z on the right: {{{ op(x1, op(x2, ... op(xn, z)...)) }}} where x,,1,,, ..., x,,n,, are the elements of this iterable collection.

    definition classes: TraversableLike
  5. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this iterable collection to a string builder

    Appends all elements of this iterable collection to a string builder. The written text consists of the string representations (w.r.t. the method toString) of all elements of this iterable collection without any separator string.

    b

    the string builder to which elements are appended.

    returns

    the string builder b to which elements were appended.

    definition classes: TraversableLike
  6. def addString(b: StringBuilder, sep: String): StringBuilder

    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 a separator string. The written text consists of the string representations (w.r.t. the method toString) of all elements of this iterable collection, separated by the string sep.

    b

    the string builder to which elements are appended.

    sep

    the separator string.

    returns

    the string builder b to which elements were appended.

    definition classes: TraversableLike
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this iterable collection to a string builder using start, end, and separator strings

    Appends all elements of this iterable collection to a string builder using start, end, and separator strings. The written text begins with the string start and ends with the string end. Inside, the string representations (w.r.t. the method toString) of all elements of this iterable collection are separated by the string sep.

    b

    the string builder to which elements are appended.

    start

    the starting string.

    sep

    the separator string.

    end

    the ending string.

    returns

    the string builder b to which elements were appended.

    definition classes: TraversableLike
  8. def append(updates: MetaData, scope: NamespaceBinding): MetaData

    Updates this MetaData with the MetaData given as argument

    Updates this MetaData with the MetaData given as argument. All attributes that occur in updates are part of the resulting MetaData. If an attribute occurs in both this instance and updates, only the one in updates is part of the result (avoiding duplicates). For prefixed attributes, namespaces are resolved using the given scope, which defaults to TopScope.

    updates

    MetaData with new and updated attributes

    returns

    a new MetaData instance that contains old, new and updated attributes

    definition classes: MetaData
  9. def apply(namespace: String, scope: NamespaceBinding, key: String): Seq[Node]

    Forwards the call to next (because caller looks for prefixed attribute)

    Forwards the call to next (because caller looks for prefixed attribute).

    namespace
    scope
    key
    returns

    ..

  10. def apply(key: String): Seq[Node]

    Gets value of unqualified (unprefixed) attribute with given key, null if not found

    Gets value of unqualified (unprefixed) attribute with given key, null if not found

    key
    returns

    value as Seq[Node] if key is found, null otherwise

  11. def buildString(sb: StringBuilder): StringBuilder

  12. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.

    that

    The object with which this iterable collection should be compared

    returns

    true, if this iterable collection can possibly equal that, false otherwise. The test takes into consideration only the run-time types of objects but ignores their elements.

    definition classes: IterableLikeEquals
  13. def companion: GenericCompanion[Iterable[A][A]]

    The factory companion object that builds instances of class Iterable

    The factory companion object that builds instances of class Iterable.

    definition classes: IterableTraversableGenericTraversableTemplate
  14. def containedIn1(m: MetaData): Boolean

    m

    ...

    returns

    true iff ...

    definition classes: MetaData
  15. def copy(next: MetaData): UnprefixedAttribute

    returns a copy of this unprefixed attribute with the given next [email protected] next

    returns a copy of this unprefixed attribute with the given next [email protected] next ...

  16. def copyToArray[B >: MetaData](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this iterable collection to an array

    Copies elements of this iterable collection to an array. Fills the given array xs with at most len elements of this iterable collection, starting at position start. Copying will stop once either the end of the current iterable collection is reached, or the end of the array is reached, or len elements have been copied.

    Note: will not terminate for infinite-sized collections.

    B

    the type of the elements of the array.

    xs

    the array to fill.

    start

    the starting index.

    len

    the maximal number of elements to copy.

    definition classes: IterableLikeTraversableLike
  17. def copyToArray[B >: MetaData](xs: Array[B]): Unit

    Copies elements of this iterable collection to an array

    Copies elements of this iterable collection to an array. Fills the given array xs with all elements of this iterable collection, starting at position 0. Copying will stop once either the end of the current iterable collection is reached, or the end of the array is reached.

    Note: will not terminate for infinite-sized collections.

    B

    the type of the elements of the array.

    xs

    the array to fill.

    definition classes: TraversableLike
  18. def copyToArray[B >: MetaData](xs: Array[B], start: Int): Unit

    Copies elements of this iterable collection to an array

    Copies elements of this iterable collection to an array. Fills the given array xs with all elements of this iterable collection, starting at position start. Copying will stop once either the end of the current iterable collection is reached, or the end of the array is reached.

    Note: will not terminate for infinite-sized collections.

    B

    the type of the elements of the array.

    xs

    the array to fill.

    start

    the starting index.

    definition classes: TraversableLike
  19. def copyToBuffer[B >: MetaData](dest: Buffer[B]): Unit

    Copies all elements of this iterable collection to a buffer

    Copies all elements of this iterable collection to a buffer.

    Note: will not terminate for infinite-sized collections.

    dest

    The buffer to which elements are copied.

    definition classes: TraversableLike
  20. def count(p: (MetaData) ⇒ Boolean): Int

    Counts the number of elements in the iterable collection which satisfy a predicate

    Counts the number of elements in the iterable collection which satisfy a predicate.

    p

    the predicate used to test elements.

    returns

    the number of elements satisfying the predicate p.

    definition classes: TraversableLike
  21. def drop(n: Int): Iterable[MetaData]

    Selects all elements except first n ones

    Selects all elements except first n ones.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    n

    the number of elements to drop from this iterable collection.

    returns

    a iterable collection consisting of all elements of this iterable collection except the first n ones, or else the empty iterable collection, if this iterable collection has less than n elements.

    definition classes: TraversableLike
  22. def dropRight(n: Int): Iterable[MetaData]

    Selects all elements except first n ones

    Selects all elements except first n ones.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    n

    The number of elements to take

    returns

    a iterable collection consisting of all elements of this iterable collection except the first n ones, or else the empty iterable collection, if this iterable collection has less than n elements.

    definition classes: IterableLike
  23. def dropWhile(p: (MetaData) ⇒ Boolean): Iterable[MetaData]

    Drops longest prefix of elements that satisfy a predicate

    Drops longest prefix of elements that satisfy a predicate.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    p

    The predicate used to test elements.

    returns

    the longest suffix of this iterable collection whose first element does not satisfy the predicate p.

    definition classes: TraversableLike
  24. def elements: Iterator[MetaData]

  25. def equals(that: Any): Boolean

    deep equals method - XXX @return true if the receiver object is equivalent to the argument; false otherwise

    deep equals method - XXX @return true if the receiver object is equivalent to the argument; false otherwise.

    */

    definition classes: MetaDataEquals ⇐ AnyRef ⇐ Any
  26. def equals1(m: MetaData): Boolean

    shallow equals method

    shallow equals method

  27. def exists(p: (MetaData) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this iterable collection

    Tests whether a predicate holds for some of the elements of this iterable collection.

    Note: may not terminate for infinite-sized collections.

    p

    the predicate used to test elements.

    returns

    true if the given predicate p holds for some of the elements of this iterable collection, otherwise false.

    definition classes: IterableLikeTraversableLike
  28. 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

    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. The order of the elements is preserved.

    definition classes: MetaDataTraversableLike
  29. def filterNot(p: (MetaData) ⇒ Boolean): Iterable[MetaData]

    Selects all elements of this iterable collection which do not satisfy a predicate

    Selects all elements of this iterable collection which do not satisfy a predicate.

    p

    the predicate used to test elements.

    returns

    a new iterable collection consisting of all elements of this iterable collection that do not satisfy the given predicate p. The order of the elements is preserved.

    definition classes: TraversableLike
  30. def find(p: (MetaData) ⇒ Boolean): Option[MetaData]

    Finds the first element of the iterable collection satisfying a predicate, if any

    Finds the first element of the iterable collection satisfying a predicate, if any.

    Note: may not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    p

    the predicate used to test elements.

    returns

    an option value containing the first element in the iterable collection that satisfies p, or None if none exists.

    definition classes: IterableLikeTraversableLike
  31. def first: MetaData

  32. def firstOption: Option[MetaData]

    None if iterable is empty

    None if iterable is empty.

    definition classes: IterableLike
  33. def flatMap[B, That](f: (MetaData) ⇒ Traversable[B])(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

    Builds a new collection by applying a function to all elements of this iterable collection and concatenating the results.

    B

    the element type of the returned collection.

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type B being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

    f

    the function to apply to each element.

    bf

    an implicit value of class CanBuildFrom which determines the result class That from the current representation type Repr and and the new element type B.

    returns

    a new collection of type That resulting from applying the given collection-valued function f to each element of this iterable collection and concatenating the results.

    definition classes: TraversableLike
  34. def flatten[B](asTraversable: (MetaData) ⇒ Traversable[B]): Iterable[B]

    Converts this iterable collection of traversable collections into a iterable collection in which all element collections are concatenated

    Converts this iterable collection of traversable collections into a iterable collection in which all element collections are concatenated.

    B

    the type of the elements of each traversable collection.

    asTraversable

    an implicit conversion which asserts that the element type of this iterable collection is a Traversable.

    returns

    a new iterable collection resulting from concatenating all element iterable collections.

    definition classes: GenericTraversableTemplate
  35. 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

    Applies a binary operator to a start value and all elements of this iterable collection, going left to right.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    z

    the start value.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this iterable collection$, going left to right with the start value z on the left: {{{ op(...op(z, x1), x2, ..., xn) }}} where x,,1,,, ..., x,,n,, are the elements of this iterable collection.

    definition classes: TraversableLike
  36. 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

    Applies a binary operator to all elements of this iterable collection and a start value, going right to left.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    z

    the start value.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this iterable collection$, going right to left with the start value z on the right: {{{ op(x1, op(x2, ... op(xn, z)...)) }}} where x,,1,,, ..., x,,n,, are the elements of this iterable collection.

    definition classes: IterableLikeTraversableLike
  37. def forall(p: (MetaData) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this iterable collection

    Tests whether a predicate holds for all elements of this iterable collection.

    Note: may not terminate for infinite-sized collections.

    p

    the predicate used to test elements.

    returns

    true if the given predicate p holds for all elements of this iterable collection, otherwise false.

    definition classes: IterableLikeTraversableLike
  38. def foreach[U](f: (MetaData) ⇒ U): Unit

    Applies a function f to all elements of this iterable collection

    Applies a function f to all elements of this iterable collection.

    Note: this method underlies the implementation of most other bulk operations. Subclasses should re-implement this method if a more efficient implementation exists.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    definition classes: IterableLikeTraversableLike
  39. def genericBuilder[B]: Builder[B, Iterable[B]]

    The generic builder that builds instances of Iterable at arbitrary element types

    The generic builder that builds instances of Iterable at arbitrary element types.

    definition classes: GenericTraversableTemplate
  40. 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

    Partitions this iterable collection into a map of iterable collections according to some discriminator function.

    Note: this method is not re-implemented by views. This means when applied to a view it will always force the view and return a new iterable collection.

    K

    the type of keys returned by the discriminator function.

    f

    the discriminator function.

    returns

    A map from keys to iterable collections such that the following invariant holds: {{{ (xs partition f)(k) = xs filter (x => f(x) == k) }}} That is, every key k is bound to a iterable collection of those elements x for which f(x) equals k.

    definition classes: TraversableLike
  41. def hasDefiniteSize: Boolean

    Tests whether this iterable collection is known to have a finite size

    Tests whether this iterable collection is known to have a finite size. All strict collections are known to have finite size. For a non-strict collection such as Stream, the predicate returns true if all elements have been computed. It returns false if the stream is not yet evaluated to the end.

    Note: many collection methods will not work on collections of infinite sizes.

    definition classes: TraversableLike
  42. def hasNext: Boolean

  43. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

  44. def head: MetaData

    Selects the first element of this iterable collection

    Selects the first element of this iterable collection.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    definition classes: IterableLikeTraversableLike
  45. def headOption: Option[MetaData]

    Optionally selects the first element

    Optionally selects the first element.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    definition classes: TraversableLike
  46. def init: Iterable[MetaData]

    Selects all elements except the last

    Selects all elements except the last.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    definition classes: TraversableLike
  47. def isEmpty: Boolean

    Tests whether this iterable collection is empty

    Tests whether this iterable collection is empty.

    definition classes: IterableLikeTraversableLike
  48. def iterator: Iterator[MetaData]

    Returns an iterator on attributes @return the new iterator

    Returns an iterator on attributes @return the new iterator

    definition classes: MetaDataIterableLike
  49. val key: String

    returns key of this MetaData item

    returns key of this MetaData item

  50. def last: MetaData

    Selects the last element

    Selects the last element.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    definition classes: TraversableLike
  51. def lastOption: Option[MetaData]

    Optionally selects the last element

    Optionally selects the last element.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    definition classes: TraversableLike
  52. def length(i: Int): Int

  53. def length: Int

  54. def map(f: (MetaData) ⇒ Text): List[Text]

    maps this sequence of meta data

    maps this sequence of meta data

    definition classes: MetaData
  55. def map[B, That](f: (MetaData) ⇒ B)(bf: CanBuildFrom[Iterable[MetaData], B, That]): That

    Builds a new collection by applying a function to all elements of this iterable collection

    Builds a new collection by applying a function to all elements of this iterable collection.

    B

    the element type of the returned collection.

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type B being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

    f

    the function to apply to each element.

    bf

    an implicit value of class CanBuildFrom which determines the result class That from the current representation type Repr and and the new element type B.

    returns

    a new collection of type That resulting from applying the given function f to each element of this iterable collection and collecting the results.

    definition classes: TraversableLike
  56. def max[B >: MetaData](cmp: Ordering[B]): MetaData

    Finds the largest element

    Finds the largest element.

    B

    The type over which the ordering is defined.

    cmp

    An ordering to be used for comparing elements.

    returns

    the largest element of this iterable collection with respect to the ordering cmp.

    definition classes: TraversableLike
  57. def min[B >: MetaData](cmp: Ordering[B]): MetaData

    Finds the smallest element

    Finds the smallest element.

    B

    The type over which the ordering is defined.

    cmp

    An ordering to be used for comparing elements.

    returns

    the smallest element of this iterable collection with respect to the ordering cmp.

    definition classes: TraversableLike
  58. def mkString: String

    Displays all elements of this iterable collection in a string

    Displays all elements of this iterable collection in a string.

    definition classes: TraversableLike
  59. def mkString(sep: String): String

    Displays all elements of this iterable collection in a string using a separator string

    Displays all elements of this iterable collection in a string using a separator string.

    sep

    the separator string.

    returns

    a string representation of this iterable collection. In the resulting string the string representations (w.r.t. the method toString) of all elements of this iterable collection are separated by the string sep.

    definition classes: TraversableLike
  60. 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

    Displays all elements of this iterable collection in a string using start, end, and separator strings.

    start

    the starting string.

    sep

    the separator string.

    end

    the ending string.

    returns

    a string representation of this iterable collection. The resulting string begins with the string start and ends with the string end. Inside, the string representations (w.r.t. the method toString) of all elements of this iterable collection are separated by the string sep.

    definition classes: TraversableLike
  61. val next: MetaData

    returns Null or the next MetaData item

    returns Null or the next MetaData item

  62. def nonEmpty: Boolean

    Tests whether the iterable collection is not empty

    Tests whether the iterable collection is not empty.

    definition classes: TraversableLike
  63. def partialMap[B, That](pf: PartialFunction[MetaData, B])(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

    Builds a new collection by applying a partial function to all elements of this iterable collection on which the function is defined.

    B

    the element type of the returned collection.

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type B being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

    pf

    the partial function which filters and maps the iterable collection.

    bf

    an implicit value of class CanBuildFrom which determines the result class That from the current representation type Repr and and the new element type B.

    returns

    a new collection of type That resulting from applying the partial function pf to each element on which it is defined and collecting the results. The order of the elements is preserved.

    definition classes: TraversableLike
  64. def partition(p: (MetaData) ⇒ Boolean): (Iterable[MetaData], Iterable[MetaData])

    Partitions this iterable collection in two iterable collections according to a predicate

    Partitions this iterable collection in two iterable collections according to a predicate.

    p

    the predicate on which to partition.

    returns

    a pair of iterable collections: the first iterable collection consists of all elements that satisfy the predicate p and the second iterable collection consists of all elements that don't. The relative order of the elements in the resulting iterable collections is the same as in the original iterable collection.

    definition classes: TraversableLike
  65. def product[B >: MetaData](num: Numeric[B]): B

    Multiplies up the elements of this collection

    Multiplies up the elements of this collection.

    B

    the result type of the * operator.

    num

    an implicit parameter defining a set of numeric operations which includes the * operator to be used in forming the product.

    returns

    the product of all elements of this iterable collection with respect to the * operator in num.

    definition classes: TraversableLike
  66. 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

    returns a projection that can be used to call non-strict filter,map, and flatMap methods that build projections of the collection.

    definition classes: IterableLike
  67. def reduceLeft[B >: MetaData](op: (B, MetaData) ⇒ B): B

    Applies a binary operator to all elements of this iterable collection, going left to right

    Applies a binary operator to all elements of this iterable collection, going left to right.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this iterable collection$, going left to right: {{{ op(...(op(x1, x2), ... ) , xn) }}} where x,,1,,, ..., x,,n,, are the elements of this iterable collection.

    definition classes: TraversableLike
  68. 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

    Optionally applies a binary operator to all elements of this iterable collection, going left to right.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    an option value containing the result of reduceLeft(op) is this iterable collection is nonempty, None otherwise.

    definition classes: TraversableLike
  69. def reduceRight[B >: MetaData](op: (MetaData, B) ⇒ B): B

    Applies a binary operator to all elements of this iterable collection, going right to left

    Applies a binary operator to all elements of this iterable collection, going right to left.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this iterable collection$, going right to left: {{{ op(x1, op(x2, ..., op(xn-1, xn)...)) }}} where x,,1,,, ..., x,,n,, are the elements of this iterable collection.

    definition classes: IterableLikeTraversableLike
  70. 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

    Optionally applies a binary operator to all elements of this iterable collection, going right to left.

    Note: will not terminate for infinite-sized collections.

    Note: might return different results for different runs, unless the underlying collection type is ordered. or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    an option value containing the result of reduceRight(op) is this iterable collection is nonempty, None otherwise.

    definition classes: TraversableLike
  71. def remove(namespace: String, scope: NamespaceBinding, key: String): MetaData

    namespace

    ...

    scope

    ...

    key

    ...

    returns

    ...

  72. def remove(key: String): MetaData

    key

    ...

    returns

    ...

  73. def repr: Iterable[MetaData]

    The collection of type iterable collection underlying this TraversableLike object

    The collection of type iterable collection underlying this TraversableLike object. By default this is implemented as the TraversableLike object itself, but this can be overridden.

    definition classes: TraversableLike
  74. 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

    Checks if the other iterable collection contains the same elements in the same order as this iterable collection.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    Note: will not terminate for infinite-sized collections.

    B

    the type of the elements of collection that.

    that

    the collection to compare with.

    returns

    true, if both collections contain the same elements in the same order, false otherwise.

    definition classes: IterableLike
  75. def size: Int

    The size of this iterable collection

    The size of this iterable collection.

    Note: will not terminate for infinite-sized collections.

    definition classes: MetaDataTraversableLike
  76. def slice(from: Int, until: Int): Iterable[MetaData]

    Selects an interval of elements

    Selects an interval of elements.

    Note: c.slice(from, to) is equivalent to (but possibly more efficient than) c.drop(from).take(to - from)

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    from

    the index of the first returned element in this iterable collection.

    until

    the index one past the last returned element in this iterable collection.

    returns

    a iterable collection containing the elements starting at index from and extending up to (but not including) index until of this iterable collection.

    definition classes: IterableLikeTraversableLike
  77. def span(p: (MetaData) ⇒ Boolean): (Iterable[MetaData], Iterable[MetaData])

    Spits this iterable collection into a prefix/suffix pair according to a predicate

    Spits this iterable collection into a prefix/suffix pair according to a predicate.

    Note: c span p is equivalent to (but possibly more efficient than) (c takeWhile p, c dropWhile p), provided the evaluation of the predicate p does not cause any side-effects.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    p

    the test predicate

    returns

    a pair consisting of the longest prefix of this iterable collection whose elements all satisfy p, and the rest of this iterable collection.

    definition classes: TraversableLike
  78. def splitAt(n: Int): (Iterable[MetaData], Iterable[MetaData])

    Splits this iterable collection into two at a given position

    Splits this iterable collection into two at a given position. Note: c splitAt n is equivalent to (but possibly more efficient than) (c take n, c drop n).

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    n

    the position at which to split.

    returns

    a pair of iterable collections consisting of the first n elements of this iterable collection, and the other elements.

    definition classes: TraversableLike
  79. def stringPrefix: String

    Defines the prefix of this object's toString representation

    Defines the prefix of this object's toString representation.

    definition classes: TraversableLike
  80. def sum[B >: MetaData](num: Numeric[B]): B

    Sums up the elements of this collection

    Sums up the elements of this collection.

    B

    the result type of the + operator.

    num

    an implicit parameter defining a set of numeric operations which includes the + operator to be used in forming the sum.

    returns

    the sum of all elements of this iterable collection with respect to the + operator in num.

    definition classes: TraversableLike
  81. def tail: Iterable[MetaData]

    Selects all elements except the first

    Selects all elements except the first.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    definition classes: TraversableLike
  82. def take(n: Int): Iterable[MetaData]

    Selects first n elements

    Selects first n elements.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    n

    Tt number of elements to take from this iterable collection.

    returns

    a iterable collection consisting only of the first n elements of this iterable collection, or else the whole iterable collection, if it has less than n elements.

    definition classes: IterableLikeTraversableLike
  83. def takeRight(n: Int): Iterable[MetaData]

    Selects last n elements

    Selects last n elements.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    n

    the number of elements to take

    returns

    a iterable collection consisting only of the last n elements of this iterable collection, or else the whole iterable collection, if it has less than n elements.

    definition classes: IterableLike
  84. def takeWhile(p: (MetaData) ⇒ Boolean): Iterable[MetaData]

    Takes longest prefix of elements that satisfy a predicate

    Takes longest prefix of elements that satisfy a predicate.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    p

    The predicate used to test elements.

    returns

    the longest prefix of this iterable collection whose elements all satisfy the predicate p.

    definition classes: IterableLikeTraversableLike
  85. def toArray[B >: MetaData](arg0: ClassManifest[B]): Array[B]

    Converts this iterable collection to an array

    Converts this iterable collection to an array.

    Note: will not terminate for infinite-sized collections.

    B

    the type of the elements of the array. A ClassManifest for this type must be available.

    returns

    an array containing all elements of this iterable collection.

    definition classes: TraversableLike
  86. def toIndexedSeq[B >: MetaData]: IndexedSeq[B]

    Converts this iterable collection to an indexed sequence

    Converts this iterable collection to an indexed sequence.

    Note: will not terminate for infinite-sized collections.

    definition classes: TraversableLike
  87. def toIterable: Iterable[MetaData]

    Converts this iterable collection to an iterable collection

    Converts this iterable collection to an iterable collection.

    Note: Will not terminate for infinite-sized collections.

    definition classes: IterableLikeTraversableLike
  88. def toList: List[MetaData]

    Converts this iterable collection to a list

    Converts this iterable collection to a list.

    Note: will not terminate for infinite-sized collections.

    definition classes: TraversableLike
  89. def toSeq: Seq[MetaData]

    Converts this iterable collection to a sequence

    Converts this iterable collection to a sequence.

    Note: will not terminate for infinite-sized collections.

    definition classes: TraversableLike
  90. def toSet[B >: MetaData]: Set[B]

    Converts this iterable collection to a set

    Converts this iterable collection to a set.

    Note: will not terminate for infinite-sized collections.

    definition classes: TraversableLike
  91. def toStream: Stream[MetaData]

    Converts this iterable collection to a stream

    Converts this iterable collection to a stream.

    Note: will not terminate for infinite-sized collections.

    definition classes: IterableLikeTraversableLike
  92. def toString(): String

    Converts this iterable collection to a string

    Converts this iterable collection to a string

    definition classes: MetaDataTraversableLike ⇐ AnyRef ⇐ Any
  93. def toString1(sb: StringBuilder): Unit

    appends string representation of only this attribute to stringbuffer

    appends string representation of only this attribute to stringbuffer.

    sb

    ..

  94. def toString1(): String

  95. def transpose[B](asTraversable: (MetaData) ⇒ Traversable[B]): Iterable[Iterable[B]]

    Transposes this iterable collection of traversable collections into

    Transposes this iterable collection of traversable collections into

    definition classes: GenericTraversableTemplate
  96. def unzip[A1, A2](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

    Converts this iterable collection of pairs into two collections of the first and second halfs of each pair.

    asPair

    an implicit conversion which asserts that the element type of this iterable collection is a pair.

    returns

    a pair iterable collections, containing the first, respectively second half of each element pair of this iterable collection.

    definition classes: GenericTraversableTemplate
  97. val value: Seq[Node]

    returns value of this MetaData item

    returns value of this MetaData item

  98. def view(from: Int, until: Int): IterableView[MetaData, Iterable[MetaData]]

    Creates a non-strict view of a slice of this iterable collection

    Creates a non-strict view of a slice of this iterable collection.

    Note: the difference between view and slice is that view produces a view of the current iterable collection, whereas slice produces a new iterable collection.

    Note: view(from, to) is equivalent to view.slice(from, to)

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    from

    the index of the first element of the view

    until

    the index of the element following the view

    returns

    a non-strict view of a slice of this iterable collection, starting at index from and extending up to (but not including) index until.

    definition classes: IterableLikeTraversableLike
  99. def view: IterableView[MetaData, Iterable[MetaData]]

    Creates a non-strict view of this iterable collection

    Creates a non-strict view of this iterable collection.

    definition classes: IterableLikeTraversableLike
  100. def wellformed(scope: NamespaceBinding): Boolean

    scope

    ...

    returns

    true iff ...

  101. def withFilter(p: (MetaData) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this iterable collection

    Creates a non-strict filter of this iterable collection.

    Note: the difference between c filter p and c withFilter p is that the former creates a new collection, whereas the latter only restricts the domain of subsequent map, flatMap, foreach, and withFilter operations.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    p

    the predicate used to test elements.

    returns

    an object of class WithFilter, which supports map, flatMap, foreach, and withFilter operations. All these operations apply to those elements of this iterable collection which satify the predicate p.

    definition classes: TraversableLike
  102. def zip[A1 >: MetaData, B, That](that: Iterable[B])(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

    Returns a iterable collection formed from this iterable collection and another iterable collection by combining corresponding elements in pairs. If one of the two collections is longer than the other, its remaining elements are ignored.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    A1

    the type of the first half of the returned pairs (this is always a supertype of the collection's element type A).

    B

    the type of the second half of the returned pairs

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type (A1, B) being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, (A1, B), That]. is found.

    that

    The iterable providing the second half of each result pair

    bf

    an implicit value of class CanBuildFrom which determines the result class That from the current representation type Repr and the new element type (A1, B).

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this iterable collection and that. The length of the returned collection is the minimum of the lengths of this iterable collection$ and that.

    definition classes: IterableLike
  103. def zipAll[B, A1 >: MetaData, That](that: Iterable[B], thisElem: A1, thatElem: B)(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

    Returns a iterable collection formed from this iterable collection and another iterable collection by combining corresponding elements in pairs. If one of the two collections is shorter than the other, placeholder elements are used to extend the shorter collection to the length of the longer.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    that

    the iterable providing the second half of each result pair

    thisElem

    the element to be used to fill up the result if this iterable collection is shorter than that.

    thatElem

    the element to be used to fill up the result if that is shorter than this iterable collection.

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this iterable collection and that. The length of the returned collection is the maximum of the lengths of this iterable collection$ and that. If this iterable collection is shorter than that, thisElem values are used to pad the result. If that is shorter than this iterable collection, thatElem values are used to pad the result.

    definition classes: IterableLike
  104. def zipWithIndex[A1 >: MetaData, That](bf: CanBuildFrom[Iterable[MetaData], (A1, Int), That]): That

    Zips this iterable collection with its indices

    Zips this iterable collection with its indices.

    Note: might return different results for different runs, unless the underlying collection type is ordered.

    A1

    the type of the first half of the returned pairs (this is always a supertype of the collection's element type A).

    That

    the class of the returned collection. Where possible, That is the same class as the current collection class Repr, but this depends on the element type (A1, Int) being admissible for that class, which means that an implicit instance of type CanBuildFrom[Repr, (A1, Int), That]. is found.

    returns

    A new collection of type That containing pairs consisting of all elements of this iterable collection paired with their index. Indices start at 0.

    definition classes: IterableLike

Instance constructors

  1. new UnprefixedAttribute(key: String, value: Option[Seq[Node]], next: MetaData)

    same as this(key, value

    same as this(key, value.get, next), or no attribute if value is None

  2. new UnprefixedAttribute(key: String, value: String, next: MetaData)

    same as this(key, Text(value), next)

    same as this(key, Text(value), next)

  3. new UnprefixedAttribute(key: String, value: Seq[Node], next1: MetaData)

  4. new UnprefixedAttribute()