clone.setTargetNamespace(GML.NAMESPACE); se.setSubstitutionGroupAffiliation(clone);
element.setSubstitutionGroupAffiliation(_FEATURE);
private void buildSchemaContent( FeatureTypeInfo featureTypeMeta, XSDSchema schema, XSDFactory factory, String baseUrl) throws IOException { if (!findTypeInSchema(featureTypeMeta, schema, factory)) { // build the type manually FeatureType featureType = featureTypeMeta.getFeatureType(); if (featureTypeMeta.isCircularArcPresent() && this.getClass().equals(GML3.class)) { featureType = new CurveTypeWrapper(featureType); } XSDComplexTypeDefinition xsdComplexType = buildComplexSchemaContent(featureType, schema, factory); XSDElementDeclaration element = factory.createXSDElementDeclaration(); element.setName(featureTypeMeta.getName()); element.setTargetNamespace(featureTypeMeta.getNamespace().getURI()); synchronized (Schemas.class) { // this call changes the global schemas too, need to be synchronized element.setSubstitutionGroupAffiliation(getFeatureElement()); } element.setTypeDefinition(xsdComplexType); schema.getContents().add(element); schema.updateElement(); } }
element.setTargetNamespace(featureTypeMeta.getNamespace().getURI()); synchronized (Schemas.class) { element.setSubstitutionGroupAffiliation(getFeatureElement());
element.setName(name); element.setSubstitutionGroupAffiliation( schema.resolveElementDeclaration(GML.NAMESPACE, "_Feature")); element.setTypeDefinition(complexType);
xsdElementDeclaration.setSubstitutionGroupAffiliation(xsdAffiliation);