Package 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"
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description GeneralizationInfosProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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
-
-
Method Detail
-
getGeneralizationInfos
public GeneralizationInfos getGeneralizationInfos(Object source) throws IOException
- 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
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
-
-