// generated from a2xy.qiml

package com.jxml.quick.examples.convert;
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 CreateA2XY 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 CreateA2XY()).create();
	}

	public QDoc create()
		throws SAXException, QE, QPE, ClassNotFoundException, InstantiationException, IllegalAccessException
	{
		if (schema!=null)
			return schema;
		QSoftDocHash sdh=Quick.schemaHash;
		QDoc rv=sdh.get("a2xy.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="A";
		doc.setId("A",var0);
		QClassWrapper var1=new QClassWrapper();
		var0.targetFactory=var1;
		var1.wClassName="com.jxml.quick.examples.convert.RootA2XY";
		QCElementFactory var2=new QCElementFactory();
		doc.setId("genid_991907138527",var2);
		var2.access=new com.jxml.quick.access.QMALAccess();

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

		var3.addToFactory(var2);
		var2.addToFactory(var0);
		QCElementFactory var4=new QCElementFactory();
		doc.setId("genid_991907138529",var4);
		var4.optional=true;
		var4.repeating=true;
		QListFieldAccess var5=new QListFieldAccess();
		var4.access=var5;
		var5.field="as";

		QElementFactory var6=new QElementFactory();
		var6.tagName="a";
		doc.setId("a",var6);
		QClassWrapper var7=new QClassWrapper();
		var6.targetFactory=var7;
		var7.wClassName="com.jxml.quick.examples.convert.A2XY";
		QCElementFactory var8=new QCElementFactory();
		doc.setId("genid_991907138530",var8);
		var8.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var9=new QElementFactory();
		var9.tagName="_attributes";
		doc.setId("genid_991907138531",var9);
		var9.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var10=new QCElementFactory();
		doc.setId("genid_991907138532",var10);
		var10.defaultValue="0";
		var10.optional=true;
		QFieldAccess var11=new QFieldAccess();
		var10.access=var11;
		var11.field="x";

		QElementFactory var12=new QElementFactory();
		var12.tagName="x";
		doc.setId("a.att.x",var12);
		var12.targetFactory=new QPropertyEditor("java.lang.Integer","sun.beans.editors.IntEditor");

		var12.addToFactory(var10);
		var10.addToFactory(var9);
		QCElementFactory var13=new QCElementFactory();
		doc.setId("genid_991907138533",var13);
		var13.defaultValue="0";
		var13.optional=true;
		QFieldAccess var14=new QFieldAccess();
		var13.access=var14;
		var14.field="y";

		QElementFactory var15=new QElementFactory();
		var15.tagName="y";
		doc.setId("a.att.y",var15);
		var15.targetFactory=new QPropertyEditor("java.lang.Integer","sun.beans.editors.IntEditor");

		var15.addToFactory(var13);
		var13.addToFactory(var9);

		var9.addToFactory(var8);
		var8.addToFactory(var6);
		QCElementFactory var16=new QCElementFactory();
		doc.setId("genid_991907138534",var16);
		var16.optional=true;
		var16.repeating=true;
		QListFieldAccess var17=new QListFieldAccess();
		var16.access=var17;
		var17.field="as";
		QElementFactory var18=var6;
		var18.addToFactory(var16);
		var16.addToFactory(var6);

		var6.addToFactory(var4);
		var4.addToFactory(var0);

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