org.geotools.data.gen.info
Class Generalization

Object
  extended by Generalization
All Implemented Interfaces:
Comparable<Generalization>

public class Generalization
extends Object
implements Comparable<Generalization>

Author:
Christian Mueller This class holds info for one generalization distance the distance used in generalization featureName the name of the feature geomPropertyName the name of the geometry property in the feature dataSourceName the name of the datasource dataSourceNameSpace the namespace of the datasource, may be null

Constructor Summary
Generalization(Double distance, String featureName, String geomPropertyName, GeneralizationInfo parent)
           
 
Method Summary
 int compareTo(Generalization other)
           
 String getDataSourceName()
           
 String getDataSourceNameSpace()
           
 Double getDistance()
           
 String getFeatureName()
           
 String getGeomPropertyName()
           
 void setDataSourceName(String dataSourceName)
           
 void setDataSourceNameSpace(String namespace)
           
 void validate()
          Validates not null instance variables
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generalization

public Generalization(Double distance,
                      String featureName,
                      String geomPropertyName,
                      GeneralizationInfo parent)
Method Detail

getDistance

public Double getDistance()

getFeatureName

public String getFeatureName()

getGeomPropertyName

public String getGeomPropertyName()

compareTo

public int compareTo(Generalization other)
Specified by:
compareTo in interface Comparable<Generalization>

getDataSourceName

public String getDataSourceName()

setDataSourceName

public void setDataSourceName(String dataSourceName)

getDataSourceNameSpace

public String getDataSourceNameSpace()

setDataSourceNameSpace

public void setDataSourceNameSpace(String namespace)

validate

public void validate()
              throws IOException
Validates not null instance variables

Throws:
IOException - if data source, feature name or geometry property name is null


Copyright © 1996-2009 Geotools. All Rights Reserved.