processElement(targetNamespace, defaultNamespace, null, null, element, true, true);
}
}
private SDOType processElement(String targetNamespace, String defaultNamespace, SDOType owningType, TypeDefParticle typeDefParticle, Element element, boolean isGlobal, boolean isMany) {
SDOType type = null;
boolean addedNR = addNextNamespaceResolver(element.getAttributesMap());
ComplexType complexType = element.getComplexType();
boolean qualified = true;
if (!isGlobal) {
qualified = rootSchema.isElementFormDefault();
}
if (!isMany && maxOccursGreaterThanOne(element.getMaxOccurs())) {
isMany = true;
}
if (complexType != null) {
type = processComplexType(targetNamespace, defaultNamespace, element.getName(), complexType);
type.setXsdLocalName(element.getName());
type.setXsd(true);
processSimpleElement(targetNamespace, defaultNamespace, owningType, type, typeDefParticle, element, qualified, isGlobal, isMany);
} else if (element.getSimpleType() != null) {
type = processSimpleType(targetNamespace, defaultNamespace, element.getName(), element.getSimpleType());
type.setXsdLocalName(element.getName());
type.setXsd(true);
processSimpleElement(targetNamespace, defaultNamespace, owningType, type, typeDefParticle, element, qualified, isGlobal, isMany);
} else {
processSimpleElement(targetNamespace, defaultNamespace, owningType, null, typeDefParticle, element, qualified, isGlobal, isMany);
}
if (addedNR) {