public int maxEffectiveTotalRange() { if (fType == XSParticleDecl.PARTICLE_EMPTY) { return 0; } if (fType == PARTICLE_MODELGROUP) { int max = ((XSModelGroupImpl)fValue).maxEffectiveTotalRange(); if (max == SchemaSymbols.OCCURRENCE_UNBOUNDED) return SchemaSymbols.OCCURRENCE_UNBOUNDED; if (max != 0 && fMaxOccurs == SchemaSymbols.OCCURRENCE_UNBOUNDED) return SchemaSymbols.OCCURRENCE_UNBOUNDED; return max * fMaxOccurs; } return fMaxOccurs; }