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, getXSD, hashCode, hasProperty, registerBindings, registerBindings, setupBindings, setupContext, setupEncoder, setupParser
public 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 locationpublic String getSchemaLocation()
public void addDependency(Configuration dependency)
addDependency
in class Configuration
Configuration.addDependency(Configuration)
Copyright © 1996–2023 Geotools. All rights reserved.