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

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