public class LargeAttributeMap extends java.lang.Object implements AttributeMap
| Constructor and Description |
|---|
LargeAttributeMap(java.util.List<AttributeInfo> atts) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AttributeInfo> |
asList()
Get the contents of the AttributeMap as a list of
AttributeInfo objects. |
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) |
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.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic LargeAttributeMap(java.util.List<AttributeInfo> atts)
public int size()
size in interface AttributeMappublic AttributeInfo get(NodeName name)
AttributeMapget in interface AttributeMapname - the name of the required attributepublic AttributeInfo get(java.lang.String uri, java.lang.String local)
AttributeMapget in interface AttributeMapuri - 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 AttributeMappublic AttributeMap put(AttributeInfo att)
AttributeMapput in interface AttributeMapatt - the attribute to be added or replacedpublic AttributeMap remove(NodeName name)
AttributeMapremove in interface AttributeMapname - 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 java.util.List<AttributeInfo> asList()
AttributeMapAttributeInfo objects.
The order of the returned list must be consistent with document order, with
the order of the attribute axis, and with position-based retrieval of individual
AttributeInfo objects; multiple calls are not required to return the
same list, but they must be consistent in their ordering.
Modifying the returned list has no effect on the AttributeMap
asList in interface AttributeMappublic java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004-2020 Saxonica Limited.