/** * Suplements the schema built by the parent by adding hte aplication schema feature typs * defined in GeoServer. */ protected XSDSchema buildSchema() throws IOException { XSDSchema wfsSchema = super.buildSchema(); wfsSchema = schemaBuilder.addApplicationTypes(wfsSchema); return wfsSchema; } }
@Override protected XSDSchema buildSchema() throws IOException { FeatureTypeInfo[] types = this.featureTypes .values() .stream() .flatMap(Collection::stream) .toArray(FeatureTypeInfo[]::new); XSDSchema schema; if (containsComplexTypes(types)) { // we have complex features so we add all the available catalog feature types schema = schemaBuilder.build(new FeatureTypeInfo[0], baseURL, true, true); schemaBuilder.addApplicationTypes(schema); } else { // simple feature so we add only the feature types we need schema = schemaBuilder.build(types, baseURL, true, true); } // add an explicit dependency on WFS 1.0.0 schema return importWfsSchema(schema); }