|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.AbstractBasicFeature
public abstract class AbstractBasicFeature
Default implementation of the Feature interface. Subclasses need implement only the four remaining Feature methods: #getAttribute, #setAttribute, #getAttributes, #setAttributes
| Constructor Summary | |
|---|---|
AbstractBasicFeature(FeatureSchema featureSchema)
Creates a new Feature based on the given metadata. |
|
| Method Summary | |
|---|---|
java.lang.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(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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vividsolutions.jump.feature.Feature |
|---|
getAttribute, getAttributes, setAttribute, setAttributes |
| Constructor Detail |
|---|
public AbstractBasicFeature(FeatureSchema featureSchema)
featureSchema - the metadata containing information on
each column| Method Detail |
|---|
public void setSchema(FeatureSchema schema)
setSchema in interface Featurepublic int getID()
getID in interface Feature
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 get
public java.lang.String getString(int attributeIndex)
getString in interface FeatureattributeIndex - the array index of the attribute
public int getInteger(int attributeIndex)
getInteger in interface FeatureattributeIndex - the index of the attribute to retrieve
public double getDouble(int attributeIndex)
getDouble in interface FeatureattributeIndex - the index of the attribute to retrieve
public java.lang.String getString(java.lang.String attributeName)
getString in interface FeatureattributeName - the name of the attribute to retrieve
public com.vividsolutions.jts.geom.Geometry getGeometry()
getGeometry in interface Featurepublic FeatureSchema getSchema()
getSchema in interface Featurepublic java.lang.Object clone()
clone in interface Featureclone in class java.lang.Objectpublic Feature clone(boolean deep)
clone in interface Featuredeep - whether or not to clone the geometry
public static BasicFeature clone(Feature feature,
boolean deep)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
public static int compare(Feature a,
Feature b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||