01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.wfsv.xml.v1_1_0;
06:
07: import net.opengis.wfsv.WfsvFactory;
08:
09: import org.eclipse.xsd.util.XSDSchemaLocationResolver;
10: import org.geoserver.wfs.xml.FeatureTypeSchemaBuilder;
11: import org.geoserver.wfs.xml.v1_1_0.WFSConfiguration;
12: import org.geotools.xml.BindingConfiguration;
13: import org.picocontainer.MutablePicoContainer;
14: import org.vfny.geoserver.global.Data;
15:
16: /**
17: * Parser configuration for the http://www.opengis.net/wfsv schema.
18: *
19: * @generated
20: */
21: public class WFSVConfiguration extends WFSConfiguration {
22: /**
23: * Creates a new configuration.
24: *
25: * @generated
26: */
27: public WFSVConfiguration(Data catalog,
28: FeatureTypeSchemaBuilder schemaBuilder) {
29: super (catalog, schemaBuilder);
30: addDependency(new WFSConfiguration(catalog, schemaBuilder));
31: }
32:
33: /**
34: * @return the schema namespace uri: http://www.opengis.net/wfsv.
35: * @generated
36: */
37: public String getNamespaceURI() {
38: return WFSV.NAMESPACE;
39: }
40:
41: /**
42: * @return the uri to the the wfsv.xsd .
43: * @generated
44: */
45: public String getSchemaFileURL() {
46: return getSchemaLocationResolver().resolveSchemaLocation(null,
47: getNamespaceURI(), "wfsv.xsd");
48: }
49:
50: public XSDSchemaLocationResolver getSchemaLocationResolver() {
51: return new WFSVSchemaLocationResolver();
52: }
53:
54: /**
55: * @return new instanceof {@link WFSVBindingConfiguration}.
56: */
57: public BindingConfiguration getBindingConfiguration() {
58: return new WFSVBindingConfiguration();
59: }
60:
61: public void configureContext(MutablePicoContainer context) {
62: super .configureContext(context);
63: context.registerComponentInstance(WfsvFactory.eINSTANCE);
64: context
65: .registerComponentInstance(new VersionedFeaturePropertyExtractor(
66: catalog));
67: }
68: }
|