// generated from xy2a.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 CreateXY2A 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 CreateXY2A()).create();
	}

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

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

		var3.addToFactory(var2);
		var2.addToFactory(var0);
		QCMSeqFactory var4=new QCMSeqFactory();
		doc.setId("genid_991904892599",var4);
		var4.optional=true;
		var4.repeating=true;
		QListFieldAccess var5=new QListFieldAccess();
		var4.access=var5;
		var5.field="xys";
		QCElementFactory var6=new QCElementFactory();
		doc.setId("genid_991904892600",var6);

		QElementFactory var7=new QElementFactory();
		var7.tagName="x";
		doc.setId("x",var7);
		var7.targetFactory=new QPropertyEditor("java.lang.Integer","sun.beans.editors.IntEditor");
		QCElementFactory var8=new QCElementFactory();
		doc.setId("genid_991904892601",var8);
		var8.access=new com.jxml.quick.access.QMALAccess();

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

		var9.addToFactory(var8);
		var8.addToFactory(var7);

		var7.addToFactory(var6);
		var6.addToFactory(var4);
		QCElementFactory var10=new QCElementFactory();
		doc.setId("genid_991904892603",var10);

		QElementFactory var11=new QElementFactory();
		var11.tagName="y";
		doc.setId("y",var11);
		QClassWrapper var12=new QClassWrapper();
		var11.targetFactory=var12;
		var12.wClassName="com.jxml.quick.examples.convert.Y2A";
		QCElementFactory var13=new QCElementFactory();
		doc.setId("genid_991904892604",var13);
		var13.access=new com.jxml.quick.access.QMALAccess();

		QElementFactory var14=new QElementFactory();
		var14.tagName="_attributes";
		doc.setId("genid_991904892605",var14);
		var14.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var15=new QCElementFactory();
		doc.setId("genid_991904892606",var15);
		var15.defaultValue="0";
		var15.optional=true;
		QFieldAccess var16=new QFieldAccess();
		var15.access=var16;
		var16.field="v";

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

		var17.addToFactory(var15);
		var15.addToFactory(var14);

		var14.addToFactory(var13);
		var13.addToFactory(var11);
		QCMSeqFactory var18=new QCMSeqFactory();
		doc.setId("genid_991904892607",var18);
		var18.optional=true;
		var18.repeating=true;
		QListFieldAccess var19=new QListFieldAccess();
		var18.access=var19;
		var19.field="xys";
		QCElementFactory var20=new QCElementFactory();
		doc.setId("genid_991904892608",var20);
		QElementFactory var21=var7;
		var21.addToFactory(var20);
		var20.addToFactory(var18);
		QCElementFactory var22=new QCElementFactory();
		doc.setId("genid_991904892609",var22);
		QElementFactory var23=var11;
		var23.addToFactory(var22);
		var22.addToFactory(var18);
		var18.addToFactory(var11);

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

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