01: package org.geotools.ml;
02:
03: import org.eclipse.xsd.util.XSDSchemaLocationResolver;
04: import org.geotools.ml.bindings.ML;
05: import org.geotools.ml.bindings.MLBindingConfiguration;
06: import org.geotools.ml.bindings.MLSchemaLocationResolver;
07: import org.geotools.xml.BindingConfiguration;
08: import org.geotools.xml.Configuration;
09:
10: public class MLConfiguration extends Configuration {
11:
12: public String getNamespaceURI() {
13: return ML.NAMESPACE;
14: }
15:
16: public String getSchemaFileURL() {
17: return getSchemaLocationResolver().resolveSchemaLocation(null,
18: ML.NAMESPACE, "mails.xsd");
19: }
20:
21: public BindingConfiguration getBindingConfiguration() {
22: return new MLBindingConfiguration();
23: }
24:
25: public XSDSchemaLocationResolver getSchemaLocationResolver() {
26: return new MLSchemaLocationResolver();
27: }
28:
29: }
|