// generated from list.qiml

package com.jxml.quick.examples.repeat;
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("list.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="list";
		doc.setId("list",var0);
		QClassWrapper var1=new QClassWrapper();
		var0.targetFactory=var1;
		var1.wClassName="java.util.ArrayList";
		QCElementFactory var2=new QCElementFactory();
		doc.setId("genid_991895631383",var2);
		var2.access=new com.jxml.quick.access.QMALAccess();

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

		var3.addToFactory(var2);
		var2.addToFactory(var0);
		QCMSelFactory var4=new QCMSelFactory();
		doc.setId("genid_991895631385",var4);
		var4.optional=true;
		var4.repeating=true;
		var4.access=new com.jxml.quick.access.QListAccess();
		QCElementFactory var5=new QCElementFactory();
		doc.setId("genid_991895631386",var5);

		QElementFactory var6=new QElementFactory();
		var6.tagName="item";
		doc.setId("item",var6);
		var6.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");
		QCElementFactory var7=new QCElementFactory();
		doc.setId("genid_991895631387",var7);
		var7.access=new com.jxml.quick.access.QMALAccess();

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

		var8.addToFactory(var7);
		var7.addToFactory(var6);

		var6.addToFactory(var5);
		var5.addToFactory(var4);
		QCElementFactory var9=new QCElementFactory();
		doc.setId("genid_991895631389",var9);

		QElementFactory var10=new QElementFactory();
		var10.tagName="qdom";
		doc.setId("qdom",var10);
		var10.wild=true;
		var10.isBimodal=true;
		var10.isCData=true;
		QClassWrapper var11=new QClassWrapper();
		var10.targetFactory=var11;
		var11.wClassName="com.jxml.quick.QDOMEleImpl";
		QCElementFactory var12=new QCElementFactory();
		doc.setId("genid_991895631390",var12);
		var12.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var13=new QElementFactory();
		var13.tagName="_attributes";
		doc.setId("genid_991895631391",var13);
		var13.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var14=new QCElementFactory();
		doc.setId("genid_991895631392",var14);
		var14.optional=true;
		var14.repeating=true;
		var14.access=new com.jxml.quick.access.QDOMAttAccess();

		QElementFactory var15=new QElementFactory();
		var15.tagName="qdom.att.ANY";
		doc.setId("qdom.att.ANY",var15);
		var15.wild=true;
		QDataClass var16=new QDataClass();
		var15.targetFactory=var16;
		var16.wClassName="com.jxml.quick.QDOMAtt";

		var15.addToFactory(var14);
		var14.addToFactory(var13);

		var13.addToFactory(var12);
		var12.addToFactory(var10);
		QCMSelFactory var17=new QCMSelFactory();
		doc.setId("genid_991895631393",var17);
		var17.optional=true;
		var17.repeating=true;
		QListPropertyAccess var18=new QListPropertyAccess();
		var17.access=var18;
		var18.property="QElements";
		QCElementFactory var19=new QCElementFactory();
		doc.setId("genid_991895631394",var19);
		QElementFactory var20=var6;
		var20.addToFactory(var19);
		var19.addToFactory(var17);
		QCElementFactory var21=new QCElementFactory();
		doc.setId("genid_991895631395",var21);
		QElementFactory var22=var10;
		var22.addToFactory(var21);
		var21.addToFactory(var17);
		var17.addToFactory(var10);

		var10.addToFactory(var9);
		var9.addToFactory(var4);
		var4.addToFactory(var0);

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