org.geotools.gml3.bindings
Class GML3ParsingUtils

java.lang.Object
  extended by org.geotools.gml3.bindings.GML3ParsingUtils

public class GML3ParsingUtils
extends java.lang.Object

Utility class for gml3 parsing.

Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org

Constructor Summary
GML3ParsingUtils()
           
 
Method Summary
static org.opengis.feature.simple.SimpleFeatureType featureType(org.eclipse.xsd.XSDElementDeclaration element, BindingWalkerFactory bwFactory)
          Turns a xml type definition into a geotools feature type.
static org.opengis.feature.simple.SimpleFeature parseFeature(ElementInstance instance, Node node, java.lang.Object value, FeatureTypeCache ftCache, BindingWalkerFactory bwFactory)
          Utility method to implement Binding.parse for a binding which parses into A feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GML3ParsingUtils

public GML3ParsingUtils()
Method Detail

parseFeature

public static org.opengis.feature.simple.SimpleFeature parseFeature(ElementInstance instance,
                                                                    Node node,
                                                                    java.lang.Object value,
                                                                    FeatureTypeCache ftCache,
                                                                    BindingWalkerFactory bwFactory)
                                                             throws java.lang.Exception
Utility method to implement Binding.parse for a binding which parses into A feature.

Parameters:
instance - The instance being parsed.
node - The parse tree.
value - The value from the last binding in the chain.
ftCache - The feature type cache.
bwFactory - Binding walker factory.
Returns:
A feature.
Throws:
java.lang.Exception

featureType

public static org.opengis.feature.simple.SimpleFeatureType featureType(org.eclipse.xsd.XSDElementDeclaration element,
                                                                       BindingWalkerFactory bwFactory)
                                                                throws java.lang.Exception
Turns a xml type definition into a geotools feature type.

Parameters:
type - The xml schema tupe.
Returns:
The corresponding geotools feature type.
Throws:
java.lang.Exception


Copyright © 1996-2010 Geotools. All Rights Reserved.