|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.filter.FilterAbstract
org.geotools.filter.AbstractFilter
org.geotools.filter.AbstractFilterImpl
org.geotools.filter.FidFilterImpl
public class FidFilterImpl
Defines a ID filter, which holds a list of IDs ( usually feature id;s ). This filter stores a series of IDs, which are used to distinguish features uniquely.
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.
Field Summary |
---|
Fields inherited from class org.geotools.filter.AbstractFilter |
---|
filterType, permissiveConstruction |
Fields inherited from class org.geotools.filter.FilterAbstract |
---|
factory |
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 |
Fields inherited from interface org.opengis.filter.Filter |
---|
EXCLUDE, INCLUDE |
Constructor Summary | |
---|---|
protected |
FidFilterImpl()
Deprecated. use FidFilterImpl(Set) |
protected |
FidFilterImpl(java.util.Set fids)
Constructor which takes Identifier ,
not String. |
protected |
FidFilterImpl(java.lang.String initialFid)
Deprecated. use FidFilterImpl(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)
Deprecated. |
boolean |
equals(java.lang.Object filter)
Returns a flag indicating object equality. |
boolean |
evaluate(java.lang.Object 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 as Strings. |
java.util.Set |
getIdentifiers()
|
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, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter |
Methods inherited from class org.geotools.filter.FilterAbstract |
---|
accepts, eval, eval, eval, evaluate |
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, evaluate, getFilterType, not, or |
Constructor Detail |
---|
protected FidFilterImpl()
FidFilterImpl(Set)
protected FidFilterImpl(java.lang.String initialFid)
FidFilterImpl(Set)
initialFid
- The type of comparison.protected FidFilterImpl(java.util.Set fids)
Identifier
,
not String.
Method Detail |
---|
public final java.lang.String[] getFids()
getIDs()
getFids
in interface FidFilter
public java.util.Set getIDs()
getIDs
in interface org.opengis.filter.Id
Id.getIDs()
public java.util.Set getIdentifiers()
getIdentifiers
in interface org.opengis.filter.Id
Id.getIdentifiers()
public void setIDs(java.util.Set ids)
org.opengis.filter.identity.FeatureId#setIDs(Set)
public java.util.Set getFidsSet()
public final void addFid(java.lang.String fid)
addFid
in interface FidFilter
fid
- A single feature ID.public void addAllFids(java.util.Collection fidsToAdd)
addAllFids
in interface FidFilter
fidsToAdd
- A collection of feature IDs as strings.public final void removeFid(java.lang.String fid)
removeFid
in interface FidFilter
fid
- A single feature ID.public void removeAllFids(java.util.Collection fidsToRemove)
removeAllFids
in interface FidFilter
fidsToRemove
- A collection of feature IDs.public boolean evaluate(java.lang.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 org.opengis.filter.Filter
feature
- Specified feature to examine.
SimpleFeaturePropertyAccessorFactory
public java.lang.String toString()
toString
in class java.lang.Object
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);public boolean equals(java.lang.Object filter)
equals
in class java.lang.Object
filter
- the filter to test equality on.
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |