Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.util

Class EnumerationComposite

com.gentleware.poseidon.util.EnumerationComposite

public class EnumerationComposite


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


 Attribute Summary
private Object  _nextElement
The next element to return from next(). 
private List  _subs
The enumerations being concatenated  
arrow_up
 

 Constructor Summary
public   EnumerationComposite()
 
public   EnumerationComposite(Iterator e1)
 
public   EnumerationComposite(Iterator e1, Iterator e2)
 
public   EnumerationComposite(Iterator e1, Iterator e2, Iterator e3)
 
arrow_up
 

 Method Summary
public void   addSub(Iterator e)
Concatenate the given Enumeration to the end of the receiving EnumerationComposite. 
public void   addSub(List 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 next(). 
public boolean   hasNext()
Reply true iff this EnumerationComposite has more elements. 
public Object   next()
Reply the next element, or raise an execption if there is none. 
public void   remove()
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 45
gentleware-imported-package-statement-line-number 32
 

 Attribute Detail

_nextElement

private Object _nextElement

The next element to return from next().  
arrow_up


_subs

private List _subs

The enumerations being concatenated  
arrow_up
 Constructor Detail

EnumerationComposite

public com.gentleware.poseidon.util.EnumerationComposite EnumerationComposite()

Returns:
arrow_up


EnumerationComposite

public com.gentleware.poseidon.util.EnumerationComposite EnumerationComposite(Iterator e1)

Parameters:
e1 -
Returns:
arrow_up


EnumerationComposite

public com.gentleware.poseidon.util.EnumerationComposite EnumerationComposite(Iterator e1, Iterator e2)

Parameters:
e1 -
e2 -
Returns:
arrow_up


EnumerationComposite

public com.gentleware.poseidon.util.EnumerationComposite EnumerationComposite(Iterator e1, Iterator e2, Iterator e3)

Parameters:
e1 -
e2 -
e3 -
Returns:
arrow_up
 Method Detail

addSub

public void addSub(Iterator e)


Concatenate the given Enumeration to the end of the receiving EnumerationComposite.  
Parameters:
e -
arrow_up


addSub

public void addSub(List v)


Concatenate the elements() of the given Vector to the end of the receiving EnumerationComposite.  
Parameters:
v -
arrow_up


findNext

protected void findNext()


Internal function to find the element to return on the next call to next().  
arrow_up


hasNext

public boolean hasNext()


Reply true iff this EnumerationComposite has more elements.  
Returns:
arrow_up


next

public Object next()


Reply the next element, or raise an execption if there is none.  
Returns:
arrow_up


remove

public void remove()

arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.