org.exist.dom
Class NodeIDSet

java.lang.Object
  extended byorg.exist.dom.NodeSet
      extended byorg.exist.dom.NodeIDSet
All Implemented Interfaces:
org.w3c.dom.NodeList

public class NodeIDSet
extends NodeSet


Field Summary
protected  java.util.ArrayList list
           
protected  it.unimi.dsi.fastutil.ObjectAVLTreeSet set
           
 
Fields inherited from class org.exist.dom.NodeSet
ANCESTOR, DESCENDANT, EMPTY_SET, FOLLOWING, PRECEDING
 
Constructor Summary
NodeIDSet()
           
 
Method Summary
 void add(DocumentImpl doc, long nodeId)
           
 void add(org.w3c.dom.Node node)
           
 void add(NodeProxy node)
           
 void addAll(org.w3c.dom.NodeList other)
           
 void addAll(NodeSet other)
           
 boolean contains(DocumentImpl doc, long nodeId)
           
 boolean contains(NodeProxy proxy)
           
 NodeProxy get(DocumentImpl doc, long nodeId)
           
 NodeProxy get(int pos)
           
 NodeProxy get(NodeProxy p)
           
 int getLast()
           
 int getLength()
           
 org.w3c.dom.Node item(int pos)
           
 java.util.Iterator iterator()
           
 int position(NodeImpl node)
           
 int position(NodeProxy proxy)
           
 void remove(NodeProxy node)
           
 void set(int position, DocumentImpl doc, long nodeId)
           
 
Methods inherited from class org.exist.dom.NodeSet
contains, getAncestors, getChildren, getChildren, getContextNodes, getDescendants, getDescendants, getDescendants, getParents, getRange, getSiblings, hasIndex, intersection, nodeHasParent, nodeHasParent, nodeHasParent, nodeHasParent, parentWithChild, parentWithChild, parentWithChild, parentWithChild, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected java.util.ArrayList list

set

protected it.unimi.dsi.fastutil.ObjectAVLTreeSet set
Constructor Detail

NodeIDSet

public NodeIDSet()
Method Detail

add

public void add(NodeProxy node)
Overrides:
add in class NodeSet

add

public void add(DocumentImpl doc,
                long nodeId)
Overrides:
add in class NodeSet

add

public void add(org.w3c.dom.Node node)
Overrides:
add in class NodeSet

addAll

public void addAll(org.w3c.dom.NodeList other)
Overrides:
addAll in class NodeSet

addAll

public void addAll(NodeSet other)
Specified by:
addAll in class NodeSet

set

public void set(int position,
                DocumentImpl doc,
                long nodeId)

remove

public void remove(NodeProxy node)
Overrides:
remove in class NodeSet

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.NodeList
Specified by:
getLength in class NodeSet

item

public org.w3c.dom.Node item(int pos)
Specified by:
item in interface org.w3c.dom.NodeList
Specified by:
item in class NodeSet

get

public NodeProxy get(DocumentImpl doc,
                     long nodeId)
Specified by:
get in class NodeSet

get

public NodeProxy get(int pos)
Specified by:
get in class NodeSet

get

public NodeProxy get(NodeProxy p)
Specified by:
get in class NodeSet

contains

public boolean contains(NodeProxy proxy)
Specified by:
contains in class NodeSet

contains

public boolean contains(DocumentImpl doc,
                        long nodeId)
Specified by:
contains in class NodeSet

iterator

public java.util.Iterator iterator()
Specified by:
iterator in class NodeSet

position

public int position(NodeImpl node)

position

public int position(NodeProxy proxy)

getLast

public int getLast()


Copyright (C) Wolfgang Meier. All rights reserved.