|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.AbstractFeature
org.deegree.feature.AbstractFeatureCollection
org.deegree.feature.GenericFeatureCollection
public class GenericFeatureCollection
Allows the representation of arbitrary FeatureCollections, including those that use
FeatureCollectionTypes with additional properties.
| Field Summary |
|---|
| Fields inherited from class org.deegree.feature.AbstractFeature |
|---|
fid, ft, standardProps |
| Constructor Summary | |
|---|---|
GenericFeatureCollection()
Creates a new empty GenericFeatureCollection instance without type information. |
|
GenericFeatureCollection(FeatureCollectionType ft,
java.lang.String fid,
java.util.List<Property> props,
GMLVersion version)
Creates a new GenericFeatureCollection instance with type information and content specified using
properties. |
|
GenericFeatureCollection(java.lang.String fid,
java.util.Collection<Feature> memberFeatures)
Creates a new GenericFeatureCollection instance without type information that contains the given
features. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(Feature e)
|
|
boolean |
addAll(java.util.Collection<? extends Feature> c)
|
|
void |
clear()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection<?> c)
|
|
FeatureInputStream |
getFeatureStream()
|
|
Property[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
|
javax.xml.namespace.QName |
getName()
Returns the name of the feature. |
|
Property[] |
getProperties()
Returns all properties in order, excluding standard GML properties such as gml:name. |
|
Property[] |
getProperties(javax.xml.namespace.QName propName)
Returns the properties with the given name, in order. |
|
Property |
getProperty(javax.xml.namespace.QName propName)
Returns the property with the given name. |
|
boolean |
isEmpty()
|
|
java.util.Iterator<Feature> |
iterator()
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection<?> c)
|
|
boolean |
retainAll(java.util.Collection<?> c)
|
|
void |
setProperties(java.util.List<Property> props)
Called during construction to initialize the properties of the feature. |
|
void |
setPropertyValue(javax.xml.namespace.QName propName,
int occurrence,
TypedObjectNode value)
Sets the value of a specific occurrence of a property with a given name (or removes the property feature). |
|
int |
size()
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class org.deegree.feature.AbstractFeatureCollection |
|---|
calcEnvelope, getEnvelope, getMembers, getType |
| Methods inherited from class org.deegree.feature.AbstractFeature |
|---|
getGMLProperties, getId, getProperties, getProperties, getProperty, setId, setProperties, setPropertyValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.feature.Feature |
|---|
getGMLProperties, getId, getProperties, getProperties, getProperty, setId, setProperties, setPropertyValue |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public GenericFeatureCollection(FeatureCollectionType ft,
java.lang.String fid,
java.util.List<Property> props,
GMLVersion version)
GenericFeatureCollection instance with type information and content specified using
properties.
ft - feature collection type, must not be nullfid - feature id, may be nullprops - properties (including feature member/feature member array properties), must not be nullversion - GML version (determines the names/types of the standard properties), or null (then no
standard GML properties are allowed)
public GenericFeatureCollection(java.lang.String fid,
java.util.Collection<Feature> memberFeatures)
GenericFeatureCollection instance without type information that contains the given
features.
fid - memberFeatures - public GenericFeatureCollection()
GenericFeatureCollection instance without type information.
| Method Detail |
|---|
public javax.xml.namespace.QName getName()
FeatureIn a GML representation of the feature, this corresponds to the feature element's name.
getName in interface FeaturegetName in class AbstractFeaturenullpublic Property[] getProperties()
Featuregml:name.
null
public void setProperties(java.util.List<Property> props)
throws java.lang.IllegalArgumentException
Feature
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature typepublic java.util.Iterator<Feature> iterator()
public boolean add(Feature e)
public boolean addAll(java.util.Collection<? extends Feature> c)
public void clear()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean isEmpty()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public void setPropertyValue(javax.xml.namespace.QName propName,
int occurrence,
TypedObjectNode value)
Feature
propName - property nameoccurrence - index of the property, starting with zero. If the property is not a multi-property (i.e. maxOccurs=1),
this is always zero.value - new value of the property or null (removes the property)public Property[] getProperties(javax.xml.namespace.QName propName)
Feature
propName - name of the requested properties
nullpublic Property getProperty(javax.xml.namespace.QName propName)
Feature
propName - name of the requested property
public Property[] getGeometryProperties()
Feature
public FeatureInputStream getFeatureStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||