|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFilterAbstract
AbstractFilter
AbstractFilterImpl
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 AbstractFilter |
|---|
filterType, permissiveConstruction |
| Fields inherited from class FilterAbstract |
|---|
factory |
| Fields inherited from interface Filter |
|---|
ALL, NONE |
| Fields inherited from interface Filter |
|---|
EXCLUDE, INCLUDE |
| Constructor Summary | |
|---|---|
protected |
FidFilterImpl()
Deprecated. use FidFilterImpl(Set) |
protected |
FidFilterImpl(Set fids)
Constructor which takes Identifier,
not String. |
protected |
FidFilterImpl(String initialFid)
Deprecated. use FidFilterImpl(Set) |
| Method Summary | |
|---|---|
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)
Deprecated. |
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. |
String[] |
getFids()
Deprecated. use getIDs() |
Set |
getFidsSet()
Accessor method for fid set as Strings. |
Set |
getIdentifiers()
Returns the set of identifiers used by this filter. |
Set |
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. |
| Methods inherited from class AbstractFilterImpl |
|---|
and, not, or |
| Methods inherited from class AbstractFilter |
|---|
accept, contains, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter |
| Methods inherited from class FilterAbstract |
|---|
accepts, eval, eval, eval, evaluate |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface FidFilter |
|---|
contains |
| Methods inherited from interface Filter |
|---|
accept, and, evaluate, getFilterType, not, or |
| Constructor Detail |
|---|
protected FidFilterImpl()
FidFilterImpl(Set)
protected FidFilterImpl(String initialFid)
FidFilterImpl(Set)
initialFid - The type of comparison.protected FidFilterImpl(Set fids)
Identifier,
not String.
| Method Detail |
|---|
public final String[] getFids()
getIDs()
getFids in interface FidFilterpublic Set getIDs()
Id
getIDs in interface IdId.getIDs()public Set getIdentifiers()
Id
getIdentifiers in interface IdId.getIdentifiers()public void setIDs(Set ids)
org.opengis.filter.identity.FeatureId#setIDs(Set)public Set getFidsSet()
public final void addFid(String fid)
addFid in interface FidFilterfid - A single feature ID.public void addAllFids(Collection fidsToAdd)
addAllFids in interface FidFilterfidsToAdd - A collection of feature IDs as strings.public final void removeFid(String fid)
removeFid in interface FidFilterfid - A single feature ID.public void removeAllFids(Collection fidsToRemove)
removeAllFids in interface FidFilterfidsToRemove - 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()
toString in class Object
public Object accept(FilterVisitor visitor,
Object extraData)
accept in interface Filteraccept in class FilterAbstractvisitor - The visitor which requires access to this filter, the method
must call visitor.visit(this);public boolean equals(Object filter)
equals in class Objectfilter - the filter to test equality on.
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||