org.jbind.xml.dom3.core
Class DomNodeList
java.lang.Object
org.jbind.xml.dom3.core.DomObject
org.jbind.xml.dom3.core.DomNodeList
- All Implemented Interfaces:
- IDomNodeList, IDomObject, org.w3c.dom.NodeList
- public class DomNodeList
- extends DomObject
- implements IDomNodeList
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomNodeList
public DomNodeList(DomNode anOwnerNode,
IDomDocument aDomDocument,
short[] anAllowedChildNodeTypes)
DomNodeList
public DomNodeList(IDomNodeList aDomNodeList,
boolean aDeep)
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()