home *** CD-ROM | disk | FTP | other *** search
/ Online Today 2000 January / Onto0100.iso / pc / JAVA / MSJAVX86.EXE / xmldso.cab / com / ms / xml / om / ElementDeclEnumeration.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  719 b   |  25 lines

  1. package com.ms.xml.om;
  2.  
  3. import java.util.Enumeration;
  4.  
  5. public class ElementDeclEnumeration implements Enumeration {
  6.    Enumeration elemDecls;
  7.  
  8.    public Object nextElement() {
  9.       Element var1 = (Element)this.elemDecls.nextElement();
  10.       return var1.toSchema();
  11.    }
  12.  
  13.    public ElementDeclEnumeration(Enumeration var1) {
  14.       this.elemDecls = var1;
  15.    }
  16.  
  17.    public ElementDeclEnumeration(Element var1) {
  18.       this.elemDecls = var1 != null ? var1.getElements() : null;
  19.    }
  20.  
  21.    public boolean hasMoreElements() {
  22.       return this.elemDecls.hasMoreElements();
  23.    }
  24. }
  25.