|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
void |
accept(FilterVisitor visitor)
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 |
contains(Feature feature)
Determines whether or not the given feature's ID matches this filter. |
boolean |
equals(java.lang.Object filter)
Returns a flag indicating object equality. |
java.lang.String[] |
getFids()
Returns all the fids in this filter. |
java.util.Set |
getFidsSet()
Accessor method for fid set. |
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. |
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 |
getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.geotools.filter.Filter |
and, getFilterType, not, or |
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 contains(Feature feature)
contains
in interface FidFilter
contains
in class AbstractFilter
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 java.lang.String[] getFids()
getFids
in interface FidFilter
public java.util.Set getFidsSet()
public void removeAllFids(java.util.Collection fidsToRemove)
removeAllFids
in interface FidFilter
public void addAllFids(java.util.Collection fidsToAdd)
addAllFids
in interface FidFilter
public final void removeFid(java.lang.String fid)
removeFid
in interface FidFilter
fid
- A single feature ID.public void accept(FilterVisitor visitor)
accept
in interface Filter
accept
in class AbstractFilter
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 |