Note that calling this method marks all those plug-in customizations as 'used'. So call it only when it's really necessary.
192193194195196197198199200201202
type.getOwnerSchema() ).get(BISchemaBinding.class); if(sb!=null) className = sb.mangleAnonymousTypeClassName(className); scope = selector.getClassScope(); } return new CClassInfo(model, scope, className, type.getLocator(), null, null, type, bi.toCustomizationList() ); } } private QName getTypeName(XSComplexType type) { if(type.getRedefinedBy()!=null)
469470471472473474475476477478479
// would have been bound, from the schema. Ring.get(ComplexTypeFieldBuilder.class).recordBindingMode( (XSComplexType)component, ComplexTypeBindingMode.NORMAL ); } return new CClassRef(model, component, decl, bindInfo.toCustomizationList() ); } } String clsName = decl.getClassName(); if(clsName==null) {
513514515516517518519520521522523
if (component instanceof XSElementDecl && !isCollapsable((XSElementDecl)component)) { XSElementDecl e = ((XSElementDecl)component); CElementInfo cei = new CElementInfo(model, elementName, selector.getClassScope(), clsName, bindInfo.toCustomizationList(), decl.getLocation() ); selector.boundElements.put(e,cei); stb.refererStack.push(component); // referer is element cei.initContentType( selector.bindToType(e.getType(),e),
525526527528529530531532533534535
stb.refererStack.pop(); return cei; // TODO: support javadoc and userSpecifiedImplClass } else { CClassInfo bt = new CClassInfo(model,selector.getClassScope(), clsName, decl.getLocation(), typeName, elementName, component, bindInfo.toCustomizationList() ); // set javadoc class comment. if(decl.getJavadoc()!=null ) bt.javadoc = decl.getJavadoc()+"\n\n"; // add extra blank lines so that the schema fragment