/*----------------------------------------------------------------------------
Copyright (C) 1998 Object International Software GmbH
----------------------------------------------------------------------------*/
package oisoft.togetherx.scriptapi.UML.enums;
import java.util.Enumeration;
import oisoft.togetherx.scriptapi.UML.UMLModel;
//------------------------------------------------------------------------------
/**
* Implemented typified enumeration for UMLModel
* @version 2.1.01 Thu Apr 02 19:15:21 1998
* @author Andrei Ivanov
*/
public class UMLModelEnumeration implements Enumeration
{
public UMLModelEnumeration(Enumeration e)
{
imp = e;
}
public UMLModel getNextUMLModel()
{
if (imp != null)
return (UMLModel) imp.nextElement();
else
return null;
}
public Object nextElement()
{
if (imp != null)
return imp.nextElement();
else
return null;
}
public boolean hasMoreElements()
{
if (imp != null)
return imp.hasMoreElements();
else
return false;
}
private Enumeration imp;
}
//------------------------------------------------------------------------------ |