Search in sources :

Example 16 with Attribute

use of org.eclipse.persistence.internal.oxm.schema.model.Attribute in project eclipselink by eclipse-ee4j.

the class SDOTypesGenerator method processGlobalAttributes.

private void processGlobalAttributes(Schema schema) {
    Collection<Attribute> attributes = schema.getTopLevelAttributes().values();
    if (attributes == null) {
        return;
    }
    Iterator<Attribute> attributesIter = attributes.iterator();
    while (attributesIter.hasNext()) {
        Attribute nextAttribute = attributesIter.next();
        String targetNamespace = schema.getTargetNamespace();
        if (null == targetNamespace) {
            targetNamespace = "";
        }
        processGlobalAttribute(targetNamespace, schema.getDefaultNamespace(), nextAttribute);
    }
}
Also used : Attribute(org.eclipse.persistence.internal.oxm.schema.model.Attribute)

Aggregations

Attribute (org.eclipse.persistence.internal.oxm.schema.model.Attribute)16 AnyAttribute (org.eclipse.persistence.internal.oxm.schema.model.AnyAttribute)12 Element (org.eclipse.persistence.internal.oxm.schema.model.Element)5 XPathFragment (org.eclipse.persistence.internal.oxm.XPathFragment)4 Field (org.eclipse.persistence.internal.oxm.mappings.Field)4 SimpleType (org.eclipse.persistence.internal.oxm.schema.model.SimpleType)4 ComplexType (org.eclipse.persistence.internal.oxm.schema.model.ComplexType)3 ArrayList (java.util.ArrayList)2 Vector (java.util.Vector)2 QName (javax.xml.namespace.QName)2 CoreMapping (org.eclipse.persistence.core.mappings.CoreMapping)2 DirectMapping (org.eclipse.persistence.internal.oxm.mappings.DirectMapping)2 Extension (org.eclipse.persistence.internal.oxm.schema.model.Extension)2 Schema (org.eclipse.persistence.internal.oxm.schema.model.Schema)2 SimpleContent (org.eclipse.persistence.internal.oxm.schema.model.SimpleContent)2 XmlVirtualAccessMethodsSchema (org.eclipse.persistence.jaxb.xmlmodel.XmlVirtualAccessMethodsSchema)2 Enumeration (java.util.Enumeration)1 List (java.util.List)1 CoreConverter (org.eclipse.persistence.core.mappings.converters.CoreConverter)1 AnyAttributeMapping (org.eclipse.persistence.internal.oxm.mappings.AnyAttributeMapping)1