org.geotools.gml3.v3_2
Class GMLConfiguration

Object
  extended by Configuration
      extended by GMLConfiguration

public class GMLConfiguration
extends Configuration

Parser configuration for the http://www.opengis.net/gml/3.2 schema.


Field Summary
static QName NO_SRS_DIMENSION
          Boolean property which controls whether geometry and envelope objects are encoded with an srs dimension attribute.
 
Constructor Summary
GMLConfiguration()
          Creates a new configuration.
GMLConfiguration(boolean arcSurfaceSupport)
          Creates a new configuration specifying whether to enable extended arc/surface support.
 
Method Summary
protected  void configureContext(MutablePicoContainer container)
          Configures the root context to be used when parsing elements.
 SrsSyntax getSrsSyntax()
          Returns the syntax to use for encoding srs uris.
 boolean isExtendedArcSurfaceSupport()
           
protected  void registerBindings(MutablePicoContainer container)
          Registers the bindings for the configuration.
 void setExtendedArcSurfaceSupport(boolean extArcSurfaceSupport)
          Flag that when set triggers extended support for arcs and surfaces.
 void setSrsSyntax(SrsSyntax srsSyntax)
          Sets the syntax to use for encoding srs uris.
 
Methods inherited from class Configuration
addDependency, allDependencies, configureBindings, configureBindings, configureEncoder, configureParser, equals, getContext, getDependencies, getDependency, getNamespaceURI, getProperties, getSchemaFileURL, getSchemaLocationResolver, getSchemaLocator, getXSD, hashCode, hasProperty, registerBindings, schema, setupBindings, setupBindings, setupContext, setupEncoder, setupParser
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_SRS_DIMENSION

public static final QName NO_SRS_DIMENSION
Boolean property which controls whether geometry and envelope objects are encoded with an srs dimension attribute.

Constructor Detail

GMLConfiguration

public GMLConfiguration()
Creates a new configuration.


GMLConfiguration

public GMLConfiguration(boolean arcSurfaceSupport)
Creates a new configuration specifying whether to enable extended arc/surface support.

Method Detail

setExtendedArcSurfaceSupport

public void setExtendedArcSurfaceSupport(boolean extArcSurfaceSupport)
Flag that when set triggers extended support for arcs and surfaces.


isExtendedArcSurfaceSupport

public boolean isExtendedArcSurfaceSupport()

setSrsSyntax

public void setSrsSyntax(SrsSyntax srsSyntax)
Sets the syntax to use for encoding srs uris.

If this method is not explicitly called SrsSyntax#URN2 is used as the default.


getSrsSyntax

public SrsSyntax getSrsSyntax()
Returns the syntax to use for encoding srs uris.


registerBindings

protected final void registerBindings(MutablePicoContainer container)
Registers the bindings for the configuration.

Overrides:
registerBindings in class Configuration
Parameters:
container - Container containing all bindings, keyed by QName.

configureContext

protected void configureContext(MutablePicoContainer container)
Description copied from class: Configuration
Configures the root context to be used when parsing elements.

The context satisifies any depenencencies needed by a binding. This is often a factory used to create something.

This method should be overriden. The default implementation does nothing.

Overrides:
configureContext in class Configuration
Parameters:
container - The container representing the context.


Copyright © 1996-2014 Geotools. All Rights Reserved.