return xsdTypeDefinition;
}
private boolean sameType(XSDTypeDefinition t1, XSDTypeDefinition t2)
{
XSDConcreteComponent n1 = t1, n2 = t2;
while (n1 != null && n2 != null)
{
if (n1.eClass() != n2.eClass()) break;
if (n1 instanceof XSDNamedComponent /*&& n2 instanceof XSDNamedComponent*/)
{
String s1 = ((XSDNamedComponent)n1).getName();
String s2 = ((XSDNamedComponent)n2).getName();
if (s1 == null ? s1 != s2 : !s1.equals(s2)) break;
}
n1 = n1.getContainer();
n2 = n2.getContainer();
}
return n1 == null && n2 == null;
}