Package org.geotools.data.gen.info
Class GeneralizationInfo
- Object
- 
- GeneralizationInfo
 
- 
 public class GeneralizationInfo extends Object Container having a base feature and 0..n generalizationsThe base feature is the original feature for which generalizations were build The feature type of the base feature is the feature type of a PregeneralizedFeature, except geometry properties holding generalized geometries if a generalized geometry is stored in a different feature source, this feature source must include all non geometry properties from the baseFeatureSource - Author:
- Christian Mueller
 
- 
- 
Constructor SummaryConstructors Constructor Description GeneralizationInfo(String baseFeatureName, String featureName, String geomPropertyName, GeneralizationInfos parent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseFeatureName()StringgetDataSourceName()StringgetDataSourceNameSpace()StringgetFeatureName()GeneralizationgetGeneralizationForDistance(Double requestedDistance)SortedSet<Generalization>getGeneralizations()StringgetGeomPropertyName()voidsetDataSourceName(String dataSourceName)voidsetDataSourceNameSpace(String namespace)voidvalidate()Validates not null instance variables
 
- 
- 
- 
Constructor Detail- 
GeneralizationInfopublic GeneralizationInfo(String baseFeatureName, String featureName, String geomPropertyName, GeneralizationInfos parent) 
 
- 
 - 
Method Detail- 
getFeatureNamepublic String getFeatureName() 
 - 
getBaseFeatureNamepublic String getBaseFeatureName() 
 - 
getGeomPropertyNamepublic String getGeomPropertyName() 
 - 
getGeneralizationspublic SortedSet<Generalization> getGeneralizations() 
 - 
getGeneralizationForDistancepublic Generalization getGeneralizationForDistance(Double requestedDistance) - Returns:
- The proper Generalization for the requested distance, null if no proper distance found example: Given are generalizations for 10.0 and 20 0<= requestedDistance < 10 ---> return null 10<= requestedDistance < 20 ---> return distance info for 10.0 20<= requestedDistance ---> return distance info for 20.0
 
 - 
getDataSourceNamepublic String getDataSourceName() - Returns:
- data source name for base feature.
 
 - 
setDataSourceNamepublic void setDataSourceName(String dataSourceName) 
 - 
getDataSourceNameSpacepublic String getDataSourceNameSpace() - Returns:
- workspace name for base feature, my be null
 
 - 
setDataSourceNameSpacepublic void setDataSourceNameSpace(String namespace) 
 - 
validatepublic void validate() throws IOExceptionValidates not null instance variables- Throws:
- IOException- 1)if data source, feature name, base feature name or geometry property name is null 2) if the validation of generalizations fails
 
 
- 
 
-