Package org.n52.shetland.ogc.om.features
Class FeatureCollection
- java.lang.Object
-
- org.n52.shetland.ogc.gml.AbstractGML
-
- org.n52.shetland.ogc.gml.AbstractFeature
-
- org.n52.shetland.ogc.om.features.FeatureCollection
-
- All Implemented Interfaces:
Iterable<AbstractFeature>,HasDefaultEncoding<AbstractFeature>
public class FeatureCollection extends AbstractFeature implements Iterable<AbstractFeature>
class represents a GMl feature collection- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description FeatureCollection()constructorFeatureCollection(Map<String,AbstractFeature> members)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureCollectionaddMember(AbstractFeature member)Map<String,AbstractFeature>getMembers()Get featuresbooleanisSetMembers()Check whether members are setIterator<AbstractFeature>iterator()AbstractFeatureremoveMember(String featureIdentifier)voidsetMembers(Map<String,AbstractFeature> members)Set features-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncoded
-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, equals, getDescription, getFirstName, getGmlId, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
FeatureCollection
public FeatureCollection()
constructor
-
FeatureCollection
public FeatureCollection(Map<String,AbstractFeature> members)
constructor- Parameters:
members- collection with feature members of this collection
-
-
Method Detail
-
getMembers
public Map<String,AbstractFeature> getMembers()
Get features- Returns:
- the members
-
setMembers
public void setMembers(Map<String,AbstractFeature> members)
Set features- Parameters:
members- the members to set
-
addMember
public FeatureCollection addMember(AbstractFeature member)
-
removeMember
public AbstractFeature removeMember(String featureIdentifier)
- Parameters:
featureIdentifier- the id- Returns:
- the removed feature
- See Also:
Map.remove(Object)
-
isSetMembers
public boolean isSetMembers()
Check whether members are set- Returns:
true, if members are set
-
iterator
public Iterator<AbstractFeature> iterator()
- Specified by:
iteratorin interfaceIterable<AbstractFeature>
-
-