/** * 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; } }
/** * Returns the XSD object representing the contents of the schema. */ public final XSDSchema getSchema() throws IOException { if (schema == null) { synchronized (this) { if (schema == null) { LOGGER.fine("building schema for schema: " + getNamespaceURI()); schema = buildSchema(); } } } return schema; }
/** * Returns the XSD object representing the contents of the schema. */ public final XSDSchema getSchema() throws IOException { if (schema == null) { synchronized (this) { if (schema == null) { LOGGER.fine("building schema for schema: " + getNamespaceURI()); schema = buildSchema(); } } } return schema; }
@Override protected XSDSchema buildSchema() throws IOException { XSDSchema schema = super.buildSchema(); schema.resolveElementDeclaration(NAMESPACE, "_Feature").eAdapters() .add(new SubstitutionGroupLeakPreventer()); schema.eAdapters().add(new ReferencingDirectiveLeakPreventer()); return schema; } }