public class NodeTree extends TreeList
attrStart, BEGIN_ATTRIBUTE_LONG, BEGIN_ATTRIBUTE_LONG_SIZE, BEGIN_DOCUMENT, BEGIN_ELEMENT_LONG, BEGIN_ELEMENT_SHORT, BEGIN_ELEMENT_SHORT_INDEX_MAX, BEGIN_ENTITY, BEGIN_ENTITY_SIZE, data, docStart, DOCUMENT_URI, END_ATTRIBUTE_SIZE, END_DOCUMENT, END_ELEMENT_LONG, END_ELEMENT_SHORT, END_ENTITY, gapEnd, gapStart, INT_FOLLOWS, MAX_CHAR_SHORT, objects, oindex, POSITION_PAIR_FOLLOWS, PROCESSING_INSTRUCTION
noInts
Constructor and Description |
---|
NodeTree() |
Modifier and Type | Method and Description |
---|---|
int |
ancestorAttribute(int ipos,
java.lang.String namespace,
java.lang.String name)
Look for matching attribute in ancestor or self.
|
gnu.kawa.io.Path |
baseUriOfPos(int pos,
boolean resolveRelative)
Return of the base-uri property, if known, of the node at pos.
|
int |
getAttribute(int parent,
java.lang.String namespaceURI,
java.lang.String localName)
Find named attribute.
|
int |
getAttributeI(int parent,
java.lang.String namespaceURI,
java.lang.String localName)
Find named attribute.
|
int |
getId()
Get/create a new unique number.
|
SeqPosition |
getIteratorAtPos(int ipos) |
int |
lookupID(java.lang.String name)
Look for an element with matching ID.
|
static NodeTree |
make() |
void |
makeIDtableIfNeeded() |
int |
nextPos(int position)
Return the next position following the argument.
|
int |
posFirstChild(int ipos) |
boolean |
posHasAttributes(int ipos) |
boolean |
posIsDefaultNamespace(int ipos,
java.lang.String namespaceURI) |
java.lang.String |
posLocalName(int ipos) |
java.lang.String |
posLookupNamespaceURI(int ipos,
java.lang.String prefix) |
java.lang.String |
posLookupPrefix(int ipos,
java.lang.String namespaceURI) |
java.lang.String |
posNamespaceURI(int ipos) |
java.lang.String |
posPrefix(int ipos) |
java.lang.String |
posTarget(int ipos)
Get the target of a process-instruction.
|
int |
stableCompare(AbstractSequence other)
This is used for the XML concept of "document order".
|
java.lang.String |
toString() |
java.lang.Object |
typedValue(int ipos)
Return the type-value of the node at the specified position.
|
append, append, append, beginEntity, clear, compare, consume, consumeIRange, consumeNext, consumePosRange, createPos, createRelativePos, documentUriOfPos, dump, dump, dump, endAttribute, endDocument, endElement, endEntity, ensureSpace, find, firstAttributePos, firstChildPos, get, getAttributeCount, getIndexDifference, getIntN, getLongN, getNextKind, getNextKindI, getNextTypeObject, getPosNext, getPosNextInt, getPosPrevious, gotoAttributesStart, gotoAttributesStart, gotoChildrenStart, hashCode, hasNext, ignoring, isEmpty, nextDataIndex, nextIndex, nextMatching, nextNodeIndex, parentOrEntityI, parentOrEntityPos, parentPos, posToDataIndex, reserveObjects, setAttributeName, setElementName, setIntN, size, startAttribute, startAttribute, startDocument, startElement, startElement, statistics, statistics, stringValue, stringValue, stringValue, toString, write, write, write, write, writeBoolean, writeByte, writeCDATA, writeComment, writeComment, writeDocumentUri, writeDouble, writeFloat, writeInt, writeIntForce32, writeJoiner, writeLong, writeObject, writePosition, writePosition, writeProcessingInstruction, writeProcessingInstruction
add, add, addAll, addAll, addPos, asImmutable, badRank, boundedHash, checkCanWrite, checkRank, compare, compare, consume, contains, containsAll, copyPos, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, endPos, equals, equals, fill, fill, fillPosRange, firstChildPos, fromEndIndex, get, get, get, get, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getCharRaw, getContainingSequenceSize, getDoubleRaw, getElementKind, getFloatRaw, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIterator, getLongRaw, getLowBound, getNextTypeName, getRaw, getRowMajor, getShortRaw, getSize, getSize, gotoChildrenStart, gotoParent, hasPrevious, indexOf, isAfterPos, iterator, lastIndexOf, listIterator, listIterator, nextIndex, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setAt, setBuffer, setPosNext, setPosPrevious, setRaw, startPos, subList, subSequence, subSequencePos, toArray, toArray, unsupported, unsupportedException
public int nextPos(int position)
AbstractSequence
public static NodeTree make()
public int getId()
public int stableCompare(AbstractSequence other)
AbstractSequence
stableCompare
in class AbstractSequence<java.lang.Object>
public SeqPosition getIteratorAtPos(int ipos)
getIteratorAtPos
in class AbstractSequence<java.lang.Object>
public java.lang.String posNamespaceURI(int ipos)
public java.lang.String posPrefix(int ipos)
public java.lang.String posLocalName(int ipos)
public boolean posIsDefaultNamespace(int ipos, java.lang.String namespaceURI)
public java.lang.String posLookupNamespaceURI(int ipos, java.lang.String prefix)
public java.lang.String posLookupPrefix(int ipos, java.lang.String namespaceURI)
public int posFirstChild(int ipos)
public boolean posHasAttributes(int ipos)
public int getAttribute(int parent, java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- need not be interned,
or null which matches any namespacelocalName
- need not be interned,
or null which matches any local namepublic int getAttributeI(int parent, java.lang.String namespaceURI, java.lang.String localName)
namespaceURI
- an interned String or null which matches any namespacelocalName
- an interned String, or null which matches any local namepublic java.lang.Object typedValue(int ipos)
public java.lang.String posTarget(int ipos)
public int ancestorAttribute(int ipos, java.lang.String namespace, java.lang.String name)
namespace
- namespaceURI (interned) of required attributename
- localName(interned) of required attributepublic gnu.kawa.io.Path baseUriOfPos(int pos, boolean resolveRelative)
public java.lang.String toString()
toString
in class AbstractSequence<java.lang.Object>
public void makeIDtableIfNeeded()
public int lookupID(java.lang.String name)
xml:id
are recognized has having the is-id
property.
Assumes makeIDtableIfNeeded has been called at soem point.