public void visit(XSDParticle particle) { XSDElementDeclaration decl = (XSDElementDeclaration) particle.getContent(); if (decl.isElementDeclarationReference()) { decl = decl.getResolvedElementDeclaration(); } if (decl == fElement) { if (particle.isSetMaxOccurs()) { maxOccurs.add(Integer.valueOf(particle.getMaxOccurs())); } else if (particle.getContainer() instanceof XSDModelGroup && particle.getContainer().getContainer() instanceof XSDParticle) { particle = (XSDParticle) particle.getContainer().getContainer(); maxOccurs.add(Integer.valueOf(particle.getMaxOccurs())); } else { maxOccurs.add(1); } } } };
if (particle.isSetMaxOccurs()) { maxOccurs = particle.getMaxOccurs(); } else { (XSDParticle) group.eContainer(); if (cParticle.isSetMaxOccurs()) { maxOccurs = cParticle.getMaxOccurs();
public static int getMaxOccurs(XSDConcreteComponent component) { int maxOccur = -2; if (component != null) { Object o = component.getContainer(); if (o instanceof XSDParticle) { if (((XSDParticle) o).isSetMaxOccurs()) { try { maxOccur = ((XSDParticle) o).getMaxOccurs(); } catch (Exception e) { } } } } return maxOccur; }
if( particle.isSetMaxOccurs() ) { maxOccurs = particle.getMaxOccurs(); if ( group.eContainer() instanceof XSDParticle ) { XSDParticle cParticle = (XSDParticle) group.eContainer(); if ( cParticle.isSetMaxOccurs() ) { maxOccurs = cParticle.getMaxOccurs();
if (particle.isSetMaxOccurs()) { maxOccurs = particle.getMaxOccurs(); } else { XSDParticle cParticle = (XSDParticle) group.eContainer(); if (cParticle.isSetMaxOccurs()) { maxOccurs = cParticle.getMaxOccurs();
if (particle.isSetMaxOccurs()) { maxOccurs = particle.getMaxOccurs(); } else { XSDParticle cParticle = (XSDParticle) group.eContainer(); if (cParticle.isSetMaxOccurs()) { maxOccurs = cParticle.getMaxOccurs();
if (parentParticle.isSetMaxOccurs()) { particle.setMaxOccurs(parentParticle.getMaxOccurs()); parentParticle.unsetMaxOccurs();