Gets value of prefixed attribute with given key and namespace, null if not found
Gets value of unqualified (unprefixed) attribute with given key, null if not found
returns a copy of this MetaData item with next field set to argument.
if owner is the element of this metadata item, returns namespace
returns key of this MetaData item
returns Null or the next MetaData item
returns value of this MetaData item
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.
MetaData with new and updated attributes
a new MetaData instance that contains old, new and updated attributes
convenience method, same as apply(namespace, owner.scope, key)
.
convenience method, same as apply(namespace, owner.scope, key)
.
namespace uri of key
the element owning this attribute list
the attribute key
Returns a Map containing the attributes stored as key/value pairs.
Returns a Map containing the attributes stored as key/value pairs.
We insist we're only equal to other xml.Equality
implementors,
which heads off a lot of inconsistency up front.
filters this sequence of meta data
filters this sequence of meta data
gets value of qualified (prefixed) attribute with given key.
gets value of qualified (prefixed) attribute with given key.
namespace of key
a namespace scp (usually of the element owning this attribute list)
to be looked fore
value as Some[Seq[Node]] if key is found, None otherwise
same as get(uri, owner.scope, key)
same as get(uri, owner.scope, key)
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
value in Some(Seq[Node]) if key is found, None otherwise
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.
Returns an iterator on attributes
Returns an iterator on attributes
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.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
The
Attribute
trait defines the interface shared by both scala.xml.PrefixedAttribute and scala.xml.UnprefixedAttribute.1.0