// generated from QuickTest.qiml

package com.jxml.quick.examples.content2;
import com.jxml.quick.*;
import com.jxml.quick.engine.*;
import com.jxml.quick.recycle.*;
import com.jxml.quick.access.*;
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("QuickTest.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();
		QCElementFactory rootCE=new QIML();
		doc.setRoot(rootCE);

		QElementFactory var0=new QElementFactory();
		var0.tagName="test";
		doc.setId("test",var0);
		QClassWrapper var1=new QClassWrapper();
		var0.targetFactory=var1;
		var1.wClassName="com.jxml.quick.examples.content2.Test";
		QCElementFactory var2=new QCElementFactory();
		doc.setId("genid_991892908217",var2);
		var2.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var3=new QElementFactory();
		var3.tagName="_attributes";
		doc.setId("genid_991892908218",var3);
		var3.targetFactory=new com.jxml.quick.tf.QMALTF();

		var3.addToFactory(var2);
		var2.addToFactory(var0);
		QCMSelFactory var4=new QCMSelFactory();
		doc.setId("genid_991892908219",var4);
		QListFieldAccess var5=new QListFieldAccess();
		var4.access=var5;
		var5.field="listField";
		QCElementFactory var6=new QCElementFactory();
		doc.setId("genid_991892908220",var6);

		QElementFactory var7=new QElementFactory();
		var7.tagName="childElemId2";
		doc.setId("childElemId2",var7);
		QClassWrapper var8=new QClassWrapper();
		var7.targetFactory=var8;
		var8.wClassName="com.jxml.quick.examples.content2.ChildElemId2";
		QCElementFactory var9=new QCElementFactory();
		doc.setId("genid_991892908221",var9);
		var9.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var10=new QElementFactory();
		var10.tagName="_attributes";
		doc.setId("genid_991892908222",var10);
		var10.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var11=new QCElementFactory();
		doc.setId("genid_991892908223",var11);
		var11.optional=true;
		var11.access=new com.jxml.quick.engine.QIdAccess();

		QElementFactory var12=new QElementFactory();
		var12.tagName="id";
		doc.setId("childElemId2.att.id",var12);
		var12.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var12.addToFactory(var11);
		var11.addToFactory(var10);

		var10.addToFactory(var9);
		var9.addToFactory(var7);

		var7.addToFactory(var6);
		var6.addToFactory(var4);
		QCMSeqFactory var13=new QCMSeqFactory();
		doc.setId("genid_991892908224",var13);
		QCElementFactory var14=new QCElementFactory();
		doc.setId("genid_991892908225",var14);

		QElementFactory var15=new QElementFactory();
		var15.tagName="childElemId";
		doc.setId("childElemId",var15);
		QClassWrapper var16=new QClassWrapper();
		var15.targetFactory=var16;
		var16.wClassName="com.jxml.quick.examples.content2.ChildElemId";
		QCElementFactory var17=new QCElementFactory();
		doc.setId("genid_991892908226",var17);
		var17.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var18=new QElementFactory();
		var18.tagName="_attributes";
		doc.setId("genid_991892908227",var18);
		var18.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var19=new QCElementFactory();
		doc.setId("genid_991892908228",var19);
		var19.optional=true;
		var19.access=new com.jxml.quick.engine.QIdAccess();

		QElementFactory var20=new QElementFactory();
		var20.tagName="id";
		doc.setId("childElemId.att.id",var20);
		var20.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var20.addToFactory(var19);
		var19.addToFactory(var18);

		var18.addToFactory(var17);
		var17.addToFactory(var15);

		var15.addToFactory(var14);
		var14.addToFactory(var13);
		QCElementFactory var21=new QCElementFactory();
		doc.setId("genid_991892908229",var21);

		QElementFactory var22=new QElementFactory();
		var22.tagName="childElemRef";
		doc.setId("childElemRef",var22);
		QClassWrapper var23=new QClassWrapper();
		var22.targetFactory=var23;
		var23.wClassName="com.jxml.quick.examples.content2.ChildElemRef";
		QCElementFactory var24=new QCElementFactory();
		doc.setId("genid_991892908230",var24);
		var24.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var25=new QElementFactory();
		var25.tagName="_attributes";
		doc.setId("genid_991892908231",var25);
		var25.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var26=new QCElementFactory();
		doc.setId("genid_991892908232",var26);
		var26.optional=true;
		QFieldAccess var27=new QFieldAccess();
		var26.access=var27;
		var27.field="elem";

		QElementFactory var28=new QElementFactory();
		var28.tagName="childelem";
		doc.setId("childElemRef.att.childelem",var28);
		var28.isIdRef=true;
		var28.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var28.addToFactory(var26);
		var26.addToFactory(var25);

		var25.addToFactory(var24);
		var24.addToFactory(var22);

		var22.addToFactory(var21);
		var21.addToFactory(var13);
		QCMSelFactory var29=new QCMSelFactory();
		doc.setId("genid_991892908233",var29);
		var29.repeating=true;
		QListFieldAccess var30=new QListFieldAccess();
		var29.access=var30;
		var30.field="secondList";
		QCElementFactory var31=new QCElementFactory();
		doc.setId("genid_991892908234",var31);
		QElementFactory var32=var7;
		var32.addToFactory(var31);
		var31.addToFactory(var29);
		QCElementFactory var33=new QCElementFactory();
		doc.setId("genid_991892908235",var33);

		QElementFactory var34=new QElementFactory();
		var34.tagName="childElemId3";
		doc.setId("childElemId3",var34);
		QClassWrapper var35=new QClassWrapper();
		var34.targetFactory=var35;
		var35.wClassName="com.jxml.quick.examples.content2.ChildElemId3";
		QCElementFactory var36=new QCElementFactory();
		doc.setId("genid_991892908236",var36);
		var36.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var37=new QElementFactory();
		var37.tagName="_attributes";
		doc.setId("genid_991892908237",var37);
		var37.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var38=new QCElementFactory();
		doc.setId("genid_991892908238",var38);
		var38.optional=true;
		var38.access=new com.jxml.quick.engine.QIdAccess();

		QElementFactory var39=new QElementFactory();
		var39.tagName="id";
		doc.setId("childElemId3.att.id",var39);
		var39.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var39.addToFactory(var38);
		var38.addToFactory(var37);

		var37.addToFactory(var36);
		var36.addToFactory(var34);

		var34.addToFactory(var33);
		var33.addToFactory(var29);
		var29.addToFactory(var13);
		var13.addToFactory(var4);
		var4.addToFactory(var0);

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