public abstract class AbstractBasicFeature extends java.lang.Object implements Feature, java.io.Serializable
| Constructor and Description | 
|---|
AbstractBasicFeature(FeatureSchema featureSchema)
Creates a new Feature based on the given metadata. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
clone()
Clones this Feature. 
 | 
Feature | 
clone(boolean deep)
Clones this Feature. 
 | 
Feature | 
clone(boolean deep,
     boolean copyPK)
Clones this Feature. 
 | 
static BasicFeature | 
clone(Feature feature,
     boolean deep,
     boolean copyPK)  | 
static int | 
compare(Feature a,
       Feature b)  | 
int | 
compareTo(java.lang.Object o)  | 
java.lang.Object | 
getAttribute(java.lang.String name)
Returns the specified attribute. 
 | 
double | 
getDouble(int attributeIndex)
Returns a double attribute. 
 | 
com.vividsolutions.jts.geom.Geometry | 
getGeometry()
Convenience method for returning the spatial attribute. 
 | 
int | 
getID()
Returns a number that uniquely identifies this feature. 
 | 
int | 
getInteger(int attributeIndex)
Returns a integer attribute. 
 | 
FeatureSchema | 
getSchema()
Returns the feature's metadata 
 | 
java.lang.String | 
getString(int attributeIndex)
Returns a String attribute. 
 | 
java.lang.String | 
getString(java.lang.String attributeName)
Returns a String attribute. 
 | 
java.lang.Object | 
getUserData(java.lang.Object key)
Gets the userData value for this key. 
 | 
void | 
removeAllUserData(java.lang.Object key)
Remove all the userData keys and nullify the userData map itself. 
 | 
void | 
removeUserData(java.lang.Object key)
Removes the userData value for this key. 
 | 
void | 
setAttribute(java.lang.String attributeName,
            java.lang.Object newAttribute)
Sets the specified attribute. 
 | 
void | 
setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Convenience method for setting the spatial attribute. 
 | 
void | 
setSchema(FeatureSchema schema)
A low-level accessor that is not normally used. 
 | 
void | 
setUserData(java.lang.Object key,
           java.lang.Object value)
Sets a new value in userData replacing the old one for this key. 
 | 
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributes, setAttribute, setAttributespublic AbstractBasicFeature(FeatureSchema featureSchema)
featureSchema - the metadata containing information on
      each columnpublic void setSchema(FeatureSchema schema)
public int getID()
public void setAttribute(java.lang.String attributeName,
                java.lang.Object newAttribute)
setAttribute in interface FeatureattributeName - the name of the attribute to setnewAttribute - the new attributepublic void setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
setGeometry in interface Featuregeometry - the new spatial attributepublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface Featurename - the name of the attribute to getpublic java.lang.String getString(int attributeIndex)
public int getInteger(int attributeIndex)
getInteger in interface FeatureattributeIndex - the index of the attribute to retrievepublic double getDouble(int attributeIndex)
public java.lang.String getString(java.lang.String attributeName)
public com.vividsolutions.jts.geom.Geometry getGeometry()
getGeometry in interface Featurepublic FeatureSchema getSchema()
public java.lang.Object clone()
public Feature clone(boolean deep)
public Feature clone(boolean deep, boolean copyPK)
public static BasicFeature clone(Feature feature, boolean deep, boolean copyPK)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic void setUserData(java.lang.Object key,
               java.lang.Object value)
public java.lang.Object getUserData(java.lang.Object key)
public void removeUserData(java.lang.Object key)
public void removeAllUserData(java.lang.Object key)