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>
class represents a GMl feature collection
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionconstructorFeatureCollection(Map<String, AbstractFeature> members) constructor -
Method Summary
Modifier and TypeMethodDescriptionaddMember(AbstractFeature member) Get featuresbooleanCheck whether members are setiterator()removeMember(String featureIdentifier) voidsetMembers(Map<String, AbstractFeature> members) Set featuresMethods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncodedMethods 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, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FeatureCollection
public FeatureCollection()constructor -
FeatureCollection
constructor- Parameters:
members- collection with feature members of this collection
-
-
Method Details
-
getMembers
Get features- Returns:
- the members
-
setMembers
Set features- Parameters:
members- the members to set
-
addMember
-
removeMember
- Parameters:
featureIdentifier- the id- Returns:
- the removed feature
- See Also:
-
isSetMembers
public boolean isSetMembers()Check whether members are set- Returns:
true, if members are set
-
iterator
- Specified by:
iteratorin interfaceIterable<AbstractFeature>
-