/** * Returns the minimum number of occurances that this ContentModelGroup must appear * * @return the minimum number of occurances that this ContentModelGroup must appear A negative (n * < 0) value indicates that the value is unspecified. */ public int getMinOccurs() { if (_contentModel.getParticleCount() > 0) { Particle particle = _contentModel.getParticle(0); if (particle instanceof ContentModelGroup) { return particle.getMinOccurs(); } } return _contentModel.getMinOccurs(); } // -- getMinOccurs
/** * Returns the Particle at the specified index * * @param index the index of the particle to return * @returns the CMParticle at the specified index */ public Particle getParticle(int index) { Particle result = _contentModel.getParticle(index); return result; } // -- getParticle