Search in sources :

Example 36 with Element

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());
}
Also used : Element(org.eclipse.persistence.internal.oxm.schema.model.Element)

Aggregations

Element (org.eclipse.persistence.internal.oxm.schema.model.Element)36 ComplexType (org.eclipse.persistence.internal.oxm.schema.model.ComplexType)15 Schema (org.eclipse.persistence.internal.oxm.schema.model.Schema)15 QName (javax.xml.namespace.QName)9 XPathFragment (org.eclipse.persistence.internal.oxm.XPathFragment)8 Field (org.eclipse.persistence.internal.oxm.mappings.Field)7 Sequence (org.eclipse.persistence.internal.oxm.schema.model.Sequence)7 SimpleType (org.eclipse.persistence.internal.oxm.schema.model.SimpleType)7 XmlVirtualAccessMethodsSchema (org.eclipse.persistence.jaxb.xmlmodel.XmlVirtualAccessMethodsSchema)7 Attribute (org.eclipse.persistence.internal.oxm.schema.model.Attribute)5 Choice (org.eclipse.persistence.internal.oxm.schema.model.Choice)5 TypeDefParticle (org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle)5 ArrayList (java.util.ArrayList)4 AnyAttribute (org.eclipse.persistence.internal.oxm.schema.model.AnyAttribute)4 XMLDescriptor (org.eclipse.persistence.oxm.XMLDescriptor)4 List (java.util.List)3 Descriptor (org.eclipse.persistence.internal.oxm.mappings.Descriptor)3 JavaClass (org.eclipse.persistence.jaxb.javamodel.JavaClass)3 StringReader (java.io.StringReader)2 StringWriter (java.io.StringWriter)2