| java.lang.Object com.vividsolutions.jump.feature.AbstractBasicFeature
All known Subclasses: com.vividsolutions.jump.feature.BasicFeature,
AbstractBasicFeature | abstract public class AbstractBasicFeature implements Feature,Serializable(Code) | | Default implementation of the Feature interface. Subclasses need
implement only the four remaining Feature methods: #getAttribute,
#setAttribute, #getAttributes, #setAttributes
|
AbstractBasicFeature | public AbstractBasicFeature(FeatureSchema featureSchema)(Code) | | Creates a new Feature based on the given metadata.
Parameters: featureSchema - the metadata containing information oneach column |
clone | public Object clone()(Code) | | Clones this Feature. The geometry will also be cloned.
a new Feature with the same attributes as this Feature |
clone | public Feature clone(boolean deep)(Code) | | Clones this Feature.
Parameters: deep - whether or not to clone the geometry a new Feature with the same attributes as this Feature |
getAttribute | public Object getAttribute(String name)(Code) | | Returns the specified attribute.
Parameters: name - the name of the attribute to get the attribute |
getDouble | public double getDouble(int attributeIndex)(Code) | | Returns a double attribute.
Parameters: attributeIndex - the index of the attribute to retrieve the double attribute with the given name |
getGeometry | public Geometry getGeometry()(Code) | | Convenience method for returning the spatial attribute.
the feature's spatial attribute |
getID | public int getID()(Code) | | Returns a number that uniquely identifies this feature. This number is not
persistent.
n, where this feature is the nth Feature created by this application |
getInteger | public int getInteger(int attributeIndex)(Code) | | Returns a integer attribute.
Parameters: attributeIndex - the index of the attribute to retrieve the integer attribute with the given name |
getSchema | public FeatureSchema getSchema()(Code) | | Returns the feature's metadata
the metadata describing the names and types of the attributes |
getString | public String getString(int attributeIndex)(Code) | | Returns a String attribute. The attribute at the given index must be a
String.
Parameters: attributeIndex - the array index of the attribute the String attribute at the given index |
getString | public String getString(String attributeName)(Code) | | Returns a String attribute. The attribute with the given name must be a
String.
Parameters: attributeName - the name of the attribute to retrieve the String attribute with the given name |
setAttribute | public void setAttribute(String attributeName, Object newAttribute)(Code) | | Sets the specified attribute.
Parameters: attributeName - the name of the attribute to set Parameters: newAttribute - the new attribute |
setGeometry | public void setGeometry(Geometry geometry)(Code) | | Convenience method for setting the spatial attribute. JUMP Workbench
PlugIns and CursorTools should not use this method directly, but should use an
EditTransaction, so that the proper events are fired.
Parameters: geometry - the new spatial attribute |
setSchema | public void setSchema(FeatureSchema schema)(Code) | | A low-level accessor that is not normally used.
|
|
|