public class FidFilterImpl extends AbstractFilter implements Id
Please note that addAllFids( Collection ) may be a performance hog; uDig makes use of its own implementation of FidFilter in order to reuse the internal set of fids between uses.
TODO: this class shoul be renamed to IdFilterImpl
ALL, BETWEEN, COMPARE_EQUALS, COMPARE_GREATER_THAN, COMPARE_GREATER_THAN_EQUAL, COMPARE_LESS_THAN, COMPARE_LESS_THAN_EQUAL, COMPARE_NOT_EQUALS, FID, GEOMETRY_BBOX, GEOMETRY_BEYOND, GEOMETRY_CONTAINS, GEOMETRY_CROSSES, GEOMETRY_DISJOINT, GEOMETRY_DWITHIN, GEOMETRY_EQUALS, GEOMETRY_INTERSECTS, GEOMETRY_OVERLAPS, GEOMETRY_TOUCHES, GEOMETRY_WITHIN, LIKE, LOGIC_AND, LOGIC_NOT, LOGIC_OR, NONE, NULL| Modifier | Constructor and Description |
|---|---|
protected |
FidFilterImpl(Set<? extends Identifier> fids)
Constructor which takes
Identifier, not String. |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(FilterVisitor visitor,
Object extraData)
Used by FilterVisitors to perform some action on this filter instance.
|
void |
addAllFids(Collection fidsToAdd)
Adds a collection of feature IDs to the filter.
|
void |
addFid(String fid)
Adds a feature ID to the filter.
|
boolean |
equals(Object filter)
Returns a flag indicating object equality.
|
boolean |
evaluate(Object feature)
Determines whether or not the given feature's ID matches this filter.
|
Set<String> |
getFidsSet()
Accessor method for fid set as Strings.
|
Set<Identifier> |
getIdentifiers()
Returns the set of identifiers used by this filter.
|
Set<Object> |
getIDs()
Set of IDs representing the Identifiers used by this filter.
|
int |
hashCode()
Override of hashCode method.
|
void |
removeAllFids(Collection fidsToRemove)
Removes a collection of feature IDs from the filter.
|
void |
removeFid(String fid)
Removes a feature ID from the filter.
|
void |
setIDs(Set ids) |
String |
toString()
Returns a string representation of this filter.
|
isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilteraccepts, eval, evalprotected FidFilterImpl(Set<? extends Identifier> fids)
Identifier, not String.public Set<Object> getIDs()
IdgetIDs in interface IdId.getIDs()public Set<Identifier> getIdentifiers()
IdgetIdentifiers in interface IdId.getIdentifiers()public void setIDs(Set ids)
org.opengis.filter.identity.FeatureId#setIDs(Set)public Set<String> getFidsSet()
public final void addFid(String fid)
fid - A single feature ID.public void addAllFids(Collection fidsToAdd)
fidsToAdd - A collection of feature IDs as strings.public final void removeFid(String fid)
fid - A single feature ID.public void removeAllFids(Collection fidsToRemove)
fidsToRemove - A collection of feature IDs.public boolean evaluate(Object feature)
In order to get the object's ID, the PropertyAccessor capable of dealing with
feature has to support the request of the expression "@id"
evaluate in interface Filterfeature - Specified feature to examine.SimpleFeaturePropertyAccessorFactorypublic String toString()
public Object accept(FilterVisitor visitor, Object extraData)
public boolean equals(Object filter)
Copyright © 1996–2021 Geotools. All rights reserved.