electric.xml
Class Attributes

java.lang.Object
  extended byelectric.xml.Nodes
      extended byelectric.xml.Attributes
All Implemented Interfaces:
java.util.Enumeration

public final class Attributes
extends Nodes

Attributes is an enumeration over a collection of attributes. To iterate through the collection in a typesafe way, use current(), first() and next().

Author:
webMethods

Field Summary
 
Fields inherited from class electric.xml.Nodes
current, list
 
Constructor Summary
Attributes(NodeList list)
          Construct an Attributes associated with the specified node list.
 
Method Summary
 Attribute current()
          Return the current Attribute, or null if there is none.
 Attribute first()
          Move to the first Attribute and return it, or null if there is none.
 Attribute next()
          Return the current Attribute and then advance to the next one if present.
 
Methods inherited from class electric.xml.Nodes
currentNode, firstNode, getNodeList, hasMoreElements, nextElement, nextNode, remove, reset, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attributes

public Attributes(NodeList list)
Construct an Attributes associated with the specified node list.

Parameters:
list - The list of Attribute nodes.
Method Detail

current

public Attribute current()
Return the current Attribute, or null if there is none.


first

public Attribute first()
Move to the first Attribute and return it, or null if there is none.


next

public Attribute next()
Return the current Attribute and then advance to the next one if present.



copyright© 2001-2004 by webMethods All Rights Reserved.