This class represents an attribute and at the same time a linked list of attributes. Every instance of this class is either
This class represents an attribute and at the same time a linked list of attributes. Every instance of this class is either
- an instance of
UnprefixedAttribute key,value
or - an instance of
PrefixedAttribute namespace_prefix,key,value
or - `Null, the empty attribute list.
Namespace URIs are obtained by using the namespace scope of the element
owning this attribute (see getNamespace
).
- Companion
- object
Value members
Abstract methods
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
- Returns
value as Seq[Node] if key is found, null otherwise
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
- Value Params
- k
to be looked for
- namespace_uri
namespace uri of key
- scp
a namespace scp (usually of the element owning this attribute list)
- Returns
value as Seq[Node] if key is found, null otherwise
returns a copy of this MetaData item with next field set to argument.
returns a copy of this MetaData item with next field set to argument.
Concrete methods
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.
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.
- Value Params
- updates
MetaData with new and updated attributes
- Returns
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)
.
- Value Params
- key
the attribute key
- namespace_uri
namespace uri of key
- owner
the element owning this attribute list
Returns a Map containing the attributes stored as key/value pairs.
Returns a Map containing the attributes stored as key/value pairs.
filters this sequence of meta data
filters this sequence of meta data
- Definition Classes
- IterableOps -> IterableOnceOps
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
- Returns
value in Some(Seq[Node]) if key is found, None otherwise
gets value of qualified (prefixed) attribute with given key.
gets value of qualified (prefixed) attribute with given key.
- Value Params
- key
to be looked fore
- scope
a namespace scp (usually of the element owning this attribute list)
- uri
namespace of key
- Returns
value as Some[Seq[Node]] if key is found, None otherwise
Inherited methods
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOnceOps
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.
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.
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOps
Deprecated and Inherited methods
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- Iterable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps