01: package org.geotools.xlink;
02:
03: import org.eclipse.xsd.util.XSDSchemaLocationResolver;
04: import org.geotools.xlink.bindings.XLINK;
05: import org.geotools.xlink.bindings.XLINKBindingConfiguration;
06: import org.geotools.xlink.bindings.XLINKSchemaLocationResolver;
07: import org.geotools.xml.BindingConfiguration;
08: import org.geotools.xml.Configuration;
09:
10: /**
11: * Parser configuration for the xlink schema.
12: *
13: * @author Justin Deoliveira, The Open Planning Project
14: *
15: */
16: public class XLINKConfiguration extends Configuration {
17:
18: /**
19: * @return {@link XLINK#NAMESPACE}, http://www.w3.org/1999/xlink
20: */
21: public String getNamespaceURI() {
22: return XLINK.NAMESPACE;
23: }
24:
25: /**
26: * @return The xlinks.xsd of the xlink schema.
27: */
28: public String getSchemaFileURL() {
29: return getSchemaLocationResolver().resolveSchemaLocation(null,
30: getNamespaceURI(), "xlinks.xsd");
31: }
32:
33: /**
34: * @return A new instance of {@link XLINKBindingConfiguration}
35: */
36: public BindingConfiguration getBindingConfiguration() {
37: return new XLINKBindingConfiguration();
38: }
39:
40: /**
41: * @return A new instance of {@link XLINKSchemaLocationResolver}
42: */
43: public XSDSchemaLocationResolver getSchemaLocationResolver() {
44: return new XLINKSchemaLocationResolver();
45: }
46:
47: }
|