org.geotools.data.gen.info
Class GeneralizationInfosProviderImpl

Object
  extended by GeneralizationInfosProviderImpl
All Implemented Interfaces:
GeneralizationInfosProvider

public class GeneralizationInfosProviderImpl
extends Object
implements GeneralizationInfosProvider

Author:
Christian Mueller The default implementation for GeneralizationInfosProvider, reading the info from an XML file. The xml schema file is "/geninfos_1.0.xsd"
Module:
modules/plugin/feature-pregeneralized (gt-feature-pregeneralized.jar)

Field Summary
protected static String BASE_FEATURE_NAME_ATTR
           
protected static String DATASOURCE_NAME_ATTR
           
protected static String DATASOURCE_NAMESPACE_NAME_ATTR
           
protected static String DISTANCE_ATTR
           
protected static String FEATURE_NAME_ATTR
           
protected static String GENERALIZATION_INFO_TAG
           
protected static String GENERALIZATION_INFOS_TAG
           
protected static String GENERALIZATION_TAG
           
protected static String GEOM_PROPERTY_NAME_ATTR
           
protected static Validator VALIDATOR
           
protected static String VERSION_ATTR
           
 
Constructor Summary
GeneralizationInfosProviderImpl()
           
 
Method Summary
protected  void checkVersion(Node gInfos)
           
protected  URL deriveURLFromSourceObject(Object source)
           
 GeneralizationInfos getGeneralizationInfos(Object source)
           
protected  void parseDistanceInfoNodes(Node parentNode, GeneralizationInfo gInfo)
           
protected  void parseGeneralizationInfoNodes(Node parentNode, GeneralizationInfos gInfos)
           
protected  GeneralizationInfos parseXML(URL url)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERALIZATION_INFOS_TAG

protected static final String GENERALIZATION_INFOS_TAG
See Also:
Constant Field Values

GENERALIZATION_INFO_TAG

protected static final String GENERALIZATION_INFO_TAG
See Also:
Constant Field Values

GENERALIZATION_TAG

protected static final String GENERALIZATION_TAG
See Also:
Constant Field Values

FEATURE_NAME_ATTR

protected static final String FEATURE_NAME_ATTR
See Also:
Constant Field Values

BASE_FEATURE_NAME_ATTR

protected static final String BASE_FEATURE_NAME_ATTR
See Also:
Constant Field Values

GEOM_PROPERTY_NAME_ATTR

protected static final String GEOM_PROPERTY_NAME_ATTR
See Also:
Constant Field Values

DISTANCE_ATTR

protected static final String DISTANCE_ATTR
See Also:
Constant Field Values

DATASOURCE_NAME_ATTR

protected static final String DATASOURCE_NAME_ATTR
See Also:
Constant Field Values

DATASOURCE_NAMESPACE_NAME_ATTR

protected static final String DATASOURCE_NAMESPACE_NAME_ATTR
See Also:
Constant Field Values

VERSION_ATTR

protected static final String VERSION_ATTR
See Also:
Constant Field Values

VALIDATOR

protected static Validator VALIDATOR
Constructor Detail

GeneralizationInfosProviderImpl

public GeneralizationInfosProviderImpl()
Method Detail

getGeneralizationInfos

public GeneralizationInfos getGeneralizationInfos(Object source)
                                           throws IOException
Specified by:
getGeneralizationInfos in interface GeneralizationInfosProvider
Parameters:
source - , source of the info, concrete class depending on implementation
Returns:
a GeneralizationInfos object
Throws:
IOException - in case of failure An implementor of this method must call GeneralizationInfos.validate() otherwise, behavior is unexpected

deriveURLFromSourceObject

protected URL deriveURLFromSourceObject(Object source)
                                 throws IOException
Throws:
IOException

parseXML

protected GeneralizationInfos parseXML(URL url)
                                throws IOException
Throws:
IOException

parseGeneralizationInfoNodes

protected void parseGeneralizationInfoNodes(Node parentNode,
                                            GeneralizationInfos gInfos)

parseDistanceInfoNodes

protected void parseDistanceInfoNodes(Node parentNode,
                                      GeneralizationInfo gInfo)

checkVersion

protected void checkVersion(Node gInfos)
                     throws IOException
Throws:
IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.