org.tigris.gef.util
Class EnumerationComposite

java.lang.Object
  extended by org.tigris.gef.util.EnumerationComposite
All Implemented Interfaces:
java.io.Serializable, java.util.Enumeration

public class EnumerationComposite
extends java.lang.Object
implements java.util.Enumeration, java.io.Serializable

This class concatenates Enumerations. Successive calls to nextElement return elements from each Enumeration until that enumeration is exhausted.

See Also:
Serialized Form

Constructor Summary
EnumerationComposite()
           
EnumerationComposite(java.util.Enumeration e1)
           
EnumerationComposite(java.util.Enumeration e1, java.util.Enumeration e2)
           
EnumerationComposite(java.util.Enumeration e1, java.util.Enumeration e2, java.util.Enumeration e3)
           
 
Method Summary
 void addSub(java.util.Enumeration e)
          Concatenate the given Enumeration to the end of the receiving EnumerationComposite.
 void addSub(java.util.Vector v)
          Concatenate the elements() of the given Vector to the end of the receiving EnumerationComposite.
protected  void findNext()
          Internal function to find the element to return on the next call to nextElement().
 boolean hasMoreElements()
          Reply true iff this EnumerationComposite has more elements.
 java.lang.Object nextElement()
          Reply the next element, or raise an execption if there is none.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationComposite

public EnumerationComposite()

EnumerationComposite

public EnumerationComposite(java.util.Enumeration e1)

EnumerationComposite

public EnumerationComposite(java.util.Enumeration e1,
                            java.util.Enumeration e2)

EnumerationComposite

public EnumerationComposite(java.util.Enumeration e1,
                            java.util.Enumeration e2,
                            java.util.Enumeration e3)
Method Detail

addSub

public void addSub(java.util.Enumeration e)
Concatenate the given Enumeration to the end of the receiving EnumerationComposite.


addSub

public void addSub(java.util.Vector v)
Concatenate the elements() of the given Vector to the end of the receiving EnumerationComposite.


hasMoreElements

public boolean hasMoreElements()
Reply true iff this EnumerationComposite has more elements.

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Reply the next element, or raise an execption if there is none.

Specified by:
nextElement in interface java.util.Enumeration

findNext

protected void findNext()
Internal function to find the element to return on the next call to nextElement().