scala.xml

UnprefixedAttribute

class UnprefixedAttribute extends MetaData with Attribute

Unprefixed attributes have the null namespace, and no prefix field

go to: companion
source: UnprefixedAttribute.scala
    authors:
  1. Burak Emir

Inherited
  1. Hide All
  2. Show all
  1. Attribute
  2. MetaData
  3. Equality
  4. Iterable
  5. IterableLike
  6. Equals
  7. Traversable
  8. GenericTraversableTemplate
  9. TraversableLike
  10. TraversableOnce
  11. FilterMonadic
  12. HasNewBuilder
  13. AnyRef
  14. Any
Visibility
  1. Public
  2. All

Instance constructors

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

    same as this(key, value.

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

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

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

Type Members

  1. type Self = Iterable[MetaData]

    The type implementing this traversable

  2. class WithFilter extends FilterMonadic[A, Repr]

    A class supporting filtered operations.

Value Members

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

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ++(that: TraversableOnce[MetaData]): Traversable[MetaData]

    [use case] Concatenates this iterable collection with the elements of a traversable collection.

  7. def ++[B >: MetaData, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[MetaData], B, That]): That

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

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

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

  10. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  11. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  12. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this iterable collection to a string builder.

  13. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this iterable collection to a string builder using a separator string.

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

  15. def append(updates: MetaData, scope: NamespaceBinding = TopScope): MetaData

    Updates this MetaData with the MetaData given as argument.

  16. def apply(namespace: String, scope: NamespaceBinding, key: String): Seq[Node]

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

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

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

  18. def apply(namespace_uri: String, owner: Node, key: String): Seq[Node]

    convenience method, same as apply(namespace, owner.

  19. def asAttrMap: Map[String, String]

    Returns a Map containing the attributes stored as key/value pairs.

  20. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  21. def basisForHashCode: List[AnyRef]

  22. def buildString(sb: StringBuilder): StringBuilder

  23. def canEqual(other: Any): Boolean

    We insist we're only equal to other xml.

  24. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

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

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

  27. def companion: GenericCompanion[Iterable[A][A]]

    The factory companion object that builds instances of class Iterable.

  28. def copy(next: MetaData): UnprefixedAttribute

    returns a copy of this unprefixed attribute with the given next field@param next .

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

    [use case] Copies elements of this iterable collection to an array.

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

    Copies elements of this iterable collection to an array.

  31. def copyToArray(xs: Array[MetaData]): Unit

    [use case] Copies values of this iterable collection to an array.

  32. def copyToArray[B >: MetaData](xs: Array[B]): Unit

    Copies values of this iterable collection to an array.

  33. def copyToArray(xs: Array[MetaData], start: Int): Unit

    [use case] Copies values of this iterable collection to an array.

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

    Copies values of this iterable collection to an array.

  35. def copyToBuffer[B >: MetaData](dest: Buffer[B]): Unit

    Copies all elements of this iterable collection to a buffer.

  36. def count(p: (MetaData) ⇒ Boolean): Int

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

  37. def drop(n: Int): Iterable[MetaData]

    Selects all elements except first n ones.

  38. def dropRight(n: Int): Iterable[MetaData]

    Selects all elements except last n ones.

  39. def dropWhile(p: (MetaData) ⇒ Boolean): Iterable[MetaData]

    Drops longest prefix of elements that satisfy a predicate.

  40. def elements: Iterator[MetaData]

  41. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  42. def equals(other: Any): Boolean

    The equality method defined in AnyRef.

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

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

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

  45. def filterNot(p: (MetaData) ⇒ Boolean): Iterable[MetaData]

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

  46. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  47. def find(p: (MetaData) ⇒ Boolean): Option[MetaData]

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

  48. def first: MetaData

  49. def firstOption: Option[MetaData]

    None if iterable is empty.

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

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

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

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

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

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

  56. def forall(p: (MetaData) ⇒ Boolean): Boolean

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

  57. def foreach(f: (MetaData) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this iterable collection.

  58. def foreach[U](f: (MetaData) ⇒ U): Unit

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

  59. def genericBuilder[B]: Builder[B, Iterable[B]]

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

  60. def get(uri: String, scope: NamespaceBinding, key: String): Option[Seq[Node]]

    gets value of qualified (prefixed) attribute with given key.

  61. def get(uri: String, owner: Node, key: String): Option[Seq[Node]]

    same as get(uri, owner.

  62. def get(key: String): Option[Seq[Node]]

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

  63. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  64. def getNamespace(owner: Node): String

    if owner is the element of this metadata item, returns namespace

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

  66. def grouped(size: Int): Iterator[Iterable[MetaData]]

    Partitions elements in fixed size iterable collections.

  67. def hasDefiniteSize: Boolean

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

  68. def hasNext: Boolean

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

  70. def head: MetaData

    Selects the first element of this iterable collection.

  71. def headOption: Option[MetaData]

    Optionally selects the first element.

  72. def init: Iterable[MetaData]

    Selects all elements except the last.

  73. def isEmpty: Boolean

    Tests whether this iterable collection is empty.

  74. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  75. def isPrefixed: Boolean

  76. def isTraversableAgain: Boolean

    Tests whether this iterable collection can be repeatedly traversed.

  77. def iterator: Iterator[MetaData]

    Returns an iterator on attributes@return the new iterator

  78. val key: String

    returns key of this MetaData item

  79. def last: MetaData

    Selects the last element.

  80. def lastOption: Option[MetaData]

    Optionally selects the last element.

  81. def length(i: Int): Int

  82. def length: Int

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

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

  85. def max: MetaData

    [use case] Finds the largest element.

  86. def max[B >: MetaData](implicit cmp: Ordering[B]): MetaData

    Finds the largest element.

  87. def min: MetaData

    [use case] Finds the smallest element.

  88. def min[B >: MetaData](implicit cmp: Ordering[B]): MetaData

    Finds the smallest element.

  89. def mkString: String

    Displays all elements of this iterable collection in a string.

  90. def mkString(sep: String): String

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

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

  92. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  93. def newBuilder: Builder[MetaData, Iterable[MetaData]]

    The builder that builds instances of type Iterable[A]

  94. val next: MetaData

    returns Null or the next MetaData item

  95. def nonEmpty: Boolean

    Tests whether the iterable collection is not empty.

  96. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  97. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  98. def partition(p: (MetaData) ⇒ Boolean): (Iterable[MetaData], Iterable[MetaData])

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

  99. val pre: Null

  100. def prefixedKey: String

    Returns a String containing "prefix:key" if the first key is prefixed, and "key" otherwise.

  101. def product: Int

    [use case] Multiplies up the elements of this collection.

  102. def product[B >: MetaData](implicit num: Numeric[B]): B

    Multiplies up the elements of this collection.

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

  104. def reduceLeft[B >: MetaData](op: (B, MetaData) ⇒ B): B

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

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

  106. def reduceRight[B >: MetaData](op: (MetaData, B) ⇒ B): B

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

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

  108. def remove(namespace: String, scope: NamespaceBinding, key: String): MetaData

    no summary matey

  109. def remove(key: String): MetaData

    no summary matey

  110. def remove(namespace: String, owner: Node, key: String): MetaData

    no summary matey

  111. def repr: Iterable[MetaData]

    The collection of type iterable collection underlying this TraversableLike object.

  112. def reversed: List[MetaData]

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

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

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

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

  117. def size: Int

    The size of this iterable collection.

  118. def slice(from: Int, until: Int): Iterable[MetaData]

    Selects an interval of elements.

  119. def sliding[B >: MetaData](size: Int, step: Int): Iterator[Iterable[MetaData]]

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

  121. def span(p: (MetaData) ⇒ Boolean): (Iterable[MetaData], Iterable[MetaData])

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

  122. def splitAt(n: Int): (Iterable[MetaData], Iterable[MetaData])

    Splits this iterable collection into two at a given position.

  123. def strict_!=(other: Equality): Boolean

  124. def strict_==(other: Equality): Boolean

  125. def stringPrefix: String

    Defines the prefix of this object's toString representation.

  126. def sum: Int

    [use case] Sums up the elements of this collection.

  127. def sum[B >: MetaData](implicit num: Numeric[B]): B

    Sums up the elements of this collection.

  128. def synchronized[T0](arg0: T0): T0

  129. def tail: Iterable[MetaData]

    Selects all elements except the first.

  130. def take(n: Int): Iterable[MetaData]

    Selects first n elements.

  131. def takeRight(n: Int): Iterable[MetaData]

    Selects last n elements.

  132. def takeWhile(p: (MetaData) ⇒ Boolean): Iterable[MetaData]

    Takes longest prefix of elements that satisfy a predicate.

  133. def thisCollection: Iterable[MetaData]

    The underlying collection seen as an instance of Iterable.

  134. def toArray: Array[MetaData]

    [use case] Converts this iterable collection to an array.

  135. def toArray[B >: MetaData](implicit arg0: ClassManifest[B]): Array[B]

    Converts this iterable collection to an array.

  136. def toBuffer[B >: MetaData]: Buffer[B]

    Converts this iterable collection to a mutable buffer.

  137. def toCollection(repr: Iterable[MetaData]): Iterable[MetaData]

    A conversion from collections of type Repr to Iterable objects.

  138. def toIndexedSeq[B >: MetaData]: IndexedSeq[B]

    Converts this iterable collection to an indexed sequence.

  139. def toIterable: Iterable[MetaData]

    Converts this iterable collection to an iterable collection.

  140. def toIterator: Iterator[MetaData]

    Returns an Iterator over the elements in this iterable collection.

  141. def toList: List[MetaData]

    Converts this iterable collection to a list.

  142. def toMap[T, U](implicit ev: <:<[MetaData, (T, U)]): Map[T, U]

    Converts this iterable collection to a map.

  143. def toSeq: Seq[MetaData]

    Converts this iterable collection to a sequence.

  144. def toSet[B >: MetaData]: Set[B]

    Converts this iterable collection to a set.

  145. def toStream: Stream[MetaData]

    Converts this iterable collection to a stream.

  146. def toString(): String

    Converts this iterable collection to a string.

  147. def toString1(sb: StringBuilder): Unit

    Appends string representation of only this attribute to stringbuffer.

  148. def toString1(): String

  149. def toTraversable: Traversable[MetaData]

    Converts this iterable collection to an unspecified Traversable.

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

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

  152. val value: Seq[Node]

    returns value of this MetaData item

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

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

  154. def view: IterableView[MetaData, Iterable[MetaData]]

    Creates a non-strict view of this iterable collection.

  155. def wait(): Unit

  156. def wait(arg0: Long, arg1: Int): Unit

  157. def wait(arg0: Long): Unit

  158. def wellformed(scope: NamespaceBinding): Boolean

    no summary matey

  159. def withFilter(p: (MetaData) ⇒ Boolean): FilterMonadic[MetaData, Iterable[MetaData]]

    Creates a non-strict filter of this iterable collection.

  160. def xml_!=(other: Any): Boolean

  161. def xml_==(other: Any): Boolean

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

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

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

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

  166. def zipWithIndex: Iterable[(MetaData, Int)]

    [use case] Zips this iterable collection with its indices.

  167. def zipWithIndex[A1 >: MetaData, That](implicit bf: CanBuildFrom[Iterable[MetaData], (A1, Int), That]): That

    Zips this iterable collection with its indices.