public class ElementDeclEnumeration implements >Enumeration { // Constructors public ElementDeclEnumeration(Enumeration elemDecls); public ElementDeclEnumeration(Element e); // Methods public boolean hasMoreElements(); public Object nextElement(); }
A simple Enumeration for iterating over Element declarations. Returns the XML-DATA specification for each element. This is DTD information represented in an XML Object Model. See Specification for XML-Data for details.
Also see ElementDecl, Name
public ElementDeclEnumeration(Enumeration elemDecls);Creates new enumerator for enumerating over all of the children of the given root node.
public ElementDeclEnumeration(Element e);Creates new enumerator for enumerating over all of the children of the given root node.
public boolean hasMoreElements();Return whether or not there are any more matching elements.
Return Value
Returns true if the next call to nextElement will return non null result.
public Object nextElement();Return the next matching element.
Return Value
Returns Element or null of there are no more matching elements.