/** * Checks if the given component is bound to a class. */ public final CElement isBound( XSElementDecl x, XSComponent referer ) { CElementInfo r = boundElements.get(x); if(r!=null) return r; return bindToType(x,referer); }
/** * Checks if the given component is bound to a class. */ public final CElement isBound( XSElementDecl x, XSComponent referer ) { CElementInfo r = boundElements.get(x); if(r!=null) return r; return bindToType(x,referer); }
/** * Checks if the given component is bound to a class. */ public final CElement isBound( XSElementDecl x, XSComponent referer ) { CElementInfo r = boundElements.get(x); if(r!=null) return r; return bindToType(x,referer); }
/** * Checks if the given component is bound to a class. */ public final CElement isBound( XSElementDecl x, XSComponent referer ) { CElementInfo r = boundElements.get(x); if(r!=null) return r; return bindToType(x,referer); }
/** * Calls {@link ClassSelector} for each item in the iterator * to populate class items if there is any. */ private void populate( Map<String,? extends XSComponent> col, XSSchema schema ) { ClassSelector cs = getClassSelector(); for( XSComponent sc : col.values() ) cs.bindToType(sc,schema); }
/** * Calls {@link ClassSelector} for each item in the iterator * to populate class items if there is any. */ private void populate( Map<String,? extends XSComponent> col, XSSchema schema ) { ClassSelector cs = getClassSelector(); for( XSComponent sc : col.values() ) cs.bindToType(sc,schema); }
/** * Calls {@link ClassSelector} for each item in the iterator * to populate class items if there is any. */ private void populate( Map<String,? extends XSComponent> col, XSSchema schema ) { ClassSelector cs = getClassSelector(); for( XSComponent sc : col.values() ) cs.bindToType(sc,schema); }
/** * Calls {@link ClassSelector} for each item in the iterator * to populate class items if there is any. */ private void populate( Map<String,? extends XSComponent> col, XSSchema schema ) { ClassSelector cs = getClassSelector(); for( XSComponent sc : col.values() ) cs.bindToType(sc,schema); }
public XmlTypeRef(XSElementDecl decl) { this.decl = decl; SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); stb.refererStack.push(decl); TypeUse r = Ring.get(ClassSelector.class).bindToType(decl.getType(),decl); stb.refererStack.pop(); target = r; }
public XmlTypeRef(XSElementDecl decl) { this.decl = decl; SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); stb.refererStack.push(decl); TypeUse r = Ring.get(ClassSelector.class).bindToType(decl.getType(),decl); stb.refererStack.pop(); target = r; }
public void complexType(XSComplexType ct) { CClass ctBean = selector.bindToType(ct,null,false); if(getCurrentBean()!=ctBean) // in some case complex type and element binds to the same class // don't make it has-a. Just make it is-a. getCurrentBean().setBaseClass(ctBean); }
public void complexType(XSComplexType ct) { CClass ctBean = selector.bindToType(ct,null,false); if(getCurrentBean()!=ctBean) // in some case complex type and element binds to the same class // don't make it has-a. Just make it is-a. getCurrentBean().setBaseClass(ctBean); }
public void complexType(XSComplexType ct) { CClass ctBean = selector.bindToType(ct,null,false); if(getCurrentBean()!=ctBean) // in some case complex type and element binds to the same class // don't make it has-a. Just make it is-a. getCurrentBean().setBaseClass(ctBean); }
public void complexType(XSComplexType ct) { CClass ctBean = selector.bindToType(ct,null,false); if(getCurrentBean()!=ctBean) // in some case complex type and element binds to the same class // don't make it has-a. Just make it is-a. getCurrentBean().setBaseClass(ctBean); }
public void complexType(XSComplexType ct) { CClass ctBean = selector.bindToType(ct,null,false); if(getCurrentBean()!=ctBean) // in some case complex type and element binds to the same class // don't make it has-a. Just make it is-a. getCurrentBean().setBaseClass(ctBean); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }
/** * If the component maps to a property, forwards to purple, otherwise to green. * * If the component is mapped to a type, this method needs to return true. * See the chart at the class javadoc. */ public void ying( XSComponent sc, @Nullable XSComponent referer ) { if(sc.apply(toPurple)==true || getClassSelector().bindToType(sc,referer)!=null) sc.visit(purple); else sc.visit(green); }