// generated from map.qiml
package com.jxml.quick.examples.map;
import com.jxml.quick.*;
import com.jxml.quick.engine.*;
import com.jxml.quick.recycle.*;
import com.jxml.quick.access.*;
import com.jxml.quick.qmap.*;
import com.jxml.quick.tf.*;
import org.xml.sax.*;

public class CreateTest extends QSchemaFactory
{
	protected static QDoc schema=null;

	public static QDoc createSchema()
		throws SAXException, QE, QPE, ClassNotFoundException, 
			InstantiationException, IllegalAccessException
	{
		if (schema!=null)
			return schema;
		return (new CreateTest()).create();
	}

	public QDoc create()
		throws SAXException, QE, QPE, ClassNotFoundException, 
			InstantiationException, IllegalAccessException
	{
		if (schema!=null)
			return schema;
		QSoftDocHash sdh=Quick.schemaHash;
		QDoc rv=sdh.get("map.qiml");
		if (rv!=null)
		{
			schema=rv;
			return schema;
		}
		synchronized(this.getClass())
		{
			if (schema!=null)
				return schema;
			rv=build();
			schema=sdh.add(rv);
			if (schema!=rv)
				return schema;
			QRefHash.add(schema);
			return schema;
		}
	}

	protected QDoc build()
		throws SAXException, QE, QPE, ClassNotFoundException, 
			InstantiationException, IllegalAccessException
	{
		QDocImpl doc=new QDocImpl();
		QIML rootCE=new QIML();
		
		rootCE.SYSTEM="file:map.dtd";
		doc.setRoot(rootCE);
		QElementFactory var0=new QElementFactory();
		doc.setId("goals",var0);
		var0.tagName="goals";
		QClassWrapper var1=new QClassWrapper();
		var0.targetFactory=var1;
		var1.wClassName="com.jxml.quick.examples.map.Goals";
		QCElementFactory var2=new QCElementFactory();
		doc.setId("genid_993639288390",var2);
		var2.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var3=new QElementFactory();
		doc.setId("genid_993639288391",var3);
		var3.tagName="_attributes";
		var3.targetFactory=new com.jxml.quick.tf.QMALTF();
		var3.addToFactory(var2);
		var2.addToFactory(var0);
		QCElementFactory var4=new QCElementFactory();
		doc.setId("genid_993639288392",var4);
		QFieldAccess var5=new QFieldAccess();
		var4.access=var5;
		var5.field="map";
		QElementFactory var6=new QElementFactory();
		doc.setId("map",var6);
		var6.tagName="map";
		QClassWrapper var7=new QClassWrapper();
		var6.targetFactory=var7;
		var7.wClassName="java.util.HashMap";
		QCElementFactory var8=new QCElementFactory();
		doc.setId("genid_993639288393",var8);
		var8.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var9=new QElementFactory();
		doc.setId("genid_993639288394",var9);
		var9.tagName="_attributes";
		var9.targetFactory=new com.jxml.quick.tf.QMALTF();
		var9.addToFactory(var8);
		var8.addToFactory(var6);
		QCElementFactory var10=new QCElementFactory();
		doc.setId("genid_993639288395",var10);
		var10.optional=true;
		var10.repeating=true;
		var10.access=new com.jxml.quick.qmap.QMapAccess();
		QElementFactory var11=new QElementFactory();
		doc.setId("entry",var11);
		var11.tagName="entry";
		QClassWrapper var12=new QClassWrapper();
		var11.targetFactory=var12;
		var12.wClassName="com.jxml.quick.qmap.QMapEntry";
		QCElementFactory var13=new QCElementFactory();
		doc.setId("genid_993639288396",var13);
		var13.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var14=new QElementFactory();
		doc.setId("genid_993639288397",var14);
		var14.tagName="_attributes";
		var14.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var15=new QCElementFactory();
		doc.setId("genid_993639288398",var15);
		var15.optional=true;
		QFieldAccess var16=new QFieldAccess();
		var15.access=var16;
		var16.field="key";
		QElementFactory var17=new QElementFactory();
		doc.setId("entry.att.key",var17);
		var17.tagName="key";
		var17.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var17.addToFactory(var15);
		var15.addToFactory(var14);
		var14.addToFactory(var13);
		var13.addToFactory(var11);
		QCElementFactory var18=new QCElementFactory();
		doc.setId("genid_993639288399",var18);
		QFieldAccess var19=new QFieldAccess();
		var18.access=var19;
		var19.field="value";
		QElementFactory var20=new QElementFactory();
		doc.setId("list",var20);
		var20.tagName="list";
		QClassWrapper var21=new QClassWrapper();
		var20.targetFactory=var21;
		var21.wClassName="java.util.ArrayList";
		QCElementFactory var22=new QCElementFactory();
		doc.setId("genid_993639288400",var22);
		var22.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var23=new QElementFactory();
		doc.setId("genid_993639288401",var23);
		var23.tagName="_attributes";
		var23.targetFactory=new com.jxml.quick.tf.QMALTF();
		var23.addToFactory(var22);
		var22.addToFactory(var20);
		QCElementFactory var24=new QCElementFactory();
		doc.setId("genid_993639288402",var24);
		var24.optional=true;
		var24.repeating=true;
		var24.access=new com.jxml.quick.access.QListAccess();
		QElementFactory var25=new QElementFactory();
		doc.setId("item",var25);
		var25.tagName="item";
		var25.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		QCElementFactory var26=new QCElementFactory();
		doc.setId("genid_993639288403",var26);
		var26.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var27=new QElementFactory();
		doc.setId("genid_993639288404",var27);
		var27.tagName="_attributes";
		var27.targetFactory=new com.jxml.quick.tf.QMALTF();
		var27.addToFactory(var26);
		var26.addToFactory(var25);
		var25.addToFactory(var24);
		var24.addToFactory(var20);
		var20.addToFactory(var18);
		var18.addToFactory(var11);
		var11.addToFactory(var10);
		var10.addToFactory(var6);
		var6.addToFactory(var4);
		var4.addToFactory(var0);

		var0.addToFactory(rootCE);
		doc.setSchema(Quick.QIMLSchema());
		doc.setKey("map.qiml");
		doc.pool=new QContextPool(doc);
		return doc;
	}
}		

