|
|||||||||||
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.LogicFilterImpl
Defines a logic filter (the only filter type that contains other filters). This filter holds one or more filters together and relates them logically with an internally defined type (AND, OR, NOT).
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 |
LogicFilterImpl(Filter filter1,
Filter filter2,
short filterType)
Convenience constructor to create an AND/OR logic filter. |
protected |
LogicFilterImpl(Filter filter,
short filterType)
Convenience constructor to create a NOT logic filter. |
protected |
LogicFilterImpl(short filterType)
Constructor with type (must be valid). |
Method Summary | |
void |
accept(FilterVisitor visitor)
Used by FilterVisitors to perform some action on this filter instance. |
void |
addFilter(Filter filter)
Adds a sub filter to this filter. |
Filter |
and(Filter filter)
Implements a logical AND with this filter and returns the merged filter. |
boolean |
contains(Feature feature)
Determines whether or not a given feature is 'inside' this filter. |
boolean |
equals(java.lang.Object obj)
Compares this filter to the specified object. |
java.util.Iterator |
getFilterIterator()
Gets an iterator for the filters held by this logic filter. |
int |
hashCode()
Override of hashCode method. |
Filter |
not()
Implements a logical NOT with this filter and returns the merged filter. |
Filter |
or(Filter filter)
Implements a logical OR with this filter and returns the merged filter. |
java.lang.String |
toString()
Returns a string representation of this filter. |
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 |
getFilterType |
Constructor Detail |
protected LogicFilterImpl(short filterType) throws IllegalFilterException
filterType
- The final relation between all sub filters.
IllegalFilterException
- If the filtertype is not a logic type.protected LogicFilterImpl(Filter filter, short filterType) throws IllegalFilterException
filter
- The initial sub filter.filterType
- The final relation between all sub filters.
IllegalFilterException
- Does not conform to logic filter
structureprotected LogicFilterImpl(Filter filter1, Filter filter2, short filterType) throws IllegalFilterException
filter1
- An initial sub filter.filter2
- An initial sub filter.filterType
- The final relation between all sub filters.
IllegalFilterException
- Does not conform to logic filter
structureMethod Detail |
public final void addFilter(Filter filter) throws IllegalFilterException
addFilter
in interface LogicFilter
filter
- Specified filter to add to the sub filter list.
IllegalFilterException
- Does not conform to logic filter
structurepublic java.util.Iterator getFilterIterator()
getFilterIterator
in interface LogicFilter
public boolean contains(Feature feature)
contains
in interface LogicFilter
contains
in class AbstractFilter
feature
- Specified feature to examine.
public Filter or(Filter filter)
or
in interface LogicFilter
or
in class AbstractFilterImpl
filter
- Parent of the filter: must implement GMLHandlerGeometry.
public Filter and(Filter filter)
and
in interface LogicFilter
and
in class AbstractFilterImpl
filter
- Parent of the filter: must implement GMLHandlerGeometry.
public Filter not()
not
in interface LogicFilter
not
in class AbstractFilterImpl
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj
- - the object to compare this LogicFilter against.
public int hashCode()
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 |