home *** CD-ROM | disk | FTP | other *** search
- package com.ms.xml.util;
-
- import java.util.Enumeration;
-
- public class EnumWrapper implements Enumeration {
- public static EnumWrapper emptyEnumeration = new EnumWrapper((Object)null);
- boolean done;
- Object object;
-
- public Object nextElement() {
- if (!this.done) {
- this.done = true;
- return this.object;
- } else {
- return null;
- }
- }
-
- public EnumWrapper(Object var1) {
- this.object = var1;
- this.done = false;
- }
-
- public boolean hasMoreElements() {
- return !this.done && this.object != null;
- }
- }
-