public class EmptyAttributeMap extends java.lang.Object implements AttributeMap
Modifier and Type | Method and Description |
---|---|
AttributeMap |
apply(java.util.function.Function<AttributeInfo,AttributeInfo> mapper) |
AttributeInfo |
get(NodeName name)
Get the attribute with a given name, if it exists
|
AttributeInfo |
get(java.lang.String uri,
java.lang.String local)
Get the attribute with a given name, if it exists
|
AttributeInfo |
getByFingerprint(int fingerprint,
NamePool namePool) |
static EmptyAttributeMap |
getInstance() |
java.util.Iterator<AttributeInfo> |
iterator() |
AttributeMap |
put(AttributeInfo att)
Replace or add an attribute, to create a new AttributeMap
|
AttributeMap |
remove(NodeName name)
Remove an existing attribute, to create a new AttributeMap
|
int |
size()
Return the number of attributes in the map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static EmptyAttributeMap getInstance()
public int size()
size
in interface AttributeMap
public AttributeInfo get(NodeName name)
AttributeMap
get
in interface AttributeMap
name
- the name of the required attributepublic AttributeInfo get(java.lang.String uri, java.lang.String local)
AttributeMap
get
in interface AttributeMap
uri
- the namespace part of the name of the required attributelocal
- the local part of the name of the required attributepublic AttributeInfo getByFingerprint(int fingerprint, NamePool namePool)
getByFingerprint
in interface AttributeMap
public AttributeMap put(AttributeInfo att)
AttributeMap
put
in interface AttributeMap
att
- the attribute to be added or replacedpublic AttributeMap remove(NodeName name)
AttributeMap
remove
in interface AttributeMap
name
- the name of the attribute to be removed (if it exists)public java.util.Iterator<AttributeInfo> iterator()
iterator
in interface java.lang.Iterable<AttributeInfo>
public AttributeMap apply(java.util.function.Function<AttributeInfo,AttributeInfo> mapper)
apply
in interface AttributeMap
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.