// generated from po.qiml
package javajaxb.po;
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 PurchaseOrderSchema 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 PurchaseOrderSchema()).create();
}
public QDoc create()
throws SAXException, QE, QPE, ClassNotFoundException,
InstantiationException, IllegalAccessException
{
if (schema!=null)
return schema;
QSoftDocHash sdh=Quick.schemaHash;
QDoc rv=sdh.get("po.qjml");
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();
doc.setRoot(rootCE);
QElementFactory var0=new QElementFactory();
doc.setId("po",var0);
var0.tagName="po";
QClassWrapper var1=new QClassWrapper();
var0.targetFactory=var1;
var1.wClassName="javajaxb.po.PurchaseOrder";
QCElementFactory var2=new QCElementFactory();
doc.setId("genid_1015003509528",var2);
var2.access=new com.jxml.quick.access.QMALAccess();
QElementFactory var3=new QElementFactory();
doc.setId("genid_1015003509529",var3);
var3.tagName="_attributes";
var3.targetFactory=new com.jxml.quick.tf.QMALTF();
var3.addToFactory(var2);
var2.addToFactory(var0);
QCElementFactory var4=new QCElementFactory();
doc.setId("genid_1015003509530",var4);
var4.repeating=true;
QListPropertyAccess var5=new QListPropertyAccess();
var4.access=var5;
var5.property="orderList";
QElementFactory var6=new QElementFactory();
doc.setId("o",var6);
var6.tagName="o";
QClassWrapper var7=new QClassWrapper();
var6.targetFactory=var7;
var7.wClassName="javajaxb.po.Order";
QCElementFactory var8=new QCElementFactory();
doc.setId("genid_1015003509531",var8);
var8.access=new com.jxml.quick.access.QMALAccess();
QElementFactory var9=new QElementFactory();
doc.setId("genid_1015003509532",var9);
var9.tagName="_attributes";
var9.targetFactory=new com.jxml.quick.tf.QMALTF();
QCElementFactory var10=new QCElementFactory();
doc.setId("genid_1015003509533",var10);
QPropertyAccess var11=new QPropertyAccess();
var10.access=var11;
var11.property="id";
QElementFactory var12=new QElementFactory();
doc.setId("o.id",var12);
var12.tagName="id";
var12.targetFactory=new QPropertyEditor("java.lang.Integer","sun.beans.editors.IntEditor");
var12.addToFactory(var10);
var10.addToFactory(var9);
QCElementFactory var13=new QCElementFactory();
doc.setId("genid_1015003509534",var13);
QPropertyAccess var14=new QPropertyAccess();
var13.access=var14;
var14.property="sku";
QElementFactory var15=new QElementFactory();
doc.setId("o.s_id",var15);
var15.tagName="s_id";
var15.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");
var15.addToFactory(var13);
var13.addToFactory(var9);
var9.addToFactory(var8);
var8.addToFactory(var6);
QCElementFactory var16=new QCElementFactory();
doc.setId("genid_1015003509535",var16);
QPropertyAccess var17=new QPropertyAccess();
var16.access=var17;
var17.property="productName";
QElementFactory var18=new QElementFactory();
doc.setId("p_name",var18);
var18.tagName="p_name";
var18.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");
QCElementFactory var19=new QCElementFactory();
doc.setId("genid_1015003509536",var19);
var19.access=new com.jxml.quick.access.QMALAccess();
QElementFactory var20=new QElementFactory();
doc.setId("genid_1015003509537",var20);
var20.tagName="_attributes";
var20.targetFactory=new com.jxml.quick.tf.QMALTF();
var20.addToFactory(var19);
var19.addToFactory(var18);
var18.addToFactory(var16);
var16.addToFactory(var6);
QCElementFactory var21=new QCElementFactory();
doc.setId("genid_1015003509538",var21);
QPropertyAccess var22=new QPropertyAccess();
var21.access=var22;
var22.property="manufacturerName";
QElementFactory var23=new QElementFactory();
doc.setId("m_name",var23);
var23.tagName="m_name";
var23.targetFactory=new QPropertyEditor("java.lang.String","sun.beans.editors.StringEditor");
QCElementFactory var24=new QCElementFactory();
doc.setId("genid_1015003509539",var24);
var24.access=new com.jxml.quick.access.QMALAccess();
QElementFactory var25=new QElementFactory();
doc.setId("genid_1015003509540",var25);
var25.tagName="_attributes";
var25.targetFactory=new com.jxml.quick.tf.QMALTF();
var25.addToFactory(var24);
var24.addToFactory(var23);
var23.addToFactory(var21);
var21.addToFactory(var6);
QCElementFactory var26=new QCElementFactory();
doc.setId("genid_1015003509541",var26);
QPropertyAccess var27=new QPropertyAccess();
var26.access=var27;
var27.property="purchasePrice";
QElementFactory var28=new QElementFactory();
doc.setId("p_c",var28);
var28.tagName="p_c";
var28.targetFactory=new QPropertyEditor("java.lang.Float","sun.beans.editors.FloatEditor");
QCElementFactory var29=new QCElementFactory();
doc.setId("genid_1015003509542",var29);
var29.access=new com.jxml.quick.access.QMALAccess();
QElementFactory var30=new QElementFactory();
doc.setId("genid_1015003509543",var30);
var30.tagName="_attributes";
var30.targetFactory=new com.jxml.quick.tf.QMALTF();
var30.addToFactory(var29);
var29.addToFactory(var28);
var28.addToFactory(var26);
var26.addToFactory(var6);
QCElementFactory var31=new QCElementFactory();
doc.setId("genid_1015003509544",var31);
QPropertyAccess var32=new QPropertyAccess();
var31.access=var32;
var32.property="stock";
QElementFactory var33=new QElementFactory();
doc.setId("sk",var33);
var33.tagName="sk";
QClassWrapper var34=new QClassWrapper();
var33.targetFactory=var34;
var34.wClassName="javajaxb.po.Stock";
QCElementFactory var35=new QCElementFactory();
doc.setId("genid_1015003509545",var35);
var35.access=new com.jxml.quick.access.QMALAccess();
QElementFactory var36=new QElementFactory();
doc.setId("genid_1015003509546",var36);
var36.tagName="_attributes";
var36.targetFactory=new com.jxml.quick.tf.QMALTF();
QCElementFactory var37=new QCElementFactory();
doc.setId("genid_1015003509547",var37);
QPropertyAccess var38=new QPropertyAccess();
var37.access=var38;
var38.property="quantity";
QElementFactory var39=new QElementFactory();
doc.setId("sk.num",var39);
var39.tagName="num";
var39.targetFactory=new QPropertyEditor("java.lang.Integer","sun.beans.editors.IntEditor");
var39.addToFactory(var37);
var37.addToFactory(var36);
QCElementFactory var40=new QCElementFactory();
doc.setId("genid_1015003509548",var40);
var40.defaultValue="true";
var40.optional=true;
QPropertyAccess var41=new QPropertyAccess();
var40.access=var41;
var41.property="onHand";
QElementFactory var42=new QElementFactory();
doc.setId("sk.oh",var42);
var42.tagName="oh";
var42.targetFactory=new QPropertyEditor("java.lang.Boolean","sun.beans.editors.BoolEditor");
var42.addToFactory(var40);
var40.addToFactory(var36);
var36.addToFactory(var35);
var35.addToFactory(var33);
var33.addToFactory(var31);
var31.addToFactory(var6);
var6.addToFactory(var4);
var4.addToFactory(var0);
var0.addToFactory(rootCE);
doc.setSchema(Quick.QIMLSchema());
doc.setKey("po.qjml");
doc.pool=new QContextPool(doc);
return doc;
}
}
|