public XSChoiceComplexTypeImpl(XSType pOwner, XsTComplexType pType, XsEChoice pChoice) throws SAXException {
super(pOwner, pType);
choice = pChoice;
XSGroup group = pOwner.getXSSchema().getXSObjectFactory().newXSGroup(pOwner, choice);
group.validate();
XSParticleImpl particle = new XSParticleImpl(group);
particle.setMaxOccurs(pChoice.getMaxOccurs());
particle.setMinOccurs(pChoice.getMinOccurs());
if (group.getParticles().length == 0) {
throw new LocSAXException("The complex type must not have an empty element group, as it is a choice.",