abstract class MetaData extends AbstractIterable[MetaData] with Iterable[MetaData] with Equality with Serializable
This class represents an attribute and at the same time a linked list of attributes. Every instance of this class is either
- an instance of
UnprefixedAttribute key,value
or - an instance of
PrefixedAttribute namespace_prefix,key,value
or Null, the empty attribute list.
Namespace URIs are obtained by using the namespace scope of the element
owning this attribute (see getNamespace
).
- Alphabetic
- By Inheritance
- MetaData
- Serializable
- Serializable
- Equality
- AbstractIterable
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- AbstractTraversable
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MetaData()
Type Members
-
type
Self = collection.Iterable[MetaData]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Abstract Value Members
-
abstract
def
apply(namespace_uri: String, scp: NamespaceBinding, k: String): collection.Seq[Node]
Gets value of prefixed attribute with given key and namespace, null if not found
Gets value of prefixed attribute with given key and namespace, null if not found
- namespace_uri
namespace uri of key
- scp
a namespace scp (usually of the element owning this attribute list)
- k
to be looked for
- returns
value as Seq[Node] if key is found, null otherwise
-
abstract
def
apply(key: String): collection.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
- returns
value as Seq[Node] if key is found, null otherwise
-
abstract
def
copy(next: MetaData): MetaData
returns a copy of this MetaData item with next field set to argument.
-
abstract
def
getNamespace(owner: Node): String
if owner is the element of this metadata item, returns namespace
- abstract def isPrefixed: Boolean
-
abstract
def
iterator: collection.Iterator[MetaData]
- Definition Classes
- IterableLike → GenIterableLike
-
abstract
def
key: String
returns key of this MetaData item
-
abstract
def
next: MetaData
returns Null or the next MetaData item
- abstract def remove(namespace: String, scope: NamespaceBinding, key: String): MetaData
- abstract def remove(key: String): MetaData
-
abstract
def
toString1(sb: StringBuilder): Unit
- Attributes
- protected
-
abstract
def
value: collection.Seq[Node]
returns value of this MetaData item
- abstract def wellformed(scope: NamespaceBinding): Boolean
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++[B >: MetaData, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: MetaData, That](that: collection.Traversable[B])(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: MetaData, That](that: collection.TraversableOnce[B])(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike
-
def
/:[B](z: B)(op: (B, MetaData) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: (MetaData, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, MetaData) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
append(updates: MetaData, scope: NamespaceBinding = TopScope): 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
-
final
def
apply(namespace_uri: String, owner: Node, key: String): collection.Seq[Node]
convenience method, same as
apply(namespace, owner.scope, key)
.convenience method, same as
apply(namespace, owner.scope, key)
.- namespace_uri
namespace uri of key
- owner
the element owning this attribute list
- key
the attribute key
-
def
asAttrMap: Map[String, String]
Returns a Map containing the attributes stored as key/value pairs.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def basisForHashCode: collection.Seq[Any]
- def buildString(sb: StringBuilder): StringBuilder
-
def
canEqual(other: Any): Boolean
We insist we're only equal to other
xml.Equality
implementors, which heads off a lot of inconsistency up front. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collect[B, That](pf: PartialFunction[MetaData, B])(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[MetaData, B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[collection.Iterable]
- Definition Classes
- Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
copyToArray[B >: MetaData](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: MetaData](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: MetaData](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: MetaData](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: (MetaData) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
drop(n: Int): collection.Iterable[MetaData]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): collection.Iterable[MetaData]
- Definition Classes
- IterableLike
-
def
dropWhile(p: (MetaData) ⇒ Boolean): collection.Iterable[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Equality → Equals → AnyRef → Any
-
def
exists(p: (MetaData) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(f: (MetaData) ⇒ Boolean): MetaData
filters this sequence of meta data
filters this sequence of meta data
- Definition Classes
- MetaData → TraversableLike → GenTraversableLike
-
def
filterNot(p: (MetaData) ⇒ Boolean): collection.Iterable[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: (MetaData) ⇒ Boolean): Option[MetaData]
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: (MetaData) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: (MetaData) ⇒ GenTraversableOnce[B]): collection.Iterable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: MetaData](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, MetaData) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: (MetaData, B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: (MetaData) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: (MetaData) ⇒ U): Unit
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
genericBuilder[B]: Builder[B, collection.Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
-
final
def
get(uri: String, scope: NamespaceBinding, key: String): Option[collection.Seq[Node]]
gets value of qualified (prefixed) attribute with given key.
gets value of qualified (prefixed) attribute with given key.
- uri
namespace of key
- scope
a namespace scp (usually of the element owning this attribute list)
- key
to be looked fore
- returns
value as Some[Seq[Node]] if key is found, None otherwise
-
final
def
get(uri: String, owner: Node, key: String): Option[collection.Seq[Node]]
same as get(uri, owner.scope, key)
-
final
def
get(key: String): Option[collection.Seq[Node]]
Gets value of unqualified (unprefixed) attribute with given key, None if not found
Gets value of unqualified (unprefixed) attribute with given key, None if not found
- returns
value in Some(Seq[Node]) if key is found, None otherwise
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
groupBy[K](f: (MetaData) ⇒ K): Map[K, collection.Iterable[MetaData]]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): collection.Iterator[collection.Iterable[MetaData]]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- 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.
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. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.
- Definition Classes
- Equality → AnyRef → Any
-
def
head: MetaData
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
headOption: Option[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
init: collection.Iterable[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
inits: collection.Iterator[collection.Iterable[MetaData]]
- Definition Classes
- TraversableLike
-
def
isEmpty: Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
last: MetaData
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lastOption: Option[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
- def length(i: Int): Int
- def length: Int
-
def
map[B, That](f: (MetaData) ⇒ B)(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
max[B >: MetaData](implicit cmp: Ordering[B]): MetaData
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: (MetaData) ⇒ B)(implicit cmp: Ordering[B]): MetaData
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: MetaData](implicit cmp: Ordering[B]): MetaData
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: (MetaData) ⇒ B)(implicit cmp: Ordering[B]): MetaData
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: Builder[MetaData, collection.Iterable[MetaData]]
- Attributes
- protected[this]
- Definition Classes
- GenericTraversableTemplate → HasNewBuilder
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
par: ParIterable[MetaData]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[MetaData, ParIterable[MetaData]]
- Attributes
- protected[this]
- Definition Classes
- TraversableLike → Parallelizable
-
def
partition(p: (MetaData) ⇒ Boolean): (collection.Iterable[MetaData], collection.Iterable[MetaData])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
prefixedKey: String
Returns a String containing "prefix:key" if the first key is prefixed, and "key" otherwise.
-
def
product[B >: MetaData](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: MetaData](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: MetaData](op: (B, MetaData) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: MetaData](op: (B, MetaData) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: MetaData](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: MetaData](op: (MetaData, B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: MetaData](op: (MetaData, B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
- final def remove(namespace: String, owner: Node, key: String): MetaData
-
def
repr: collection.Iterable[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[MetaData]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
sameElements[B >: MetaData](that: GenIterable[B]): Boolean
- Definition Classes
- IterableLike → GenIterableLike
-
def
scan[B >: MetaData, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, MetaData) ⇒ B)(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: (MetaData, B) ⇒ B)(implicit bf: CanBuildFrom[collection.Iterable[MetaData], B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
- Annotations
- @migration
- Migration
(Changed in version 2.9.0) The behavior of
scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
-
def
seq: collection.Iterable[MetaData]
- Definition Classes
- Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): collection.Iterable[MetaData]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): collection.Iterator[collection.Iterable[MetaData]]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): collection.Iterator[collection.Iterable[MetaData]]
- Definition Classes
- IterableLike
-
def
span(p: (MetaData) ⇒ Boolean): (collection.Iterable[MetaData], collection.Iterable[MetaData])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (collection.Iterable[MetaData], collection.Iterable[MetaData])
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
strict_!=(other: Equality): Boolean
- Definition Classes
- Equality
- def strict_==(other: Equality): Boolean
-
def
stringPrefix: String
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
sum[B >: MetaData](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: collection.Iterable[MetaData]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
tails: collection.Iterator[collection.Iterable[MetaData]]
- Definition Classes
- TraversableLike
-
def
take(n: Int): collection.Iterable[MetaData]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): collection.Iterable[MetaData]
- Definition Classes
- IterableLike
-
def
takeWhile(p: (MetaData) ⇒ Boolean): collection.Iterable[MetaData]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: collection.Iterable[MetaData]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, MetaData, Col[MetaData]]): Col[MetaData]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: MetaData](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[B >: MetaData]: Buffer[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: collection.Iterable[MetaData]): collection.Iterable[MetaData]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
toIndexedSeq: collection.immutable.IndexedSeq[MetaData]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: collection.Iterable[MetaData]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: collection.Iterator[MetaData]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[MetaData]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[MetaData, (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSeq: collection.Seq[MetaData]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSet[B >: MetaData]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: collection.immutable.Stream[MetaData]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- MetaData → TraversableLike → AnyRef → Any
-
def
toString1(): String
- Attributes
- protected
-
def
toTraversable: collection.Traversable[MetaData]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[MetaData]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transpose[B](implicit asTraversable: (MetaData) ⇒ GenTraversableOnce[B]): collection.Iterable[collection.Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
- Annotations
- @migration
- Migration
(Changed in version 2.9.0)
transpose
throws anIllegalArgumentException
if collections are not uniformly sized.
-
def
unzip[A1, A2](implicit asPair: (MetaData) ⇒ (A1, A2)): (collection.Iterable[A1], collection.Iterable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: (MetaData) ⇒ (A1, A2, A3)): (collection.Iterable[A1], collection.Iterable[A2], collection.Iterable[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
view(from: Int, until: Int): IterableView[MetaData, collection.Iterable[MetaData]]
- Definition Classes
- IterableLike → TraversableLike
-
def
view: IterableView[MetaData, collection.Iterable[MetaData]]
- Definition Classes
- IterableLike → TraversableLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withFilter(p: (MetaData) ⇒ Boolean): FilterMonadic[MetaData, collection.Iterable[MetaData]]
- Definition Classes
- TraversableLike → FilterMonadic
-
final
def
xml_!=(other: Any): Boolean
- Definition Classes
- Equality
-
final
def
xml_==(other: Any): Boolean
- Definition Classes
- Equality
-
def
zip[A1 >: MetaData, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[collection.Iterable[MetaData], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: MetaData, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[collection.Iterable[MetaData], (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: MetaData, That](implicit bf: CanBuildFrom[collection.Iterable[MetaData], (A1, Int), That]): That
- Definition Classes
- IterableLike → GenIterableLike