public class AppSchemaConfiguration extends Configuration
Configuration that uses SchemaResolver to obtain schemas.
Because we do not know the dependent GML Configuration when an instance is
constructed, it must be added later using addDependency(Configuration). Failure to do
this will result in bindings not being found at encode time.
| Constructor and Description |
|---|
AppSchemaConfiguration(String namespace,
String schemaLocation,
SchemaResolver resolver)
Because we do not know the dependent GML
Configuration until runtime, it must be
specified as a constructor argument. |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(Configuration dependency)
Allow late addition of a dependency such as GML.
|
String |
getSchemaLocation()
Get the original (unresolved) schema location.
|
allDependencies, configureBindings, configureBindings, configureContext, configureEncoder, configureParser, equals, getContext, getDependencies, getDependency, getNamespaceURI, getProperties, getSchemaFileURL, getSchemaLocationResolver, getSchemaLocator, getXSD, hashCode, hasProperty, registerBindings, registerBindings, schema, setupBindings, setupBindings, setupContext, setupEncoder, setupParserpublic AppSchemaConfiguration(String namespace, String schemaLocation, SchemaResolver resolver)
Configuration until runtime, it must be
specified as a constructor argument.namespace - the namespace URIschemaLocation - URL giving canonical schema locationresolver - public String getSchemaLocation()
public void addDependency(Configuration dependency)
addDependency in class ConfigurationConfiguration.addDependency(Configuration)Copyright © 1996–2019 Geotools. All rights reserved.