01: package org.geotools.xml;
02:
03: import javax.xml.namespace.QName;
04:
05: /**
06: * Creates the binding for a qualified name.
07: * <p>
08: * An instance of this factory is placed in the context and available to
09: * bindings via constructor injection.
10: * </p>
11: * @author Justin Deoliveira, The Open Planning Project
12: *
13: */
14: public interface BindingFactory {
15:
16: /**
17: * Creates the binding from a qualified name.
18: * <p>
19: * Example usage.
20: * <pre>
21: * //Load the binding for xs int
22: * QName name = new QName( "http://www.w3.org/2001/XMLSchema", "int" );
23: * Binding binding = bindingFactory.createBinding( name );
24: * </pre>
25: * </p>
26: *
27: * @param name The qualified name of a schema type, element, or attribute.
28: *
29: * @return The binding for <code>name</code>, or <code>null</code>.
30: */
31: Binding createBinding(QName name);
32: }
|