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.
a new MetaData instance that contains old, new and updated attributes
Gets value of unqualified (unprefixed) attribute with given key, null if not found
Gets value of prefixed attribute with given key and namespace, null if not found
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.
returns a copy of this MetaData item with next field set to argument.
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
if owner is the element of this metadata item, returns namespace
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 key of this MetaData item
returns Null or the next MetaData item
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.
returns value of this MetaData item
Essentially, every method in here is a dummy, returning Zero[T]. It provides a backstop for the unusual collection defined by MetaData, sort of a linked list of tails.
1.0