same as this(key, value.get, next), or no attribute if value is None
same as this(key, Text(value), next), or no attribute if value is null
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
Forwards the call to next (because caller looks for prefixed attribute).
Forwards the call to next (because caller looks for prefixed attribute).
..
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
value as Seq[Node] if key is found, null otherwise
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 unprefixed attribute with the given next field
returns a copy of this unprefixed attribute with the given next field
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
if owner is the element of this metadata item, returns namespace
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 an iterator on attributes
Returns an iterator on attributes
returns key of this MetaData item
returns key of this MetaData item
returns Null or the next 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.
Appends string representation of only this attribute to stringbuffer.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
returns value of this MetaData item
returns value of this MetaData item
Unprefixed attributes have the null namespace, and no prefix field