org.geotools.data.gen.info
Class Generalization

java.lang.Object
  extended by org.geotools.data.gen.info.Generalization
All Implemented Interfaces:
java.lang.Comparable<Generalization>

public class Generalization
extends java.lang.Object
implements java.lang.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(java.lang.Double distance, java.lang.String featureName, java.lang.String geomPropertyName, GeneralizationInfo parent)
           
 
Method Summary
 int compareTo(Generalization other)
           
 java.lang.String getDataSourceName()
           
 java.lang.String getDataSourceNameSpace()
           
 java.lang.Double getDistance()
           
 java.lang.String getFeatureName()
           
 java.lang.String getGeomPropertyName()
           
 void setDataSourceName(java.lang.String dataSourceName)
           
 void setDataSourceNameSpace(java.lang.String namespace)
           
 void validate()
          Validates not null instance variables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generalization

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

getDistance

public java.lang.Double getDistance()

getFeatureName

public java.lang.String getFeatureName()

getGeomPropertyName

public java.lang.String getGeomPropertyName()

compareTo

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

getDataSourceName

public java.lang.String getDataSourceName()

setDataSourceName

public void setDataSourceName(java.lang.String dataSourceName)

getDataSourceNameSpace

public java.lang.String getDataSourceNameSpace()

setDataSourceNameSpace

public void setDataSourceNameSpace(java.lang.String namespace)

validate

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

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


Copyright © 1996-2010 Geotools. All Rights Reserved.