|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjump.core.apitools.objecttyperoles.PirolFeatureCollection
public class PirolFeatureCollection
Class that wraps a FeatureDataset and adds methods to get and set meta information objects.
de.fho.jump.pirol.utilities.metaData.MetaInformationHandler#createPirolFeatureCollection(FeatureCollection)| Field Summary | |
|---|---|
protected FeatureCollection |
featureDataSet
|
protected MetaDataMap |
metaInformation
|
protected FeatureCollectionRole[] |
roles
|
| Constructor Summary | |
|---|---|
PirolFeatureCollection()
Constructor - for java2xml, only!! |
|
PirolFeatureCollection(FeatureCollection featureDataSet,
FeatureCollectionRole initRole)
|
|
| Method Summary | |
|---|---|
void |
add(Feature feature)
Adds a feature to this collection. |
void |
addAll(java.util.Collection features)
Adds multiple features to this collection. |
void |
addRole(FeatureCollectionRole role)
|
void |
addXmlRole(FeatureCollectionRole role)
for java2xml |
void |
clear()
Removes all features from this collection. |
boolean |
equals(java.lang.Object arg0)
|
protected void |
finalize()
|
com.vividsolutions.jts.geom.Envelope |
getEnvelope()
Returns the bounds of this collection. |
FeatureCollection |
getFeatureDataSet()
for java2xml |
java.util.List |
getFeatures()
Returns an unmodifiable List of the features in this collection |
FeatureSchema |
getFeatureSchema()
Returns information about this FeatureCollection |
MetaDataMap |
getMetaInformation()
|
FeatureCollectionRole |
getRole(FeatureCollectionRole role)
Check if this FeatureCollection has a role like the given one |
FeatureCollectionRole |
getRole(FeatureCollectionRoleTypes role)
Check if this FeatureCollection has a role like the given one |
FeatureCollectionRole |
getRole(int roleId)
Check if this FeatureCollection has a role with the given ID |
FeatureCollectionRole[] |
getRoles()
|
FeatureCollection |
getWrappee()
the PirolFeatureCollection is a wrapper for other feature collections in some cases one might want to work with the original FC. |
java.util.Collection |
getXmlRoles()
for java2xml |
int |
hashCode()
|
void |
invalidateEnvelope(boolean simpleInvalidation)
|
boolean |
isEmpty()
Returns whether this collection has no features. |
java.util.Iterator |
iterator()
Returns an Iterator over the features |
java.util.List |
query(com.vividsolutions.jts.geom.Envelope envelope)
A quick search for features, using an envelope comparison. |
java.util.Collection |
remove(com.vividsolutions.jts.geom.Envelope env)
Removes the features which intersect the given envelope |
void |
remove(Feature feature)
Removes a feature from this collection. |
void |
removeAll(java.util.Collection features)
Removes multiple features from this collection. |
void |
removeRole(FeatureCollectionRole role)
|
void |
setFeatureDataSet(FeatureCollection featureDataSet)
for java2xml |
void |
setMetaInformation(MetaDataMap metaInformation)
|
int |
size()
Returns the number of features in this collection. |
Feature[] |
toArray()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected FeatureCollection featureDataSet
protected MetaDataMap metaInformation
protected FeatureCollectionRole[] roles
| Constructor Detail |
|---|
public PirolFeatureCollection(FeatureCollection featureDataSet,
FeatureCollectionRole initRole)
public PirolFeatureCollection()
| Method Detail |
|---|
public java.util.Collection getXmlRoles()
public void addXmlRole(FeatureCollectionRole role)
public FeatureCollection getFeatureDataSet()
public void setFeatureDataSet(FeatureCollection featureDataSet)
public void addRole(FeatureCollectionRole role)
public void removeRole(FeatureCollectionRole role)
public FeatureCollectionRole[] getRoles()
public FeatureCollectionRole getRole(FeatureCollectionRole role)
role - the role to check for
PirolFeatureCollectionRoleTypespublic FeatureCollectionRole getRole(FeatureCollectionRoleTypes role)
role - the role to check for
PirolFeatureCollectionRoleTypespublic FeatureCollectionRole getRole(int roleId)
roleId - id of the role type to check for
PirolFeatureCollectionRoleTypespublic MetaDataMap getMetaInformation()
getMetaInformation in interface ObjectContainingMetaInformationpublic void setMetaInformation(MetaDataMap metaInformation)
setMetaInformation in interface ObjectContainingMetaInformationpublic void invalidateEnvelope(boolean simpleInvalidation)
public void add(Feature feature)
FeatureCollection
add in interface FeatureCollectionfeature - a Feature to add to the end of this collectionpublic void addAll(java.util.Collection features)
FeatureCollection
addAll in interface FeatureCollectionpublic void clear()
FeatureCollection
clear in interface FeatureCollectionpublic boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectpublic com.vividsolutions.jts.geom.Envelope getEnvelope()
FeatureCollection
getEnvelope in interface FeatureCollectionpublic java.util.List getFeatures()
FeatureCollection
getFeatures in interface FeatureCollectionpublic FeatureSchema getFeatureSchema()
FeatureCollection
getFeatureSchema in interface FeatureCollectionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isEmpty()
FeatureCollection
isEmpty in interface FeatureCollectionpublic java.util.Iterator iterator()
FeatureCollection
iterator in interface FeatureCollectionpublic java.util.List query(com.vividsolutions.jts.geom.Envelope envelope)
FeatureCollection
query in interface FeatureCollectionenvelope - the envelope to query against
public java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
FeatureCollection
remove in interface FeatureCollectionpublic void remove(Feature feature)
FeatureCollection
remove in interface FeatureCollectionfeature - a Feature to remove from this collectionpublic void removeAll(java.util.Collection features)
FeatureCollection
removeAll in interface FeatureCollectionpublic int size()
FeatureCollection
size in interface FeatureCollectionpublic java.lang.String toString()
toString in class java.lang.Objectpublic Feature[] toArray()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic FeatureCollection getWrappee()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||