public Void onZeroOrMore(DZeroOrMorePattern p) { return onRepeated(p,true); }
public Void onAttribute(DAttributePattern p) { // TODO: support multiple names QName name = p.getName().listNames().iterator().next(); CAttributePropertyInfo ap = new CAttributePropertyInfo( calcName(p), null,null/*TODO*/, p.getLocation(), name, p.getChild().accept(compiler.typeUseBinder), null, !insideOptional); clazz.addProperty(ap); return null; }
private void bindContentModel(CClassInfo clazz, DPattern pattern) { // first we decide which patterns in it map to properties // then we process each of them by using RawTypeSetBuilder. // much like DefaultParticleBinder in XSD pattern.accept(new ContentModelBinder(this,clazz)); }
public Void onAttribute(DAttributePattern p) { // TODO: support multiple names QName name = p.getName().listNames().iterator().next(); CAttributePropertyInfo ap = new CAttributePropertyInfo( calcName(p), null,null/*TODO*/, p.getLocation(), name, p.getChild().accept(compiler.typeUseBinder), null, !insideOptional); clazz.addProperty(ap); return null; }
private void bindContentModel(CClassInfo clazz, DPattern pattern) { // first we decide which patterns in it map to properties // then we process each of them by using RawTypeSetBuilder. // much like DefaultParticleBinder in XSD pattern.accept(new ContentModelBinder(this,clazz)); }
public Void onAttribute(DAttributePattern p) { // TODO: support multiple names QName name = p.getName().listNames().iterator().next(); CAttributePropertyInfo ap = new CAttributePropertyInfo( calcName(p), null,null/*TODO*/, p.getLocation(), name, p.getChild().accept(compiler.typeUseBinder), null, !insideOptional); clazz.addProperty(ap); return null; }
public Void onOneOrMore(DOneOrMorePattern p) { return onRepeated(p,insideOptional); }
private void bindContentModel(CClassInfo clazz, DPattern pattern) { // first we decide which patterns in it map to properties // then we process each of them by using RawTypeSetBuilder. // much like DefaultParticleBinder in XSD pattern.accept(new ContentModelBinder(this,clazz)); }
public Void onAttribute(DAttributePattern p) { // TODO: support multiple names QName name = p.getName().listNames().iterator().next(); CAttributePropertyInfo ap = new CAttributePropertyInfo( calcName(p), null,null/*TODO*/, p.getLocation(), name, p.getChild().accept(compiler.typeUseBinder), null, !insideOptional); clazz.addProperty(ap); return null; }
public Void onOneOrMore(DOneOrMorePattern p) { return onRepeated(p,insideOptional); }
private void bindContentModel(CClassInfo clazz, DPattern pattern) { // first we decide which patterns in it map to properties // then we process each of them by using RawTypeSetBuilder. // much like DefaultParticleBinder in XSD pattern.accept(new ContentModelBinder(this,clazz)); }
public Void onAttribute(DAttributePattern p) { // TODO: support multiple names QName name = p.getName().listNames().iterator().next(); CAttributePropertyInfo ap = new CAttributePropertyInfo( calcName(p), null,null/*TODO*/, p.getLocation(), name, p.getChild().accept(compiler.typeUseBinder), null, !insideOptional); clazz.addProperty(ap); return null; }
public Void onOneOrMore(DOneOrMorePattern p) { return onRepeated(p,insideOptional); }
private void bindContentModel(CClassInfo clazz, DPattern pattern) { // first we decide which patterns in it map to properties // then we process each of them by using RawTypeSetBuilder. // much like DefaultParticleBinder in XSD pattern.accept(new ContentModelBinder(this,clazz)); }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
public Void onZeroOrMore(DZeroOrMorePattern p) { return onRepeated(p,true); }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
public Void onZeroOrMore(DZeroOrMorePattern p) { return onRepeated(p,true); }
private Void onRepeated(DPattern p,boolean optional) { RawTypeSet rts = RawTypeSetBuilder.build(compiler, p, optional? Multiplicity.STAR : Multiplicity.PLUS); if(rts.canBeTypeRefs==RawTypeSet.Mode.SHOULD_BE_TYPEREF) { CElementPropertyInfo prop = new CElementPropertyInfo( calcName(p),REPEATED_ELEMENT,ID.NONE,null,null,null,p.getLocation(),!optional); rts.addTo(prop); clazz.addProperty(prop); } else { CReferencePropertyInfo prop = new CReferencePropertyInfo( calcName(p),true,!optional,false/*TODO*/,null,null,p.getLocation(), false, false, false); rts.addTo(prop); clazz.addProperty(prop); } return null; }
public Void onOneOrMore(DOneOrMorePattern p) { return onRepeated(p,insideOptional); }