Search in sources :

Example 1 with XmlSchemaSequenceMember

use of org.apache.ws.commons.schema.XmlSchemaSequenceMember in project ddf by codice.

the class FeatureMetacardType method processXmlSchemaParticle.

private void processXmlSchemaParticle(XmlSchemaParticle particle) {
    XmlSchemaSequence schemaSequence;
    if (particle instanceof XmlSchemaSequence) {
        schemaSequence = (XmlSchemaSequence) particle;
        List<XmlSchemaSequenceMember> schemaObjectCollection = schemaSequence.getItems();
        Iterator<XmlSchemaSequenceMember> iterator = schemaObjectCollection.iterator();
        while (iterator.hasNext()) {
            Object element = iterator.next();
            if (element instanceof XmlSchemaElement) {
                XmlSchemaElement innerElement = ((XmlSchemaElement) element);
                XmlSchemaType innerEleType = innerElement.getSchemaType();
                if (innerEleType instanceof XmlSchemaComplexType) {
                    processComplexType(innerElement);
                } else if (innerEleType instanceof XmlSchemaSimpleType) {
                    processSimpleType(innerElement);
                } else if (innerEleType == null) {
                    // Check if this is the GML location Property
                    processGmlType(innerElement);
                }
            }
        }
    }
}
Also used : XmlSchemaSequence(org.apache.ws.commons.schema.XmlSchemaSequence) XmlSchemaElement(org.apache.ws.commons.schema.XmlSchemaElement) XmlSchemaSimpleType(org.apache.ws.commons.schema.XmlSchemaSimpleType) XmlSchemaSequenceMember(org.apache.ws.commons.schema.XmlSchemaSequenceMember) XmlSchemaComplexType(org.apache.ws.commons.schema.XmlSchemaComplexType) XmlSchemaType(org.apache.ws.commons.schema.XmlSchemaType)

Aggregations

XmlSchemaComplexType (org.apache.ws.commons.schema.XmlSchemaComplexType)1 XmlSchemaElement (org.apache.ws.commons.schema.XmlSchemaElement)1 XmlSchemaSequence (org.apache.ws.commons.schema.XmlSchemaSequence)1 XmlSchemaSequenceMember (org.apache.ws.commons.schema.XmlSchemaSequenceMember)1 XmlSchemaSimpleType (org.apache.ws.commons.schema.XmlSchemaSimpleType)1 XmlSchemaType (org.apache.ws.commons.schema.XmlSchemaType)1