home *** CD-ROM | disk | FTP | other *** search
- package com.ms.xml.parser;
-
- import com.ms.xml.om.Element;
- import com.ms.xml.util.Atom;
- import com.ms.xml.util.Name;
- import java.util.Hashtable;
-
- class Context {
- // $FF: renamed from: e com.ms.xml.om.Element
- Element field_0;
- Name tagName;
- int type;
- // $FF: renamed from: ed com.ms.xml.parser.ElementDecl
- ElementDecl field_1;
- Context parent;
- int state;
- boolean matched;
- boolean preserveWS;
- boolean lastWasWS;
- Atom nameSpace;
- Atom defaultNameSpace;
- Hashtable spaceTable;
-
- void reset(Element var1, Name var2, int var3, boolean var4, Atom var5, Hashtable var6) {
- this.field_1 = null;
- this.tagName = var2;
- this.parent = null;
- this.type = var3;
- this.state = 0;
- this.field_0 = var1;
- this.preserveWS = var4;
- this.nameSpace = var5;
- this.defaultNameSpace = var5;
- this.lastWasWS = false;
- if (var6 != null) {
- this.spaceTable = (Hashtable)var6.clone();
- } else {
- Object var7 = null;
- }
- }
-
- Context(Element var1, Name var2, int var3, boolean var4, Atom var5, Hashtable var6) {
- this.field_0 = var1;
- this.tagName = var2;
- this.type = var3;
- this.preserveWS = var4;
- this.nameSpace = var5;
- this.defaultNameSpace = var5;
- this.lastWasWS = false;
- if (var6 != null) {
- this.spaceTable = (Hashtable)var6.clone();
- }
-
- }
-
- final void addNameSpace(Atom var1, Atom var2) {
- if (this.spaceTable == null) {
- this.spaceTable = new Hashtable();
- }
-
- this.spaceTable.put(var1, var2);
- }
-
- final Atom findNameSpace(Atom var1) {
- if (var1 == null) {
- return null;
- } else {
- return this.spaceTable == null ? null : (Atom)this.spaceTable.get(var1);
- }
- }
- }
-