| com.vividsolutions.jump.feature.Feature
All known Subclasses: com.vividsolutions.jump.feature.AbstractBasicFeature,
Feature | public interface Feature extends Cloneable,Comparable(Code) | | A representation of an object in the world, including its location, geometry,
and other attributes. A Feature has spatial attributes (polygons, points, etc.)
and non-spatial attributes (strings, dates, and numbers).
In the current Workbench model, each feature has one spatial attribute (Geometry)
and zero or more non-spatial attributes.
|
Method Summary | |
abstract public Object | clone() Clones this Feature. | abstract public Feature | clone(boolean deep) Clones this Feature. | abstract public Object | getAttribute(int i) Returns the specified attribute. | abstract public Object | getAttribute(String name) Returns the specified attribute. | abstract public Object[] | getAttributes() A low-level accessor that is not normally used. | abstract public double | getDouble(int attributeIndex) Returns a double attribute. | abstract public Geometry | getGeometry() Convenience method for returning the spatial attribute. | abstract public int | getID() Returns a number that uniquely identifies this feature. | abstract public int | getInteger(int attributeIndex) Returns a integer attribute. | abstract public FeatureSchema | getSchema() | abstract public String | getString(int attributeIndex) Returns the result of calling #toString on the attribute at the given (zero-based)
index, or "" if it is null. | abstract public String | getString(String attributeName) Returns the result of calling #toString on the attribute with the given
(case-sensitive) name, or "" if it is null. | abstract public void | setAttribute(int attributeIndex, Object newAttribute) Sets the specified attribute. | abstract public void | setAttribute(String attributeName, Object newAttribute) Sets the specified attribute. | abstract public void | setAttributes(Object[] attributes) A low-level accessor that is not normally used. | abstract public void | setGeometry(Geometry geometry) Convenience method for setting the spatial attribute. | abstract public void | setSchema(FeatureSchema schema) A low-level accessor that is not normally used. |
clone | abstract public Object clone()(Code) | | Clones this Feature. The geometry will also be cloned.
a new Feature with the same attributes as this Feature |
clone | abstract 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 | abstract public Object getAttribute(int i)(Code) | | Returns the specified attribute.
Parameters: i - the index of the attribute to get the attribute |
getAttribute | abstract public Object getAttribute(String name)(Code) | | Returns the specified attribute.
Parameters: name - the name of the attribute to get the attribute |
getAttributes | abstract public Object[] getAttributes()(Code) | | A low-level accessor that is not normally used.
|
getDouble | abstract 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 | abstract public Geometry getGeometry()(Code) | | Convenience method for returning the spatial attribute.
the feature's spatial attribute |
getID | abstract public int getID()(Code) | | Returns a number that uniquely identifies this feature. This number is not
persistent. (Implementors can obtain an ID from FeatureUtil#nextID).
n, where this feature is the nth Feature created by this application |
getInteger | abstract 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 | abstract public FeatureSchema getSchema()(Code) | | Returns the feature's metadata
the metadata describing the names and types of the attributes |
getString | abstract public String getString(int attributeIndex)(Code) | | Returns the result of calling #toString on the attribute at the given (zero-based)
index, or "" if it is null. Note that this method may be called even if the
attribute is not of type AttributeType.STRING.
|
getString | abstract public String getString(String attributeName)(Code) | | Returns the result of calling #toString on the attribute with the given
(case-sensitive) name, or "" if it is null. Note that this method may be called even if the
attribute is not of type AttributeType.STRING.
|
setAttribute | abstract public void setAttribute(int attributeIndex, Object newAttribute)(Code) | | Sets the specified attribute.
Parameters: attributeIndex - the array index at which to put the new attribute Parameters: newAttribute - the new attribute |
setAttribute | abstract 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 |
setAttributes | abstract public void setAttributes(Object[] attributes)(Code) | | A low-level accessor that is not normally used.
Parameters: attributes - may have a differentlength than the current attributes. |
setGeometry | abstract 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 | abstract public void setSchema(FeatureSchema schema)(Code) | | A low-level accessor that is not normally used.
|
|
|