// generated from classpath:///com/jxml/quick/config/parm.qiml
package com.jxml.quick.config;
import com.jxml.quick.*;
import com.jxml.quick.engine.*;
import com.jxml.quick.recycle.*;
import com.jxml.quick.access.*;
import com.jxml.quick.qmap.*;
import com.jxml.quick.tf.*;
import org.xml.sax.*;

public class CreateParm 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 CreateParm()).create();
	}

	public QDoc create()
		throws SAXException, QE, QPE, ClassNotFoundException, 
			InstantiationException, IllegalAccessException
	{
		if (schema!=null)
			return schema;
		QSoftDocHash sdh=Quick.schemaHash;
		QDoc rv=sdh.get("classpath:///com/jxml/quick/config/parm.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();
		QIML rootCE=new QIML();
		
		rootCE.SYSTEM="classpath:///parm.dtd";
		doc.setRoot(rootCE);
		QElementFactory var0=new QElementFactory();
		doc.setId("parm",var0);
		var0.tagName="parm";
		QClassWrapper var1=new QClassWrapper();
		var0.targetFactory=var1;
		var1.wClassName="com.jxml.quick.config.Parm";
		QCElementFactory var2=new QCElementFactory();
		doc.setId("genid_1000121053846",var2);
		var2.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var3=new QElementFactory();
		doc.setId("genid_1000121053847",var3);
		var3.tagName="_attributes";
		var3.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var4=new QCElementFactory();
		doc.setId("genid_1000121053848",var4);
		QFieldAccess var5=new QFieldAccess();
		var4.access=var5;
		var5.field="cfg";
		QElementFactory var6=new QElementFactory();
		doc.setId("cfg",var6);
		var6.tagName="cfg";
		var6.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var6.addToFactory(var4);
		var4.addToFactory(var3);
		var3.addToFactory(var2);
		var2.addToFactory(var0);
		QCElementFactory var7=new QCElementFactory();
		doc.setId("genid_1000121053849",var7);
		var7.optional=true;
		var7.repeating=true;
		QListFieldAccess var8=new QListFieldAccess();
		var7.access=var8;
		var8.field="nvList";
		QElementFactory var9=new QElementFactory();
		doc.setId("nv",var9);
		var9.tagName="nv";
		QClassWrapper var10=new QClassWrapper();
		var9.targetFactory=var10;
		var10.wClassName="com.jxml.quick.config.NV";
		QCElementFactory var11=new QCElementFactory();
		doc.setId("genid_1000121053850",var11);
		var11.access=new com.jxml.quick.access.QMALAccess();
		QElementFactory var12=new QElementFactory();
		doc.setId("genid_1000121053851",var12);
		var12.tagName="_attributes";
		var12.targetFactory=new com.jxml.quick.tf.QMALTF();
		QCElementFactory var13=new QCElementFactory();
		doc.setId("genid_1000121053852",var13);
		QFieldAccess var14=new QFieldAccess();
		var13.access=var14;
		var14.field="name";
		QElementFactory var15=new QElementFactory();
		doc.setId("name",var15);
		var15.tagName="name";
		var15.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var15.addToFactory(var13);
		var13.addToFactory(var12);
		QCElementFactory var16=new QCElementFactory();
		doc.setId("genid_1000121053853",var16);
		QFieldAccess var17=new QFieldAccess();
		var16.access=var17;
		var17.field="value";
		QElementFactory var18=new QElementFactory();
		doc.setId("value",var18);
		var18.tagName="value";
		var18.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");

		var18.addToFactory(var16);
		var16.addToFactory(var12);
		var12.addToFactory(var11);
		var11.addToFactory(var9);
		var9.addToFactory(var7);
		var7.addToFactory(var0);

		var0.addToFactory(rootCE);
		doc.setSchema(Quick.QIMLSchema());
		doc.setKey("classpath:///com/jxml/quick/config/parm.qiml");
		doc.pool=new QContextPool(doc);
		return doc;
	}
}		

