|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.filter.FilterAbstract org.geotools.filter.AbstractFilter org.geotools.filter.AbstractFilterImpl org.geotools.filter.FidFilterImpl
Defines a feature ID filter, which holds a list of feature IDs. This filter stores a series of feature IDs, which are used to distinguish features uniquely.
Field Summary |
Fields inherited from class org.geotools.filter.AbstractFilter |
filterType, permissiveConstruction |
Fields inherited from interface org.geotools.filter.Filter |
ALL, NONE |
Fields inherited from interface org.geotools.filter.FilterType |
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, NULL |
Constructor Summary | |
protected |
FidFilterImpl()
Empty constructor. |
protected |
FidFilterImpl(java.lang.String initialFid)
Constructor with first fid set |
Method Summary | |
java.lang.Object |
accept(org.opengis.filter.FilterVisitor visitor,
java.lang.Object extraData)
Used by FilterVisitors to perform some action on this filter instance. |
void |
addAllFids(java.util.Collection fidsToAdd)
Adds a collection of feature IDs to the filter. |
void |
addFid(java.lang.String fid)
Adds a feature ID to the filter. |
boolean |
equals(java.lang.Object filter)
Returns a flag indicating object equality. |
boolean |
evaluate(Feature feature)
Determines whether or not the given feature's ID matches this filter. |
java.lang.String[] |
getFids()
Deprecated. use getIDs() |
java.util.Set |
getFidsSet()
Accessor method for fid set. |
java.util.Set |
getIDs()
|
int |
hashCode()
Override of hashCode method. |
void |
removeAllFids(java.util.Collection fidsToRemove)
Removes a collection of feature IDs from the filter. |
void |
removeFid(java.lang.String fid)
Removes a feature ID from the filter. |
void |
setIDs(java.util.Set ids)
|
java.lang.String |
toString()
Returns a string representation of this filter. |
Methods inherited from class org.geotools.filter.AbstractFilterImpl |
and, not, or |
Methods inherited from class org.geotools.filter.AbstractFilter |
accept, contains, evaluate, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter |
Methods inherited from class org.geotools.filter.FilterAbstract |
accepts, comparable, eval, eval |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.geotools.filter.FidFilter |
contains |
Methods inherited from interface org.geotools.filter.Filter |
accept, and, getFilterType, not, or |
Methods inherited from interface org.opengis.filter.Filter |
evaluate |
Constructor Detail |
protected FidFilterImpl()
protected FidFilterImpl(java.lang.String initialFid)
initialFid
- The type of comparison.Method Detail |
public final void addFid(java.lang.String fid)
addFid
in interface FidFilter
fid
- A single feature ID.public boolean evaluate(Feature feature)
evaluate
in interface Filter
evaluate
in class FilterAbstract
feature
- Specified feature to examine.
public java.lang.String toString()
public boolean equals(java.lang.Object filter)
filter
- the filter to test equality on.
public int hashCode()
public final java.lang.String[] getFids()
getIDs()
getFids
in interface FidFilter
public java.util.Set getIDs()
getIDs
in interface org.opengis.filter.FeatureId
FeatureId.getIDs()
public void setIDs(java.util.Set ids)
setIDs
in interface org.opengis.filter.FeatureId
FeatureId.setIDs(Set)
public java.util.Set getFidsSet()
public void removeAllFids(java.util.Collection fidsToRemove)
removeAllFids
in interface FidFilter
fidsToRemove
- A collection of feature IDs.public void addAllFids(java.util.Collection fidsToAdd)
addAllFids
in interface FidFilter
fidsToAdd
- A collection of feature IDs.public final void removeFid(java.lang.String fid)
removeFid
in interface FidFilter
fid
- A single feature ID.public java.lang.Object accept(org.opengis.filter.FilterVisitor visitor, java.lang.Object extraData)
accept
in interface org.opengis.filter.Filter
accept
in class FilterAbstract
visitor
- The visitor which requires access to this filter, the
method must call visitor.visit(this);
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |