final public void findElemInTable(XSComplexTypeDecl type,
XSElementDecl elem,
SymbolHash elemDeclHash)
throws XMLSchemaException {
final XSElementDecl existingElem = findExistingElement(elem, elemDeclHash);
if (existingElem == null || existingElem == elem) {
return;
}
if (elem.fType != existingElem.fType) {
throw new XMLSchemaException("cos-element-consistent", new Object[] {type.fName, elem.fName});
}
if (XS11TypeHelper.isTypeTablesComparable(elem.getTypeAlternatives(), existingElem.getTypeAlternatives()) && !isTypeTablesEquivalent(elem, existingElem)) {
throw new XMLSchemaException("cos-element-consistent.4.b", new Object[] {type.fName, elem.fName});
}
}