public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.EXTENSION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
public boolean isApplicable(XSComplexType ct) { XSType baseType = ct.getBaseType(); return baseType!=schemas.getAnyType() && baseType.isComplexType() && ct.getDerivationMethod()==XSType.RESTRICTION; }
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 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 boolean isApplicable(XSComplexType ct) { if (!bgmBuilder.isGenerateMixedExtensions()) return false; XSType bt = ct.getBaseType(); if (bt.isComplexType() && bt.asComplexType().isMixed() && ct.isMixed() && ct.getDerivationMethod()==XSType.EXTENSION && ct.getContentType().asParticle() != null && ct.getExplicitContent().asEmpty() == null ) { return true; } return false; }
public boolean isApplicable(XSComplexType ct) { if (!bgmBuilder.isGenerateMixedExtensions()) return false; XSType bt = ct.getBaseType(); if (bt.isComplexType() && bt.asComplexType().isMixed() && ct.isMixed() && ct.getDerivationMethod()==XSType.EXTENSION && ct.getContentType().asParticle() != null && ct.getExplicitContent().asEmpty() == null ) { return true; } return false; }
public boolean isApplicable(XSComplexType ct) { if (!bgmBuilder.isGenerateMixedExtensions()) return false; XSType bt = ct.getBaseType(); if (bt.isComplexType() && bt.asComplexType().isMixed() && ct.isMixed() && ct.getDerivationMethod()==XSType.EXTENSION && ct.getContentType().asParticle() != null && ct.getExplicitContent().asEmpty() == null ) { return true; } return false; }
public boolean isApplicable(XSComplexType ct) { XSType bt = ct.getBaseType(); if(bt ==schemas.getAnyType() && ct.isMixed()) return true; // fresh mixed complex type // there's no complex type in the inheritance tree yet if (bt.isComplexType() && !bt.asComplexType().isMixed() && ct.isMixed() && ct.getDerivationMethod() == XSType.EXTENSION) { if (!bgmBuilder.isGenerateMixedExtensions() && (ct.getContentType().asParticle() == null)) { return false; } return true; } return false; }
public boolean isApplicable(XSComplexType ct) { if (!bgmBuilder.isGenerateMixedExtensions()) return false; XSType bt = ct.getBaseType(); if (bt.isComplexType() && bt.asComplexType().isMixed() && ct.isMixed() && ct.getDerivationMethod()==XSType.EXTENSION && ct.getContentType().asParticle() != null && ct.getExplicitContent().asEmpty() == null ) { return true; } return false; }
public boolean isApplicable(XSComplexType ct) { if (!bgmBuilder.isGenerateMixedExtensions()) return false; XSType bt = ct.getBaseType(); if (bt.isComplexType() && bt.asComplexType().isMixed() && ct.isMixed() && ct.getDerivationMethod()==XSType.EXTENSION && ct.getContentType().asParticle() != null && ct.getExplicitContent().asEmpty() == null ) { return true; } return false; }