scala.xml

trait Attribute

[source: scala/xml/Attribute.scala]

trait Attribute
extends MetaData
Direct Known Subclasses:
PrefixedAttribute, UnprefixedAttribute

Value Summary
abstract val key : java.lang.String
returns key of this MetaData item
abstract val next : MetaData
returns Null or the next MetaData item
abstract val value : Seq[Node]
returns value of this MetaData item
Method Summary
abstract def apply (namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Seq[Node]
Gets value of prefixed attribute with given key and namespace, null if not found
abstract def apply (key : java.lang.String) : Seq[Node]
Gets value of unqualified (unprefixed) attribute with given key, null if not found
abstract def copy (next : MetaData) : Attribute
returns a copy of this MetaData item with next field set to argument.
abstract def equals1 (m : MetaData) : Boolean
shallow equals method
abstract def getNamespace (owner : Node) : java.lang.String
if owner is the element of this metadata item, returns namespace
abstract def isPrefixed : Boolean
abstract def remove (namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : MetaData
abstract def remove (key : java.lang.String) : MetaData
abstract def toString1 (sb : StringBuilder) : Unit
abstract def wellformed (scope : NamespaceBinding) : Boolean
Methods inherited from MetaData
append, apply, containedIn1, hasNext, length, length, equals, iterator, size, filter, map, get, get, get, toString1, toString, buildString, remove
Methods inherited from Iterable
companion
Methods inherited from IterableLike
thisCollection, toCollection, elements, foreach, forall, exists, find, isEmpty, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, view, view, first, firstOption, projection
Methods inherited from GenericTraversableTemplate
newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableLike
repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toSeq, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter
Methods inherited from AnyRef
getClass, hashCode, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
abstract val key : java.lang.String
returns key of this MetaData item
Overrides
MetaData.key

abstract val value : Seq[Node]
returns value of this MetaData item
Overrides
MetaData.value

abstract val next : MetaData
returns Null or the next MetaData item
Overrides
MetaData.next

Method Details
abstract def apply(key : java.lang.String) : Seq[Node]
Gets value of unqualified (unprefixed) attribute with given key, null if not found
Parameters
key -
Returns
value as Seq[Node] if key is found, null otherwise
Overrides
MetaData.apply

abstract def apply(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Seq[Node]
Gets value of prefixed attribute with given key and namespace, null if not found
Parameters
namespace_uri - namespace uri of key
scp - a namespace scp (usually of the element owning this attribute list)
key - to be looked fore
Returns
value as Seq[Node] if key is found, null otherwise
Overrides
MetaData.apply

abstract def copy(next : MetaData) : Attribute
returns a copy of this MetaData item with next field set to argument.
Parameters
next - ...
Returns
...
Overrides
MetaData.copy

abstract def remove(key : java.lang.String) : MetaData
Parameters
key - ...
Returns
...
Overrides
MetaData.remove

abstract def remove(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : MetaData
Parameters
namespace - ...
scope - ...
key - ...
Returns
...
Overrides
MetaData.remove

abstract def isPrefixed : Boolean
Overrides
MetaData.isPrefixed

abstract def getNamespace(owner : Node) : java.lang.String
if owner is the element of this metadata item, returns namespace
Overrides
MetaData.getNamespace

abstract def wellformed(scope : NamespaceBinding) : Boolean
Parameters
scope - ...
Returns
true iff ...
Overrides
MetaData.wellformed

abstract def equals1(m : MetaData) : Boolean
shallow equals method
Overrides
MetaData.equals1

abstract def toString1(sb : StringBuilder) : Unit
Overrides
MetaData.toString1