org.deegree.feature
Class AbstractFeatureCollection
java.lang.Object
org.deegree.feature.AbstractFeature
org.deegree.feature.AbstractFeatureCollection
- All Implemented Interfaces:
- Iterable<Feature>, Collection<Feature>, GMLObject, Object, TypedObjectNode, Feature, FeatureCollection
- Direct Known Subclasses:
- GenericFeatureCollection
public abstract class AbstractFeatureCollection
- extends AbstractFeature
- implements FeatureCollection
Abstract base class for common FeatureCollection implementations.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
| Methods inherited from class org.deegree.feature.AbstractFeature |
getExtraProperties, getGMLProperties, getId, getName, getProperties, getProperties, getProperty, setExtraProperties, 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 |
getExtraProperties, getGeometryProperties, getGMLProperties, getId, getName, getProperties, getProperties, getProperties, getProperties, getProperty, getProperty, setExtraProperties, setId, setProperties, setProperties, setPropertyValue, setPropertyValue |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
AbstractFeatureCollection
protected AbstractFeatureCollection(String fid,
FeatureCollectionType ft,
ExtraProps extraProps)
- Creates a new
AbstractFeatureCollection instance.
- Parameters:
fid - feature id or null if the feature is anonymous (discouraged for most use cases)ft - feature type, must not be nullextraProps - extra properties, may be null
getType
public FeatureCollectionType getType()
- Description copied from interface:
Feature
- Returns the type information for this feature.
- Specified by:
getType in interface Feature- Specified by:
getType in interface FeatureCollection- Overrides:
getType in class AbstractFeature
- Returns:
- the type information, never
null
getMembers
public FeatureCollection getMembers(Filter filter,
XPathEvaluator<Feature> evaluator)
throws FilterEvaluationException
- Description copied from interface:
FeatureCollection
- Returns the member features that match the given
Filter.
- Specified by:
getMembers in interface FeatureCollection
- Parameters:
filter - Filter to be applied, must not be nullevaluator - evaluator to use for evaluating XPath expressions, must not be null
- Returns:
- matching feature instances as a new
FeatureCollection
- Throws:
FilterEvaluationException - if an exception occurs during the evaluation of the Filter
getEnvelope
public Envelope getEnvelope()
- Description copied from interface:
Feature
- Returns the envelope of the feature.
- Specified by:
getEnvelope in interface Feature- Overrides:
getEnvelope in class AbstractFeature
- Returns:
- the envelope of the feature, or
null if the feature has no envelope information / geometry
properties
calcEnvelope
protected Envelope calcEnvelope()
- Description copied from class:
AbstractFeature
- Helper method for calculating the envelope of a feature.
- Overrides:
calcEnvelope in class AbstractFeature
- Returns:
- envelope of all geometry properties of the feature
Copyright © 2011. All Rights Reserved.