public CClassInfo attributeUse(XSAttributeUse use) { return never(); }
public CElement complexType(XSComplexType type) { CElement ci = allow(type,type.getName()); if(ci!=null) return ci; String className = deriveName(type); Locator loc = type.getLocator(); if(getGlobalBinding().isSimpleMode()) { XSElementDecl referer = getSoleElementReferer(type); if(referer!=null && isCollapsable(referer)) { className = deriveName(referer); loc = referer.getLocator(); return new CClassInfo(model,pkg,className, loc,getTypeName(type),tagName,type,bi.toCustomizationList()); } else { XSElementDecl element = type.getScope(); if( element.isGlobal() && isCollapsable(element)) { if(builder.getBindInfo(element).get(BIClass.class)!=null) deriveName(element), element.getLocator(), null, getName(element), element, bi.toCustomizationList() );
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }
public CElement elementDecl(XSElementDecl decl) { CElement r = allow(decl,decl.getName()); if(isCollapsable(decl)) { } else { String className = null; if(getGlobalBinding().isGenerateElementClass()) className = deriveName(decl);
if( getGlobalBinding().isSimpleMode() && decl.isGlobal()) { XSElementDecl referer = getSoleElementReferer(decl.getType()); if(referer!=null) { assert referer==decl; // I must be the sole referer
public CElement attGroupDecl(XSAttGroupDecl decl) { return allow(decl,decl.getName()); }
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
if (component instanceof XSElementDecl && !isCollapsable((XSElementDecl)component)) { XSElementDecl e = ((XSElementDecl)component);
public CElement complexType(XSComplexType type) { CElement ci = allow(type,type.getName()); if(ci!=null) return ci; String className = deriveName(type); Locator loc = type.getLocator(); if(getGlobalBinding().isSimpleMode()) { XSElementDecl referer = getSoleElementReferer(type); if(referer!=null && isCollapsable(referer)) { className = deriveName(referer); loc = referer.getLocator(); return new CClassInfo(model,pkg,className, loc,getTypeName(type),tagName,type,bi.toCustomizationList()); } else { XSElementDecl element = type.getScope(); if( element.isGlobal() && isCollapsable(element)) { if(builder.getBindInfo(element).get(BIClass.class)!=null) deriveName(element), element.getLocator(), null, getName(element), element, bi.toCustomizationList() );
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }
public CElement elementDecl(XSElementDecl decl) { CElement r = allow(decl,decl.getName()); if(isCollapsable(decl)) { } else { String className = null; if(getGlobalBinding().isGenerateElementClass()) className = deriveName(decl);
if( getGlobalBinding().isSimpleMode() && decl.isGlobal()) { XSElementDecl referer = getSoleElementReferer(decl.getType()); if(referer!=null) { assert referer==decl; // I must be the sole referer
public CElement attributeDecl(XSAttributeDecl decl) { return allow(decl,decl.getName()); }
public ClassSelector() { classBinder = new Abstractifier(new DefaultClassBinder()); Ring.add(ClassBinder.class,classBinder); classScopes.push(null); // so that the getClassFactory method returns null XSComplexType anyType = Ring.get(XSSchemaSet.class).getComplexType(WellKnownNamespace.XML_SCHEMA,"anyType"); bindMap.put(anyType,new Binding(anyType,CBuiltinLeafInfo.ANYTYPE)); }
if (component instanceof XSElementDecl && !isCollapsable((XSElementDecl)component)) { XSElementDecl e = ((XSElementDecl)component);
public CElement complexType(XSComplexType type) { CElement ci = allow(type,type.getName()); if(ci!=null) return ci; String className = deriveName(type); Locator loc = type.getLocator(); if(getGlobalBinding().isSimpleMode()) { XSElementDecl referer = getSoleElementReferer(type); if(referer!=null && isCollapsable(referer)) { className = deriveName(referer); loc = referer.getLocator(); return new CClassInfo(model,pkg,className, loc,getTypeName(type),tagName,type,bi.toCustomizationList()); } else { XSElementDecl element = type.getScope(); if( element.isGlobal() && isCollapsable(element)) { if(builder.getBindInfo(element).get(BIClass.class)!=null) deriveName(element), element.getLocator(), null, getName(element), element, bi.toCustomizationList() );
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }
public CElement elementDecl(XSElementDecl decl) { CElement r = allow(decl,decl.getName()); if(isCollapsable(decl)) { } else { String className = null; if(getGlobalBinding().isGenerateElementClass()) className = deriveName(decl);
public CClassInfo attributeUse(XSAttributeUse use) { return never(); }
if( getGlobalBinding().isSimpleMode() && decl.isGlobal()) { XSElementDecl referer = getSoleElementReferer(decl.getType()); if(referer!=null) { assert referer==decl; // I must be the sole referer