|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.AbstractFeature org.deegree.feature.AbstractFeatureCollection org.deegree.feature.GenericFeatureCollection
public class GenericFeatureCollection
Allows the representation of arbitrary FeatureCollection
s, also those that use FeatureCollectionType
s
with their own properties.
Field Summary | |
---|---|
static QName |
FEATURE_MEMBER
|
Fields inherited from class org.deegree.feature.AbstractFeature |
---|
standardProps |
Constructor Summary | |
---|---|
GenericFeatureCollection()
Creates a new empty GenericFeatureCollection instance without type information. |
|
GenericFeatureCollection(FeatureCollectionType ft,
String fid,
List<Property<?>> props,
GMLVersion version)
Creates a new GenericFeatureCollection instance with type information and content specified using
properties. |
|
GenericFeatureCollection(String fid,
Collection<Feature> memberFeatures)
Creates a new GenericFeatureCollection instance without type information that contains the given
features. |
Method Summary | ||
---|---|---|
boolean |
add(Feature e)
|
|
boolean |
addAll(Collection<? extends Feature> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
Property<Geometry>[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
|
String |
getId()
Returns the id of the feature. |
|
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(QName propName)
Returns the properties with the given name, in order. |
|
Property<?> |
getProperty(QName propName)
Returns the property with the given name. |
|
Object |
getPropertyValue(QName propName)
Returns the values of the property with the given name. |
|
Object[] |
getPropertyValues(QName propName)
Returns the values of the properties with the given name, in order. |
|
FeatureCollectionType |
getType()
Returns the type information for this feature collection. |
|
boolean |
isEmpty()
|
|
Iterator<Feature> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
void |
setId(String fid)
Sets the id of the feature. |
|
void |
setProperties(List<Property<?>> props)
Called during construction to initialize the properties of the feature. |
|
void |
setPropertyValue(QName propName,
int occurrence,
Object value)
Sets the value of a specific occurence of a property with a given name (or removes the property feature). |
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
Methods inherited from class org.deegree.feature.AbstractFeatureCollection |
---|
calcEnvelope, getMembers |
Methods inherited from class org.deegree.feature.AbstractFeature |
---|
getEnvelope, getGMLProperties, getProperties, getProperties, getProperty, getPropertyValue, getPropertyValues, getPropertyValues, 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 |
---|
getEnvelope, getProperties, getProperties, getProperty, getPropertyValue, getPropertyValues, setProperties, setPropertyValue |
Methods inherited from interface org.deegree.filter.MatchableObject |
---|
getPropertyValues |
Methods inherited from interface org.deegree.gml.GMLObject |
---|
getGMLProperties |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Field Detail |
---|
public static QName FEATURE_MEMBER
Constructor Detail |
---|
public GenericFeatureCollection(FeatureCollectionType ft, String fid, List<Property<?>> props, GMLVersion version)
GenericFeatureCollection
instance with type information and content specified using
properties.
ft
- fid
- props
- public GenericFeatureCollection(String fid, 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 String getId()
Feature
In an GML representation of the feature, this corresponds to the gml:id
(GML 3 and later) or
fid
(GML 2) attribute of the feature element.
public void setId(String fid)
Feature
In an GML representation of the feature, this corresponds to the gml:id
(GML 3 and later) or
fid
(GML 2) attribute of the feature element.
fid
- the id of the feature instancepublic QName getName()
Feature
In an GML representation of the feature, this corresponds to the feature element's name.
public Property<?>[] getProperties()
Feature
gml:name
.
public FeatureCollectionType getType()
FeatureCollection
null
public void setProperties(List<Property<?>> props) throws IllegalArgumentException
Feature
IllegalArgumentException
- if the property names or values are not compatible with the feature typepublic Iterator<Feature> iterator()
public boolean add(Feature e)
public boolean addAll(Collection<? extends Feature> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public void setPropertyValue(QName propName, int occurrence, Object 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(QName propName)
Feature
propName
- name of the requested properties
public Property<?> getProperty(QName propName)
Feature
propName
- name of the requested property
public Object getPropertyValue(QName propName)
Feature
propName
- name of the requested property
public Object[] getPropertyValues(QName propName)
Feature
propName
- name of the requested property
public Property<Geometry>[] getGeometryProperties()
Feature
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |