org.geotools.xml
Class AppSchemaConfiguration

Object
  extended by Configuration
      extended by AppSchemaConfiguration

public class AppSchemaConfiguration
extends Configuration

XML encoder 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.

Author:
Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)

Constructor Summary
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.
 
Method Summary
 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, getSchemaFileURL, getSchemaLocationResolver, getSchemaLocator, getXSD, hashCode, hasProperty, registerBindings, registerBindings, schema, setupBindings, setupBindings, setupContext, setupEncoder, setupParser
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppSchemaConfiguration

public 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.

Parameters:
namespace - the namespace URI
schemaLocation - URL giving canonical schema location
resolver -
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 class Configuration
See Also:
Configuration.addDependency(org.geotools.xml.Configuration)


Copyright © 1996-2014 Geotools. All Rights Reserved.