FileDocCategorySizeDatePackage
UMLStringEnumeration.javaAPI DocExample1178Tue Dec 08 01:21:00 GMT 1998oisoft.togetherx.scriptapi.UML.enums

UMLStringEnumeration.java

/*----------------------------------------------------------------------------
Copyright (C) 1998 Object International Software GmbH
----------------------------------------------------------------------------*/
package oisoft.togetherx.scriptapi.UML.enums;

import java.util.Enumeration;

//------------------------------------------------------------------------------
/**
* Implemented typified enumeration for String
* @version  2.1.01  Thu Apr 02 19:15:21 1998
* @author   Andrei Ivanov                  
*/
public class UMLStringEnumeration implements Enumeration
{
  public UMLStringEnumeration(Enumeration e)
  {
    imp = e;
  }

  public String  getNextString()
  {
    if (imp != null)
      return (String) 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;
}
//------------------------------------------------------------------------------