예제 #1
0
 /**
  * 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
예제 #2
0
 /**
  * Returns the number of particles contained within this ContentModelGroup
  *
  * @return the number of particles
  */
 public int getParticleCount() {
   return _contentModel.getParticleCount();
 } // -- getParticleCount