public class GeneralizationInfosProviderImpl extends Object implements GeneralizationInfosProvider
The default implementation for GeneralizationInfosProvider, reading the info from an XML file.
The xml schema file is "/geninfos_1.0.xsd"
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
GeneralizationInfosProviderImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
protected static final String GENERALIZATION_INFOS_TAG
protected static final String GENERALIZATION_INFO_TAG
protected static final String GENERALIZATION_TAG
protected static final String FEATURE_NAME_ATTR
protected static final String BASE_FEATURE_NAME_ATTR
protected static final String GEOM_PROPERTY_NAME_ATTR
protected static final String DISTANCE_ATTR
protected static final String DATASOURCE_NAME_ATTR
protected static final String DATASOURCE_NAMESPACE_NAME_ATTR
protected static final String VERSION_ATTR
protected static Validator VALIDATOR
public GeneralizationInfos getGeneralizationInfos(Object source) throws IOException
getGeneralizationInfos
in interface GeneralizationInfosProvider
source
- , source of the info, concrete class depending on implementationIOException
- in case of failure
An implementor of this method must call GeneralizationInfos.validate()
otherwise, behavior is unexpected
protected URL deriveURLFromSourceObject(Object source) throws IOException
IOException
protected GeneralizationInfos parseXML(URL url) throws IOException
IOException
protected void parseGeneralizationInfoNodes(Node parentNode, GeneralizationInfos gInfos)
protected void parseDistanceInfoNodes(Node parentNode, GeneralizationInfo gInfo)
protected void checkVersion(Node gInfos) throws IOException
IOException
Copyright © 1996–2019 Geotools. All rights reserved.