public Iterator<XSModelGroupDecl> particle(XSParticle particle) { return singleton(particle.getTerm().asModelGroupDecl()); }
public Iterator<XSModelGroupDecl> particle(XSParticle particle) { return singleton(particle.getTerm().asModelGroupDecl()); }
public Iterator<XSModelGroupDecl> particle(XSParticle particle) { return singleton(particle.getTerm().asModelGroupDecl()); }
public Iterator<XSModelGroupDecl> particle(XSParticle particle) { return singleton(particle.getTerm().asModelGroupDecl()); }
public Iterator<XSModelGroupDecl> particle(XSParticle particle) { return singleton(particle.getTerm().asModelGroupDecl()); }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
private XSModelGroup getTopLevelModelGroup(XSParticle p) { XSModelGroup mg = p.getTerm().asModelGroup(); if( p.getTerm().isModelGroupDecl() ) mg = p.getTerm().asModelGroupDecl().getModelGroup(); return mg; }
protected void processParticle(XSParticle particle, ParseContext parseContext) throws Exception { parseContext.minOccurs = particle.getMinOccurs().intValue(); parseContext.maxOccurs = particle.getMaxOccurs().intValue(); XSTerm term = particle.getTerm(); if (term.isModelGroup()) { processGroup(term.asModelGroup(), parseContext); } else if (term.isModelGroupDecl()) { processGroupDecl(term.asModelGroupDecl(), parseContext); } else if (term.isElementDecl()) { processElement(term.asElementDecl(), parseContext); } }
/** * Gets the {@link BIDom} object that applies to the given particle. */ protected final BIDom getLocalDomCustomization( XSParticle p ) { if (p == null) { return null; } BIDom dom = getBindInfo(p).get(BIDom.class); if(dom!=null) return dom; // if not, the term might have one. dom = getBindInfo(p.getTerm()).get(BIDom.class); if(dom!=null) return dom; XSTerm t = p.getTerm(); // type could also have one, in case of the dom customization if(t.isElementDecl()) return getBindInfo(t.asElementDecl().getType()).get(BIDom.class); // similarly the model group in a model group definition may have one. if(t.isModelGroupDecl()) return getBindInfo(t.asModelGroupDecl().getModelGroup()).get(BIDom.class); return null; }
/** * Gets the {@link BIDom} object that applies to the given particle. */ protected final BIDom getLocalDomCustomization( XSParticle p ) { if (p == null) { return null; } BIDom dom = getBindInfo(p).get(BIDom.class); if(dom!=null) return dom; // if not, the term might have one. dom = getBindInfo(p.getTerm()).get(BIDom.class); if(dom!=null) return dom; XSTerm t = p.getTerm(); // type could also have one, in case of the dom customization if(t.isElementDecl()) return getBindInfo(t.asElementDecl().getType()).get(BIDom.class); // similarly the model group in a model group definition may have one. if(t.isModelGroupDecl()) return getBindInfo(t.asModelGroupDecl().getModelGroup()).get(BIDom.class); return null; }
/** * Gets the {@link BIDom} object that applies to the given particle. */ protected final BIDom getLocalDomCustomization( XSParticle p ) { if (p == null) { return null; } BIDom dom = getBindInfo(p).get(BIDom.class); if(dom!=null) return dom; // if not, the term might have one. dom = getBindInfo(p.getTerm()).get(BIDom.class); if(dom!=null) return dom; XSTerm t = p.getTerm(); // type could also have one, in case of the dom customization if(t.isElementDecl()) return getBindInfo(t.asElementDecl().getType()).get(BIDom.class); // similarly the model group in a model group definition may have one. if(t.isModelGroupDecl()) return getBindInfo(t.asModelGroupDecl().getModelGroup()).get(BIDom.class); return null; }
/** * Gets the {@link BIDom} object that applies to the given particle. */ protected final BIDom getLocalDomCustomization( XSParticle p ) { if (p == null) { return null; } BIDom dom = getBindInfo(p).get(BIDom.class); if(dom!=null) return dom; // if not, the term might have one. dom = getBindInfo(p.getTerm()).get(BIDom.class); if(dom!=null) return dom; XSTerm t = p.getTerm(); // type could also have one, in case of the dom customization if(t.isElementDecl()) return getBindInfo(t.asElementDecl().getType()).get(BIDom.class); // similarly the model group in a model group definition may have one. if(t.isModelGroupDecl()) return getBindInfo(t.asModelGroupDecl().getModelGroup()).get(BIDom.class); return null; }
/** * Gets the {@link BIDom} object that applies to the given particle. */ protected final BIDom getLocalDomCustomization( XSParticle p ) { if (p == null) { return null; } BIDom dom = getBindInfo(p).get(BIDom.class); if(dom!=null) return dom; // if not, the term might have one. dom = getBindInfo(p.getTerm()).get(BIDom.class); if(dom!=null) return dom; XSTerm t = p.getTerm(); // type could also have one, in case of the dom customization if(t.isElementDecl()) return getBindInfo(t.asElementDecl().getType()).get(BIDom.class); // similarly the model group in a model group definition may have one. if(t.isModelGroupDecl()) return getBindInfo(t.asModelGroupDecl().getModelGroup()).get(BIDom.class); return null; }
if(t.isModelGroupDecl()) return makeJavaName(p,t.asModelGroupDecl().getName()); if(t.isWildcard())
if(t.isModelGroupDecl()) return makeJavaName(p,t.asModelGroupDecl().getName()); if(t.isWildcard())
if(t.isModelGroupDecl()) return makeJavaName(p,t.asModelGroupDecl().getName()); if(t.isWildcard())
if(t.isModelGroupDecl()) return makeJavaName(p,t.asModelGroupDecl().getName()); if(t.isWildcard())