return false;
}
public void build(XSComplexType ct) {
XSContentType contentType = ct.getContentType();
boolean generateMixedExtensions = bgmBuilder.isGenerateMixedExtensions();
if (generateMixedExtensions) {
if (!(ct.getBaseType() == schemas.getAnyType() && ct.isMixed())) {
XSComplexType baseType = ct.getBaseType().asComplexType();
// build the base class
CClass baseClass = selector.bindToType(baseType, ct, true);
selector.getCurrentBean().setBaseClass(baseClass);
}
}
builder.recordBindingMode(ct, FALLBACK_CONTENT);
BIProperty prop = BIProperty.getCustomization(ct);
CPropertyInfo p;
if (generateMixedExtensions) {
List<XSComplexType> cType = ct.getSubtypes();
boolean isSubtyped = (cType != null) && (cType.size() > 0);
if (contentType.asEmpty() != null) {
if (isSubtyped) {
p = prop.createContentExtendedMixedReferenceProperty("Content", ct, null);
} else {
p = prop.createValueProperty("Content",false,ct,CBuiltinLeafInfo.STRING,null);
}
} else if (contentType.asParticle() == null) {
p = prop.createContentExtendedMixedReferenceProperty("Content", ct, null);
} else {
RawTypeSet ts = RawTypeSetBuilder.build(contentType.asParticle(), false);
p = prop.createContentExtendedMixedReferenceProperty("Content", ct, ts);
}
} else {
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);