// check whether there is conflict between any two leaves
for (int i = 1; i < fNumElements; i++) {
for (int j = i+1; j < fNumElements; j++) {
if (xsConstraints.overlapUPA(fElements[i], fElements[j], subGroupHandler)) {
// REVISIT: do we want to report all errors? or just one?
throw new XMLSchemaException("cos-nonambig", new Object[]{fElements[i].toString(),
fElements[j].toString()});
}
}
}
for (int i = fNumElements; i < fNumTotal; i++) {
for (int j = i+1; j < fNumTotal; j++) {
if (xsConstraints.overlapUPA(fWildcards[i], fWildcards[j])) {
// REVISIT: do we want to report all errors? or just one?
throw new XMLSchemaException("cos-nonambig", new Object[]{fWildcards[i].toString(),
fWildcards[j].toString()});
}
}
}
return false;