public abstract class AbstractBasicFeature extends Object implements Feature, Serializable
| Constructor and Description |
|---|
AbstractBasicFeature(FeatureSchema featureSchema)
Creates a new Feature based on the given metadata.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones this Feature.
|
Feature |
clone(boolean deep)
Clones this Feature.
|
static BasicFeature |
clone(Feature feature,
boolean deep) |
static int |
compare(Feature a,
Feature b) |
int |
compareTo(Object o) |
Object |
getAttribute(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
|
String |
getString(int attributeIndex)
Returns a String attribute.
|
String |
getString(String attributeName)
Returns a String attribute.
|
void |
setAttribute(String attributeName,
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.
|
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(String attributeName, 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 Object getAttribute(String name)
getAttribute in interface Featurename - the name of the attribute to getpublic 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 String getString(String attributeName)
public com.vividsolutions.jts.geom.Geometry getGeometry()
getGeometry in interface Featurepublic FeatureSchema getSchema()
public Object clone()
public Feature clone(boolean deep)
public static BasicFeature clone(Feature feature, boolean deep)
public int compareTo(Object o)
compareTo in interface ComparableCopyright © 2015. All rights reserved.