public class TinyAttributeMap extends java.lang.Object implements AttributeMap
| Constructor and Description |
|---|
TinyAttributeMap(TinyTree tree,
int element) |
| Modifier and Type | Method and Description |
|---|---|
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) |
AttributeInfo |
itemAt(int index)
Get the AttributeInfo with a given index.
|
java.util.Iterator<AttributeInfo> |
iterator() |
int |
size()
Return the number of attributes in the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic TinyAttributeMap(TinyTree tree, int element)
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 java.util.Iterator<AttributeInfo> iterator()
iterator in interface java.lang.Iterable<AttributeInfo>public AttributeInfo itemAt(int index)
AttributeMapitemAt in interface AttributeMapindex - the index position, zero-based. The order of index positions
of attributes in an attribute map reflects document order.asList().get(index). However, if the tree has been modified,
then the index values of the attributes may not be contiguous.Copyright (c) 2004-2021 Saxonica Limited. All rights reserved.