Search in sources :

Example 41 with XmlSchemaSimpleType

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

the class FeatureMetacardTypeTest method testfeatureMetacardTypeFindLongProperties.

@Test
public void testfeatureMetacardTypeFindLongProperties() {
    XmlSchema schema = new XmlSchema();
    XmlSchemaElement longElement = new XmlSchemaElement(schema, true);
    longElement.setSchemaType(new XmlSchemaSimpleType(schema, false));
    longElement.setSchemaTypeName(Constants.XSD_LONG);
    longElement.setName(ELEMENT_NAME_1);
    schema.getElements().put(new QName(ELEMENT_NAME_1), longElement);
    FeatureMetacardType featureMetacardType = new FeatureMetacardType(schema, FEATURE_TYPE, NON_QUERYABLE_PROPS, Wfs20Constants.GML_3_2_NAMESPACE);
    assertAttributeDescriptor(featureMetacardType, ELEMENT_NAME_1, BasicTypes.LONG_TYPE);
}
Also used : XmlSchema(org.apache.ws.commons.schema.XmlSchema) XmlSchemaElement(org.apache.ws.commons.schema.XmlSchemaElement) XmlSchemaSimpleType(org.apache.ws.commons.schema.XmlSchemaSimpleType) QName(javax.xml.namespace.QName) FeatureMetacardType(org.codice.ddf.spatial.ogc.wfs.catalog.common.FeatureMetacardType) Test(org.junit.Test)

Aggregations

XmlSchemaSimpleType (org.apache.ws.commons.schema.XmlSchemaSimpleType)41 XmlSchemaElement (org.apache.ws.commons.schema.XmlSchemaElement)36 XmlSchema (org.apache.ws.commons.schema.XmlSchema)28 Test (org.junit.Test)27 QName (javax.xml.namespace.QName)26 FeatureMetacardType (org.codice.ddf.spatial.ogc.wfs.catalog.common.FeatureMetacardType)26 XmlSchemaComplexType (org.apache.ws.commons.schema.XmlSchemaComplexType)16 XmlSchemaObjectCollection (org.apache.ws.commons.schema.XmlSchemaObjectCollection)9 XmlSchemaGroupBase (org.apache.ws.commons.schema.XmlSchemaGroupBase)8 XmlSchemaParticle (org.apache.ws.commons.schema.XmlSchemaParticle)8 XmlSchemaObject (org.apache.ws.commons.schema.XmlSchemaObject)7 XmlSchemaType (org.apache.ws.commons.schema.XmlSchemaType)7 XmlSchemaComplexContentExtension (org.apache.ws.commons.schema.XmlSchemaComplexContentExtension)6 ParameterInfo (org.talend.designer.webservice.ws.wsdlinfo.ParameterInfo)6 AttributeDescriptor (ddf.catalog.data.AttributeDescriptor)4 Iterator (java.util.Iterator)4 XmlSchemaAttribute (org.apache.ws.commons.schema.XmlSchemaAttribute)4 XmlSchemaSequence (org.apache.ws.commons.schema.XmlSchemaSequence)4 ArrayList (java.util.ArrayList)3 XmlSchemaAny (org.apache.ws.commons.schema.XmlSchemaAny)3