use of org.eclipse.persistence.internal.oxm.schema.model.Element in project eclipselink by eclipse-ee4j.
the class SDOTypesGenerator method processGlobalElements.
private void processGlobalElements(Schema schema) {
Collection<Element> elements = schema.getTopLevelElements().values();
if (elements == null) {
return;
}
Iterator<Element> elementsIter = elements.iterator();
while (elementsIter.hasNext()) {
Element nextElement = elementsIter.next();
String targetNamespace = schema.getTargetNamespace();
if (null == targetNamespace) {
targetNamespace = "";
}
processGlobalElement(targetNamespace, schema.getDefaultNamespace(), nextElement);
}
// process substitution groups after properties have been created for all elements
processSubstitutionGroups(elements, schema.getTargetNamespace(), schema.getDefaultNamespace());
}
Aggregations