public void simpleType(XSSimpleType st) { builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(st); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,ct,use, BGMBuilder.getName(st)); selector.getCurrentBean().addProperty(p); }
public void simpleType(XSSimpleType st) { builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(st); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,ct,use, BGMBuilder.getName(st)); selector.getCurrentBean().addProperty(p); }
public void simpleType(XSSimpleType st) { builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(st); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,ct,use, BGMBuilder.getName(st)); selector.getCurrentBean().addProperty(p); }
public void simpleType(XSSimpleType st) { builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(st); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,ct,use, BGMBuilder.getName(st)); selector.getCurrentBean().addProperty(p); }
public void simpleType(XSSimpleType st) { builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(st); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,ct,use, BGMBuilder.getName(st)); selector.getCurrentBean().addProperty(p); }
protected final void createSimpleTypeProperty(XSSimpleType type,String propName) { BIProperty prop = BIProperty.getCustomization(type); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); // since we are building the simple type here, use buildDef CPropertyInfo p = prop.createValueProperty(propName,false,type,stb.buildDef(type),BGMBuilder.getName(type)); getCurrentBean().addProperty(p); }
protected final void createSimpleTypeProperty(XSSimpleType type,String propName) { BIProperty prop = BIProperty.getCustomization(type); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); // since we are building the simple type here, use buildDef CPropertyInfo p = prop.createValueProperty(propName,false,type,stb.buildDef(type),BGMBuilder.getName(type)); getCurrentBean().addProperty(p); }
protected final void createSimpleTypeProperty(XSSimpleType type,String propName) { BIProperty prop = BIProperty.getCustomization(type); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); // since we are building the simple type here, use buildDef CPropertyInfo p = prop.createValueProperty(propName,false,type,stb.buildDef(type),BGMBuilder.getName(type)); getCurrentBean().addProperty(p); }
protected final void createSimpleTypeProperty(XSSimpleType type,String propName) { BIProperty prop = BIProperty.getCustomization(type); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); // since we are building the simple type here, use buildDef CPropertyInfo p = prop.createValueProperty(propName,false,type,stb.buildDef(type),BGMBuilder.getName(type)); getCurrentBean().addProperty(p); }
public void build(XSComplexType ct) { assert ct.getDerivationMethod()==XSType.EXTENSION; // base type is a simple type XSSimpleType baseType = ct.getBaseType().asSimpleType(); // determine the binding of this complex type. builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(baseType); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,baseType,use, BGMBuilder.getName(baseType)); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void build(XSComplexType ct) { assert ct.getDerivationMethod()==XSType.EXTENSION; // base type is a simple type XSSimpleType baseType = ct.getBaseType().asSimpleType(); // determine the binding of this complex type. builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(baseType); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,baseType,use, BGMBuilder.getName(baseType)); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
protected final void createSimpleTypeProperty(XSSimpleType type,String propName) { BIProperty prop = BIProperty.getCustomization(type); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); // since we are building the simple type here, use buildDef CPropertyInfo p = prop.createValueProperty(propName,false,type,stb.buildDef(type),BGMBuilder.getName(type)); getCurrentBean().addProperty(p); }
public void build(XSComplexType ct) { assert ct.getDerivationMethod()==XSType.EXTENSION; // base type is a simple type XSSimpleType baseType = ct.getBaseType().asSimpleType(); // determine the binding of this complex type. builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(baseType); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,baseType,use, BGMBuilder.getName(baseType)); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void build(XSComplexType ct) { assert ct.getDerivationMethod()==XSType.EXTENSION; // base type is a simple type XSSimpleType baseType = ct.getBaseType().asSimpleType(); // determine the binding of this complex type. builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(baseType); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,baseType,use, BGMBuilder.getName(baseType)); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void build(XSComplexType ct) { assert ct.getDerivationMethod()==XSType.EXTENSION; // base type is a simple type XSSimpleType baseType = ct.getBaseType().asSimpleType(); // determine the binding of this complex type. builder.recordBindingMode(ct,ComplexTypeBindingMode.NORMAL); simpleTypeBuilder.refererStack.push(ct); TypeUse use = simpleTypeBuilder.build(baseType); simpleTypeBuilder.refererStack.pop(); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p = prop.createValueProperty("Value",false,baseType,use, BGMBuilder.getName(baseType)); selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void particle( XSParticle p ) { XSTerm t = p.getTerm(); if(marked(p)) { BIProperty cust = BIProperty.getCustomization(p); CPropertyInfo prop = cust.createElementOrReferenceProperty( getLabel(p), false, p, RawTypeSetBuilder.build(p,insideOptionalParticle)); getCurrentBean().addProperty(prop); } else { // repeated model groups should have been marked already assert !p.isRepeated(); boolean oldIOP = insideOptionalParticle; insideOptionalParticle |= BigInteger.ZERO.equals(p.getMinOccurs()); // this is an unmarked particle t.visit(this); insideOptionalParticle = oldIOP; } }
public void particle( XSParticle p ) { XSTerm t = p.getTerm(); if(marked(p)) { BIProperty cust = BIProperty.getCustomization(p); CPropertyInfo prop = cust.createElementOrReferenceProperty( getLabel(p), false, p, RawTypeSetBuilder.build(p,insideOptionalParticle)); getCurrentBean().addProperty(prop); } else { // repeated model groups should have been marked already assert !p.isRepeated(); boolean oldIOP = insideOptionalParticle; insideOptionalParticle |= BigInteger.ZERO.equals(p.getMinOccurs()); // this is an unmarked particle t.visit(this); insideOptionalParticle = oldIOP; } }
public void build(XSComplexType ct) { XSContentType contentType = ct.getContentType(); builder.recordBindingMode(ct, FALLBACK_CONTENT); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p; if(contentType.asEmpty()!=null) { p = prop.createValueProperty("Content",false,ct,CBuiltinLeafInfo.STRING,null); } else { RawTypeSet ts = RawTypeSetBuilder.build(contentType.asParticle(),false); p = prop.createReferenceProperty("Content", false, ct, ts, true, false, true, false); } selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void build(XSComplexType ct) { XSContentType contentType = ct.getContentType(); builder.recordBindingMode(ct, FALLBACK_CONTENT); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p; if(contentType.asEmpty()!=null) { p = prop.createValueProperty("Content",false,ct,CBuiltinLeafInfo.STRING,null); } else { RawTypeSet ts = RawTypeSetBuilder.build(contentType.asParticle(),false); p = prop.createReferenceProperty("Content", false, ct, ts, true, false, true, false); } selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }
public void build(XSComplexType ct) { XSContentType contentType = ct.getContentType(); builder.recordBindingMode(ct, FALLBACK_CONTENT); BIProperty prop = BIProperty.getCustomization(ct); CPropertyInfo p; if(contentType.asEmpty()!=null) { p = prop.createValueProperty("Content",false,ct,CBuiltinLeafInfo.STRING,null); } else { RawTypeSet ts = RawTypeSetBuilder.build(contentType.asParticle(),false); p = prop.createReferenceProperty("Content", false, ct, ts, true, false, true, false); } selector.getCurrentBean().addProperty(p); // adds attributes and we are through. green.attContainer(ct); }