elements.
Change-Id: I4f8df343ddfcf9c19e24d4d8563be64b3103fa54
QName type = topLevelElement.getType();
if (!type.getNamespaceURI().equals(SCHEMA_NS)) {
SchemaObject obj = complexTypeName.get(type.getLocalPart());
- // if (obj == null)
- // obj = simpleTypeName.get(type.getLocalPart());
if (obj != null) {
inheritance.baseClass = getName(obj);
inheritance.type = InheritanceType.ComplexType;
}
+ else {
+ obj = simpleTypeName.get(type.getLocalPart());
+ if (obj != null)
+ getAtomicTypeInheritance(type, inheritance);
+ }
} else {
TypeEntry entry = getTypeEntry(type);
if (entry != null) {