Gets value of prefixed attribute with given key and namespace, null if not found
Gets value of prefixed attribute with given key and namespace, null if not found
namespace uri of key
a namespace scp (usually of the element owning this attribute list)
to be looked for
value as Seq[Node] if key is found, null otherwise
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
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.
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)
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 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.
This class represents an attribute and at the same time a linked list of attributes. Every instance of this class is either
UnprefixedAttribute key,value
orPrefixedAttribute namespace_prefix,key,value
orNull, the empty attribute list.
Namespace URIs are obtained by using the namespace scope of the element owning this attribute (see
getNamespace
).Copyright 2008 Google Inc. All Rights Reserved.