/** * Returns a localized message that describes the collision. */ public String toString() { return Messages.format( Messages.MSG_COLLISION_INFO, name, printLocator(source1), printLocator(source2) ); }
protected BGMBuilder(String defaultPackage1, String defaultPackage2, boolean _inExtensionMode, FieldRendererFactory fieldRendererFactory, List<Plugin> activePlugins) { this.inExtensionMode = _inExtensionMode; this.defaultPackage1 = defaultPackage1; this.defaultPackage2 = defaultPackage2; this.fieldRendererFactory = fieldRendererFactory; this.activePlugins = activePlugins; promoteGlobalBindings(); }
/** * Checks if the given component is being mapped to a type. * If so, build that type and return that object. * If it is not being mapped to a type item, return null. */ public CTypeInfo bindToType( XSComponent sc, XSComponent referer ) { return _bindToClass(sc,referer,false); }
private void checkExpectedContentTypes(XSComponent c) { if(c.getForeignAttribute(WellKnownNamespace.XML_MIME_URI, Const.EXPECTED_CONTENT_TYPES)==null) return; // no such attribute if(c instanceof XSParticle) return; // particles get the same foreign attributes as local element decls, // so we need to skip them if(!stb.isAcknowledgedXmimeContentTypes(c)) { // this is not used getErrorReporter().warning(c.getLocator(),Messages.WARN_UNUSED_EXPECTED_CONTENT_TYPES); } }
protected final CClassInfo getCurrentBean() { return getClassSelector().getCurrentBean(); }
/** * Annotates the obtained schema set. * * @return * null if an error happens. In that case, the error messages * will be properly reported to the controller by this method. */ public Model annotateXMLSchema(XSSchemaSet xs) { if (xs == null) return null; return BGMBuilder.build(xs, codeModel, errorReceiver, opt); }
/** * Gets the BIProperty object that applies to the given particle. */ protected final BIProperty getLocalPropCustomization( XSParticle p ) { return getLocalCustomization(p,BIProperty.class); }
private void checkExpectedContentTypes(XSComponent c) { if(c.getForeignAttribute(WellKnownNamespace.XML_MIME_URI, Const.EXPECTED_CONTENT_TYPES)==null) return; // no such attribute if(c instanceof XSParticle) return; // particles get the same foreign attributes as local element decls, // so we need to skip them if(!stb.isAcknowledgedXmimeContentTypes(c)) { // this is not used getErrorReporter().warning(c.getLocator(),Messages.WARN_UNUSED_EXPECTED_CONTENT_TYPES); } }
/** * Returns a localized message that describes the collision. */ public String toString() { return Messages.format( Messages.MSG_COLLISION_INFO, name, printLocator(source1), printLocator(source2) ); }
protected final CClassInfo getCurrentBean() { return getClassSelector().getCurrentBean(); }
protected BGMBuilder(String defaultPackage1, String defaultPackage2, boolean _inExtensionMode, FieldRendererFactory fieldRendererFactory, List<Plugin> activePlugins) { this.inExtensionMode = _inExtensionMode; this.defaultPackage1 = defaultPackage1; this.defaultPackage2 = defaultPackage2; this.fieldRendererFactory = fieldRendererFactory; this.activePlugins = activePlugins; promoteGlobalBindings(); }
public CClass bindToType( XSComplexType t, XSComponent referer, boolean cannotBeDelayed ) { // this assumption that a complex type always binds to a ClassInfo // does not hold for xs:anyType --- our current approach of handling // this idiosynchracy is to make sure that xs:anyType doesn't use // this codepath. return (CClass)_bindToClass(t,referer,cannotBeDelayed); }
/** * Annotates the obtained schema set. * * @return * null if an error happens. In that case, the error messages * will be properly reported to the controller by this method. */ public Model annotateXMLSchema(XSSchemaSet xs) { if (xs == null) return null; return BGMBuilder.build(xs, codeModel, errorReceiver, opt); }
private void checkExpectedContentTypes(XSComponent c) { if(c.getForeignAttribute(WellKnownNamespace.XML_MIME_URI, Const.EXPECTED_CONTENT_TYPES)==null) return; // no such attribute if(c instanceof XSParticle) return; // particles get the same foreign attributes as local element decls, // so we need to skip them if(!stb.isAcknowledgedXmimeContentTypes(c)) { // this is not used getErrorReporter().warning(c.getLocator(),Messages.WARN_UNUSED_EXPECTED_CONTENT_TYPES); } }
/** * Returns a localized message that describes the collision. */ public String toString() { return Messages.format( Messages.MSG_COLLISION_INFO, name, printLocator(source1), printLocator(source2) ); }
protected final CClassInfo getCurrentBean() { return getClassSelector().getCurrentBean(); }
private void checkExpectedContentTypes(XSComponent c) { if(c.getForeignAttribute(WellKnownNamespace.XML_MIME_URI, Const.EXPECTED_CONTENT_TYPES)==null) return; // no such attribute if(c instanceof XSParticle) return; // particles get the same foreign attributes as local element decls, // so we need to skip them if(!stb.isAcknowledgedXmimeContentTypes(c)) { // this is not used getErrorReporter().warning(c.getLocator(),Messages.WARN_UNUSED_EXPECTED_CONTENT_TYPES); } }
/** * Returns a localized message that describes the collision. */ public String toString() { return Messages.format( Messages.MSG_COLLISION_INFO, name, printLocator(source1), printLocator(source2) ); }
private void checkExpectedContentTypes(XSComponent c) { if(c.getForeignAttribute(WellKnownNamespace.XML_MIME_URI, Const.EXPECTED_CONTENT_TYPES)==null) return; // no such attribute if(c instanceof XSParticle) return; // particles get the same foreign attributes as local element decls, // so we need to skip them if(!stb.isAcknowledgedXmimeContentTypes(c)) { // this is not used getErrorReporter().warning(c.getLocator(),Messages.WARN_UNUSED_EXPECTED_CONTENT_TYPES); } }
/** * Returns a localized message that describes the collision. */ public String toString() { return Messages.format( Messages.MSG_COLLISION_INFO, name, printLocator(source1), printLocator(source2) ); }