UnprefixedAttribute

scala.xml.UnprefixedAttribute
See theUnprefixedAttribute companion object
class UnprefixedAttribute(val key: String, val value: Seq[Node], next1: MetaData) extends Attribute

Unprefixed attributes have the null namespace, and no prefix field

Attributes

Companion
object
Graph
Supertypes

Members list

Value members

Constructors

def this(key: String, value: String, next: MetaData)

same as this(key, Text(value), next), or no attribute if value is null

same as this(key, Text(value), next), or no attribute if value is null

Attributes

def this(key: String, value: Option[Seq[Node]], next: MetaData)

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

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

Attributes

Concrete methods

override 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

Attributes

Returns

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

Definition Classes
override 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).

Attributes

Returns

..

Definition Classes
override def copy(next: MetaData): UnprefixedAttribute

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

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

Attributes

Definition Classes
final override def getNamespace(owner: Node): String

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

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

Attributes

Definition Classes

Inherited methods

final def ++[B >: MetaData](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def append(updates: MetaData, scope: NamespaceBinding): MetaData

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

Value parameters

updates

MetaData with new and updated attributes

Attributes

Returns

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

Inherited from:
MetaData
final def apply(namespace_uri: String, owner: Node, key: String): Seq[Node]

convenience method, same as apply(namespace, owner.scope, key).

convenience method, same as apply(namespace, owner.scope, key).

Value parameters

key

the attribute key

namespace_uri

namespace uri of key

owner

the element owning this attribute list

Attributes

Inherited from:
MetaData

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

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

Attributes

Inherited from:
MetaData

Attributes

Inherited from:
MetaData
override 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.

We insist we're only equal to other xml.Equality implementors, which heads off a lot of inconsistency up front.

Attributes

Definition Classes
Inherited from:
MetaData
def collect[B](pf: PartialFunction[MetaData, B]): CC[B]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps
def concat[B >: MetaData](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: MetaData](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def count(p: MetaData => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def drop(n: Int): C

Attributes

Inherited from:
IterableOps
def dropRight(n: Int): C

Attributes

Inherited from:
IterableOps
def dropWhile(p: MetaData => Boolean): C

Attributes

Inherited from:
IterableOps
override def empty: CC[A]

Attributes

Definition Classes
Inherited from:
IterableFactoryDefaults
override def equals(other: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Equality -> Equals -> Any
Inherited from:
Equality

Attributes

Inherited from:
IterableOnceOps
override def filter(f: MetaData => Boolean): MetaData

filters this sequence of meta data

filters this sequence of meta data

Attributes

Definition Classes
Inherited from:
MetaData

Attributes

Inherited from:
IterableOps
def find(p: MetaData => Boolean): Option[A]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: MetaData => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def flatten[B](implicit asIterable: MetaData => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def fold[A1 >: MetaData](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, MetaData) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (MetaData, B) => B): B

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: MetaData => U): Unit

Attributes

Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[MetaData]): CC[A]

Attributes

Inherited from:
IterableFactoryDefaults
final def get(uri: String, scope: NamespaceBinding, key: String): Option[Seq[Node]]

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

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

Value parameters

key

to be looked fore

scope

a namespace scp (usually of the element owning this attribute list)

uri

namespace of key

Attributes

Returns

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

Inherited from:
MetaData
final def get(uri: String, owner: Node, key: String): Option[Seq[Node]]

same as get(uri, owner.scope, key)

same as get(uri, owner.scope, key)

Attributes

Inherited from:
MetaData
final def get(key: String): Option[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

Attributes

Returns

value in Some(Seq[Node]) if key is found, None otherwise

Inherited from:
MetaData
def groupBy[K](f: MetaData => K): Map[K, C]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: MetaData => K)(f: MetaData => B): Map[K, CC[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: MetaData => K)(f: MetaData => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps
def grouped(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
MetaData
override 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. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.

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.

Attributes

Definition Classes
Equality -> Any
Inherited from:
Equality
def head: A

Attributes

Inherited from:
IterableOps
def headOption: Option[A]

Attributes

Inherited from:
IterableOps
def init: C

Attributes

Inherited from:
IterableOps
def inits: Iterator[C]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps
override def isPrefixed: Boolean

Attributes

Definition Classes
Inherited from:
Attribute
override def isTraversableAgain: Boolean

Attributes

Definition Classes
Inherited from:
IterableOps

Attributes

Inherited from:
Iterable
override def iterator: Iterator[MetaData]

Returns an iterator on attributes

Returns an iterator on attributes

Attributes

Definition Classes
Inherited from:
Attribute
def knownSize: Int

Attributes

Inherited from:
IterableOnce
def last: A

Attributes

Inherited from:
IterableOps
def lastOption: Option[A]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
Iterable
def length(i: Int): Int

Attributes

Inherited from:
MetaData
def length: Int

Attributes

Inherited from:
MetaData
def map[B](f: MetaData => B): CC[B]

Attributes

Inherited from:
IterableOps
def max[B >: MetaData](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: MetaData => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: MetaData => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: MetaData](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def min[B >: MetaData](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: MetaData => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: MetaData => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: MetaData](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
protected def newSpecificBuilder: Builder[A, CC[A]]

Attributes

Inherited from:
IterableFactoryDefaults

Attributes

Inherited from:
IterableOnceOps
def partition(p: MetaData => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: MetaData => Either[A1, A2]): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps

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

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

Attributes

Inherited from:
MetaData
def product[B >: MetaData](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: MetaData](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: MetaData](op: (B, MetaData) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: MetaData](op: (B, MetaData) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: MetaData](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: MetaData](op: (MetaData, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: MetaData](op: (MetaData, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
override def remove(namespace: String, scope: NamespaceBinding, key: String): MetaData

Attributes

Definition Classes
Inherited from:
Attribute
override def remove(key: String): MetaData

Attributes

Definition Classes
Inherited from:
Attribute
final def remove(namespace: String, owner: Node, key: String): MetaData

Attributes

Inherited from:
MetaData

Attributes

Inherited from:
MetaData
protected def reversed: Iterable[A]

Attributes

Inherited from:
IterableOnceOps
def scan[B >: MetaData](z: B)(op: (B, B) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, MetaData) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: (MetaData, B) => B): CC[B]

Attributes

Inherited from:
IterableOps
override def size: Int

Attributes

Definition Classes
Inherited from:
Attribute

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
def slice(from: Int, until: Int): C

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def sliding(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
def span(p: MetaData => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (C, C)

Attributes

Definition Classes
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[MetaData, S]): S

Attributes

Inherited from:
IterableOnce
def strict_!=(other: Equality): Boolean

Attributes

Inherited from:
Equality
override def strict_==(other: Equality): Boolean

Attributes

Definition Classes
Inherited from:
MetaData
def sum[B >: MetaData](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tail: C

Attributes

Inherited from:
IterableOps
def tails: Iterator[C]

Attributes

Inherited from:
IterableOps
def take(n: Int): C

Attributes

Inherited from:
IterableOps
def takeRight(n: Int): C

Attributes

Inherited from:
IterableOps
def takeWhile(p: MetaData => Boolean): C

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: MetaData => U): C

Attributes

Definition Classes
Inherited from:
IterableOps
def to[C1](factory: Factory[MetaData, C1]): C1

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: MetaData]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def toList: List[A]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: MetaData <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[A]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: MetaData]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
MetaData -> Iterable -> Any
Inherited from:
MetaData
def toVector: Vector[A]

Attributes

Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: MetaData => Iterable[B]): CC[CC[B]]

Attributes

Inherited from:
IterableOps
def unzip[A1, A2](implicit asPair: MetaData => (A1, A2)): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: MetaData => (A1, A2, A3)): (CC[A1], CC[A2], CC[A3])

Attributes

Inherited from:
IterableOps
def view: View[A]

Attributes

Inherited from:
IterableOps
override def wellformed(scope: NamespaceBinding): Boolean

Attributes

Definition Classes
Inherited from:
Attribute

Attributes

Inherited from:
IterableOps
final def xml_!=(other: Any): Boolean

Attributes

Inherited from:
Equality
final def xml_==(other: Any): Boolean

Attributes

Inherited from:
Equality
def zip[B](that: IterableOnce[B]): CC[(A, B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: MetaData, B](that: Iterable[B], thisElem: A1, thatElem: B): CC[(A1, B)]

Attributes

Inherited from:
IterableOps
def zipWithIndex: CC[(A, Int)]

Attributes

Inherited from:
IterableOps

Deprecated and Inherited methods

def ++:[B >: MetaData](that: IterableOnce[B]): CC[B]

Attributes

Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
final def /:[B](z: B)(op: (B, MetaData) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (MetaData, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, MetaData) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: MetaData](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def repr: C

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[A]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[A]

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
def view(from: Int, until: Int): View[A]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps

Concrete fields

override val key: String

returns key of this MetaData item

returns key of this MetaData item

Attributes

override val next: MetaData

returns Null or the next MetaData item

returns Null or the next MetaData item

Attributes

final override val pre: Null
override val value: Seq[Node]

returns value of this MetaData item

returns value of this MetaData item

Attributes