Class AppSchemaConfiguration
- Object
-
- Configuration
-
- AppSchemaConfiguration
-
public class AppSchemaConfiguration extends Configuration
XML encoderConfiguration
that usesSchemaResolver
to obtain schemas.Because we do not know the dependent GML
Configuration
when an instance is constructed, it must be added later usingaddDependency(Configuration)
. Failure to do this will result in bindings not being found at encode time.- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
-
Constructor Summary
Constructors Constructor Description AppSchemaConfiguration(String namespace, String schemaLocation, SchemaResolver resolver)
Because we do not know the dependent GMLConfiguration
until runtime, it must be specified as a constructor argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDependency(Configuration dependency)
Allow late addition of a dependency such as GML.String
getSchemaLocation()
Get the original (unresolved) schema location.-
Methods inherited from class Configuration
allDependencies, configureBindings, configureBindings, configureContext, configureEncoder, configureParser, equals, getContext, getDependencies, getDependency, getNamespaceURI, getProperties, getXSD, hashCode, hasProperty, registerBindings, registerBindings, setupBindings, setupContext, setupEncoder, setupParser
-
-
-
-
Constructor Detail
-
AppSchemaConfiguration
public AppSchemaConfiguration(String namespace, String schemaLocation, SchemaResolver resolver)
Because we do not know the dependent GMLConfiguration
until runtime, it must be specified as a constructor argument.- Parameters:
namespace
- the namespace URIschemaLocation
- URL giving canonical schema location
-
-
Method Detail
-
getSchemaLocation
public String getSchemaLocation()
Get the original (unresolved) schema location.- Returns:
- the schema location
-
addDependency
public void addDependency(Configuration dependency)
Allow late addition of a dependency such as GML.- Overrides:
addDependency
in classConfiguration
- See Also:
Configuration.addDependency(Configuration)
-
-