Package org.geotools.data.gen.info
Class GeneralizationInfosProviderImpl
Object
GeneralizationInfosProviderImpl
- All Implemented Interfaces:
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"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static Validator
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkVersion
(Node gInfos) protected URL
deriveURLFromSourceObject
(Object source) getGeneralizationInfos
(Object source) protected void
parseDistanceInfoNodes
(Node parentNode, GeneralizationInfo gInfo) protected void
parseGeneralizationInfoNodes
(Node parentNode, GeneralizationInfos gInfos) protected GeneralizationInfos
-
Field Details
-
GENERALIZATION_INFOS_TAG
- See Also:
-
GENERALIZATION_INFO_TAG
- See Also:
-
GENERALIZATION_TAG
- See Also:
-
FEATURE_NAME_ATTR
- See Also:
-
BASE_FEATURE_NAME_ATTR
- See Also:
-
GEOM_PROPERTY_NAME_ATTR
- See Also:
-
DISTANCE_ATTR
- See Also:
-
DATASOURCE_NAME_ATTR
- See Also:
-
DATASOURCE_NAMESPACE_NAME_ATTR
- See Also:
-
VERSION_ATTR
- See Also:
-
VALIDATOR
-
-
Constructor Details
-
GeneralizationInfosProviderImpl
public GeneralizationInfosProviderImpl()
-
-
Method Details
-
getGeneralizationInfos
- Specified by:
getGeneralizationInfos
in interfaceGeneralizationInfosProvider
- Parameters:
source
- , source of the info, concrete class depending on implementation- Returns:
- a GeneralizationInfos object
- Throws:
IOException
- in case of failureAn implementor of this method must call
GeneralizationInfos.validate()
otherwise, behavior is unexpected
-
deriveURLFromSourceObject
- Throws:
IOException
-
parseXML
- Throws:
IOException
-
parseGeneralizationInfoNodes
-
parseDistanceInfoNodes
-
checkVersion
- Throws:
IOException
-