// generated from list.qiml

package com.jxml.quick.examples.memleak;
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_991894239312",var2);
		var2.access=new com.jxml.quick.access.QMALAccess();

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

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

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

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

		var7.addToFactory(var6);
		var6.addToFactory(var5);

		var5.addToFactory(var4);
		var4.addToFactory(var0);

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