org.jbind.xml.dom3.core
Class DomNodeList

java.lang.Object
  extended byorg.jbind.xml.dom3.core.DomObject
      extended byorg.jbind.xml.dom3.core.DomNodeList
All Implemented Interfaces:
IDomNodeList, IDomObject, org.w3c.dom.NodeList

public class DomNodeList
extends DomObject
implements IDomNodeList


Field Summary
 
Fields inherited from class org.jbind.xml.dom3.core.DomObject
myOwnerDocument
 
Constructor Summary
DomNodeList(DomNode anOwnerNode, IDomDocument aDomDocument, short[] anAllowedChildNodeTypes)
           
DomNodeList(IDomNodeList aDomNodeList, boolean aDeep)
           
 
Method Summary
 void add(org.w3c.dom.Node aNode)
           
 void addAll(java.util.List aNodeList)
           
 java.util.List cloneNodeList()
           
 java.util.List getDefaultedNodeList()
           
 int getIndex(org.w3c.dom.Node aNode)
           
 int getLength()
           
 org.w3c.dom.Node getNextNode(org.w3c.dom.Node aNode)
          Gets the node after the specified node.
 org.w3c.dom.Node getNodeByClass(java.lang.Class aClass)
           
 int getNonDefaultedLength()
           
 org.w3c.dom.Node getPreviousNode(org.w3c.dom.Node aNode)
          Gets the node before the specified node.
 void insertNodeAt(int anIndex, org.w3c.dom.Node aNode)
           
 boolean isDefault()
           
 org.w3c.dom.Node item(int index)
           
 java.util.ListIterator iterNodes()
           
 java.util.ListIterator iterNodes(java.lang.String aNamespace, java.lang.String aName)
          Iterates the specified nodes.
 void removeAll()
           
 void removeNode(org.w3c.dom.Node aNode)
           
 void setDefaultTextContent(java.lang.String aString)
           
 
Methods inherited from class org.jbind.xml.dom3.core.DomObject
checkMutability, checkOwnerDocument, getOwnerDocument, isReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.dom3.types.IDomObject
getOwnerDocument, isReadOnly
 

Constructor Detail

DomNodeList

public DomNodeList(DomNode anOwnerNode,
                   IDomDocument aDomDocument,
                   short[] anAllowedChildNodeTypes)

DomNodeList

public DomNodeList(IDomNodeList aDomNodeList,
                   boolean aDeep)
Method Detail

getLength

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

getNonDefaultedLength

public int getNonDefaultedLength()
Specified by:
getNonDefaultedLength in interface IDomNodeList

isDefault

public boolean isDefault()
Specified by:
isDefault in interface IDomNodeList

item

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

getPreviousNode

public org.w3c.dom.Node getPreviousNode(org.w3c.dom.Node aNode)
Description copied from interface: IDomNodeList
Gets the node before the specified node.

Specified by:
getPreviousNode in interface IDomNodeList
Parameters:
aNode - (required).
Returns:
A node (optional).

getNextNode

public org.w3c.dom.Node getNextNode(org.w3c.dom.Node aNode)
Description copied from interface: IDomNodeList
Gets the node after the specified node.

Specified by:
getNextNode in interface IDomNodeList
Parameters:
aNode - (required).
Returns:
A node (optional).

insertNodeAt

public void insertNodeAt(int anIndex,
                         org.w3c.dom.Node aNode)
                  throws DomException
Specified by:
insertNodeAt in interface IDomNodeList
Throws:
DomException

add

public void add(org.w3c.dom.Node aNode)
Specified by:
add in interface IDomNodeList

removeAll

public void removeAll()
Specified by:
removeAll in interface IDomNodeList

removeNode

public void removeNode(org.w3c.dom.Node aNode)
                throws DomException
Specified by:
removeNode in interface IDomNodeList
Throws:
DomException

getIndex

public int getIndex(org.w3c.dom.Node aNode)
             throws DomException
Specified by:
getIndex in interface IDomNodeList
Throws:
DomException

iterNodes

public java.util.ListIterator iterNodes()
Specified by:
iterNodes in interface IDomNodeList

iterNodes

public java.util.ListIterator iterNodes(java.lang.String aNamespace,
                                        java.lang.String aName)
Description copied from interface: IDomNodeList
Iterates the specified nodes.

Specified by:
iterNodes in interface IDomNodeList
Parameters:
aNamespace - (optional). If null is specified then only nodes with no namespace are returned. If "*" is specified then all nodes of all namespace or with no namespace are returned. Otherwise all nodes with the corresponding namespace are returned.
aName - (required). If "*" is specified then the nodes are returned regardless of their (local) name. Otherwise they must have the corresponding (local) name.
Returns:
(required). An iterator of IDomNodes.

getNodeByClass

public org.w3c.dom.Node getNodeByClass(java.lang.Class aClass)
Specified by:
getNodeByClass in interface IDomNodeList

cloneNodeList

public java.util.List cloneNodeList()
Specified by:
cloneNodeList in interface IDomNodeList

addAll

public void addAll(java.util.List aNodeList)
Specified by:
addAll in interface IDomNodeList

setDefaultTextContent

public void setDefaultTextContent(java.lang.String aString)
Specified by:
setDefaultTextContent in interface IDomNodeList

getDefaultedNodeList

public java.util.List getDefaultedNodeList()