|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.n52.oxf.feature.OXFFeature
public class OXFFeature
| Constructor Summary | |
|---|---|
OXFFeature(String id,
OXFFeatureType featureType)
|
|
OXFFeature(String id,
OXFFeatureType featureType,
org.opengis.feature.FeatureCollection parent)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object feature)
|
Object |
getAttribute(int index)
not supported |
Object |
getAttribute(String name)
Returns the value of the named attribute of this Feature. |
com.vividsolutions.jts.geom.Geometry |
getBoundingBox()
|
org.opengis.spatialschema.geometry.Envelope |
getBounds()
not supported |
OXFFeatureType |
getFeatureType()
Returns the description of this feature's type. |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
|
String |
getID()
Returns a String that uniquely identifies this Feature instance with this Java virtual machine
(and perhaps uniquely in a broader scope as well). |
org.opengis.feature.FeatureCollection |
getParent()
Returns the collection in which this Feature is contained. |
String[] |
getSpecifiedAttributes()
|
String |
produceDescription()
|
void |
setAttribute(int index,
Object value)
not supported |
void |
setAttribute(String name,
Object value)
Sets the value of the named attribute. |
void |
setGeometry(com.vividsolutions.jts.geom.Geometry g)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OXFFeature(String id,
OXFFeatureType featureType)
public OXFFeature(String id,
OXFFeatureType featureType,
org.opengis.feature.FeatureCollection parent)
| Method Detail |
|---|
public boolean equals(Object feature)
equals in class Objectfeature -
public String[] getSpecifiedAttributes()
OXFFeature.public OXFFeatureType getFeatureType()
getFeatureType in interface org.opengis.feature.Feature
public Object getAttribute(String name)
throws IllegalArgumentException
Feature. If the maximum cardinality of this
attribute is one, then this method returns the value of the attribute. Otherwise, if the maximum
cardinality of this attribute is greater than one, then this method will return an instance of
Collection.
getAttribute in interface org.opengis.feature.Featurename - The name of the feature attribute to retrieve.
IllegalArgumentException - If an attribute of the given name does not exist in this feature's type.
public void setAttribute(String name,
Object value)
throws IllegalArgumentException,
ClassCastException
Collection if the
attribute's maximum cardinality is greater than one.
setAttribute in interface org.opengis.feature.Featurename - The name of the attribute whose value to set.value - The new value of the given attribute.
IllegalArgumentException - If value is a collection (other than a singleton)
and it's a single-valued attribute, or if the given name does not match any of the attributes
of this feature.
ClassCastException - If the attribute type is a type other than Object in the FeatureType and an
incorrect type is passed in.public String getID()
Feature instance with this Java virtual machine
(and perhaps uniquely in a broader scope as well). This value is not necessarily one of the attributes
of this feature. Some features may implement this method by concatenating this feature's type name with
the String values of all of the primary key attributes. (This is only a suggestion, however, and a
given Feature implementation may choose to compute the ID in whatever way makes sense.)
getID in interface org.opengis.feature.Featurepublic org.opengis.feature.FeatureCollection getParent()
getParent in interface org.opengis.feature.Featurepublic com.vividsolutions.jts.geom.Geometry getBoundingBox()
envelope of the geometry of this feature. or null if this object does not
contain a geometry.public com.vividsolutions.jts.geom.Geometry getGeometry()
public void setGeometry(com.vividsolutions.jts.geom.Geometry g)
g - public String toString()
toString in class Objectpublic String produceDescription()
public void setAttribute(int index,
Object value)
throws UnsupportedOperationException
setAttribute in interface org.opengis.feature.FeatureUnsupportedOperationException
public Object getAttribute(int index)
throws UnsupportedOperationException
getAttribute in interface org.opengis.feature.FeatureUnsupportedOperationException
public org.opengis.spatialschema.geometry.Envelope getBounds()
throws UnsupportedOperationException
getBounds in interface org.opengis.feature.FeatureUnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||