org.enhydra.xml.xmlc.dom.generic
Class ContainedNodeEnum
java.lang.Object
|
+--org.enhydra.xml.xmlc.dom.generic.ContainedNodeEnum
- All Implemented Interfaces:
- Enumeration
- public class ContainedNodeEnum
- extends Object
- implements Enumeration
Enumeration over the nodes contained by another node. This provides a way
of find traversing standard children, attributes and document type entity
and notation nodes in the same way.
Method Summary |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
Object |
nextElement()
Returns the next element of this enumeration |
Node |
nextNode()
Returns the next node of this enumeration, or null if no more. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final int NONE
- Types of contained nodes to enumerate. This is both a bit set
and values that define the order contained nodes are traversed.
CHILDREN
public static final int CHILDREN
ATTRIBUTES
public static final int ATTRIBUTES
ENTITIES
public static final int ENTITIES
NOTATIONS
public static final int NOTATIONS
ALL
public static final int ALL
ContainedNodeEnum
public ContainedNodeEnum(Node parent,
int filterSet)
- Constructor with filter for node types
ContainedNodeEnum
public ContainedNodeEnum(Node parent)
- Constructor for enumerating all nodes types
hasMoreElements
public boolean hasMoreElements()
- Tests if this enumeration contains more elements.
- Specified by:
hasMoreElements
in interface Enumeration
nextNode
public Node nextNode()
throws NoSuchElementException
- Returns the next node of this enumeration, or null if no more.
nextElement
public Object nextElement()
throws NoSuchElementException
- Returns the next element of this enumeration
- Specified by:
nextElement
in interface Enumeration
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.