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 Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static Validatorprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckVersion(Node gInfos) protected URLderiveURLFromSourceObject(Object source) getGeneralizationInfos(Object source) protected voidparseDistanceInfoNodes(Node parentNode, GeneralizationInfo gInfo) protected voidparseGeneralizationInfoNodes(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:
getGeneralizationInfosin 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
-