|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.lists.AbstractSequence gnu.lists.TreeList gnu.xml.NodeTree
public class NodeTree
Use to represent a Document or Document Fragment, in the XML DOM sense. More compact than traditional DOM, since it uses many fewer objects.
Field Summary |
---|
Fields inherited from class gnu.lists.TreeList |
---|
attrStart, BEGIN_ATTRIBUTE_LONG, BEGIN_DOCUMENT, data, docStart, END_DOCUMENT, END_GROUP_LONG, END_GROUP_SHORT, gapEnd, gapStart, INT_FOLLOWS, objects, oindex, POSITION_PAIR_FOLLOWS, PROCESSING_INSTRUCTION |
Constructor Summary | |
---|---|
NodeTree()
|
Method Summary | |
---|---|
int |
getId()
Get/create a new unique number. |
SeqPosition |
getIteratorAtPos(int ipos)
|
static NodeTree |
make()
|
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. |
void |
writeObject(java.lang.Object v)
If v is a node, make a copy of it. |
void |
writePosition(AbstractSequence seq,
int ipos)
Consume a single position pair. |
Methods inherited from class gnu.lists.AbstractSequence |
---|
add, add, addAll, addAll, addPos, compare, compare, contains, containsAll, copyPos, elements, endPos, equals, equals, fill, fill, fillPosRange, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIterator, getIterator, getLowBound, getSize, gotoChildrenStart, gotoParent, hasPrevious, indexOf, isAfterPos, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextIndex, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, set, setPosNext, setPosPrevious, startPos, subList, subSequence, subSequencePos, toArray, toArray, unsupported |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeTree()
Method Detail |
---|
public void writePosition(AbstractSequence seq, int ipos)
PositionConsumer
writePosition
in interface PositionConsumer
writePosition
in class TreeList
public void writeObject(java.lang.Object v)
writeObject
in interface Consumer
writeObject
in class TreeList
public int nextPos(int position)
AbstractSequence
nextPos
in class TreeList
public static NodeTree make()
public int getId()
public int stableCompare(AbstractSequence other)
AbstractSequence
stableCompare
in class AbstractSequence
public SeqPosition getIteratorAtPos(int ipos)
getIteratorAtPos
in class AbstractSequence
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 java.lang.Object typedValue(int ipos)
public java.lang.String posTarget(int ipos)
public java.lang.String toString()
toString
in class AbstractSequence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |