org.geotools.data.gen.info
Class GeneralizationInfosProviderImpl
Object
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"
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GeneralizationInfosProviderImpl
public GeneralizationInfosProviderImpl()
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-2009 Geotools. All Rights Reserved.