* @author Kohsuke Kawaguchi
*/
final class MixedComplexTypeBuilder extends CTBuilder {
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;
}