| java.lang.Object org.geotools.filter.FilterAbstract org.geotools.filter.AbstractFilter org.geotools.filter.BinaryLogicAbstract org.geotools.filter.LogicFilterImpl
All known Subclasses: org.geotools.filter.OrImpl, org.geotools.filter.NotImpl, org.geotools.filter.AndImpl,
LogicFilterImpl | abstract public class LogicFilterImpl extends BinaryLogicAbstract implements LogicFilter(Code) | | 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).
author: Rob Hranac, TOPP version: $Id: LogicFilterImpl.java 27862 2007-11-12 19:51:19Z desruisseaux $ |
Method Summary | |
abstract public Object | accept(FilterVisitor visitor, Object extraData) Used by FilterVisitors to perform some action on this filter instance.
Typicaly used by Filter decoders, but may also be used by any thing
which needs infomration from filter structure. | final public void | addFilter(org.opengis.filter.Filter filter) Adds a sub filter to this filter. | public Filter | and(org.opengis.filter.Filter filter) Implements a logical AND with this filter and returns the merged filter.
Parameters: filter - Parent of the filter: must implement GMLHandlerGeometry. | public boolean | equals(Object obj) Compares this filter to the specified object. | public Iterator | getFilterIterator() Gets an iterator for the filters held by this logic filter. | List | getSubFilters() package private method to get the internal storage of filters. | public int | hashCode() Override of hashCode method. | public Filter | not() Implements a logical NOT with this filter and returns the merged filter. | public Filter | or(org.opengis.filter.Filter filter) Implements a logical OR with this filter and returns the merged filter.
Parameters: filter - Parent of the filter: must implement GMLHandlerGeometry. | public String | toString() Returns a string representation of this filter. |
LogicFilterImpl | protected LogicFilterImpl(short filterType) throws IllegalFilterException(Code) | | Constructor with type (must be valid).
Parameters: filterType - The final relation between all sub filters. throws: IllegalFilterException - If the filtertype is not a logic type. |
LogicFilterImpl | protected LogicFilterImpl(Filter filter, short filterType) throws IllegalFilterException(Code) | | Convenience constructor to create a NOT logic filter.
Parameters: filter - The initial sub filter. Parameters: filterType - The final relation between all sub filters. throws: IllegalFilterException - Does not conform to logic filterstructure |
LogicFilterImpl | protected LogicFilterImpl(Filter filter1, Filter filter2, short filterType) throws IllegalFilterException(Code) | | Convenience constructor to create an AND/OR logic filter.
Parameters: filter1 - An initial sub filter. Parameters: filter2 - An initial sub filter. Parameters: filterType - The final relation between all sub filters. throws: IllegalFilterException - Does not conform to logic filterstructure |
accept | abstract public Object accept(FilterVisitor visitor, Object extraData)(Code) | | Used by FilterVisitors to perform some action on this filter instance.
Typicaly used by Filter decoders, but may also be used by any thing
which needs infomration from filter structure. Implementations should
always call: visitor.visit(this); It is importatant that this is not
left to a parent class unless the parents API is identical.
Parameters: visitor - The visitor which requires access to this filter, themethod must call visitor.visit(this); |
addFilter | final public void addFilter(org.opengis.filter.Filter filter) throws IllegalFilterException(Code) | | Adds a sub filter to this filter.
Parameters: filter - Specified filter to add to the sub filter list. throws: IllegalFilterException - Does not conform to logic filterstructure |
and | public Filter and(org.opengis.filter.Filter filter)(Code) | | Implements a logical AND with this filter and returns the merged filter.
Parameters: filter - Parent of the filter: must implement GMLHandlerGeometry. ANDed filter. |
equals | public boolean equals(Object obj)(Code) | | Compares this filter to the specified object. Returns true if the
passed in object is the same as this filter. Checks to make sure the
filter types are the same, and then checks that the subFilters lists
are the same size and that one list contains the other. This means
that logic filters with different internal orders of subfilters are
equal.
Parameters: obj - - the object to compare this LogicFilter against. true if specified object is equal to this filter; falseotherwise. |
getFilterIterator | public Iterator getFilterIterator()(Code) | | Gets an iterator for the filters held by this logic filter.
the iterator of the filters. |
hashCode | public int hashCode()(Code) | | Override of hashCode method.
a code to hash this object by. |
not | public Filter not()(Code) | | Implements a logical NOT with this filter and returns the merged filter.
NOTed filter. |
or | public Filter or(org.opengis.filter.Filter filter)(Code) | | Implements a logical OR with this filter and returns the merged filter.
Parameters: filter - Parent of the filter: must implement GMLHandlerGeometry. ORed filter. |
toString | public String toString()(Code) | | Returns a string representation of this filter.
String representation of the logic filter. |
Fields inherited from org.geotools.filter.BinaryLogicAbstract | protected List children(Code)(Java Doc)
|
Fields inherited from org.geotools.filter.FilterAbstract | protected org.opengis.filter.FilterFactory factory(Code)(Java Doc)
|
|
|