Java Doc for LogicFilterImpl.java in  » GIS » GeoTools-2.4.1 » org » geotools » filter » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.filter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Constructor Summary
protected  LogicFilterImpl(FilterFactory factory)
    
protected  LogicFilterImpl(FilterFactory factory, List children)
    
protected  LogicFilterImpl(short filterType)
     Constructor with type (must be valid).
protected  LogicFilterImpl(Filter filter, short filterType)
     Convenience constructor to create a NOT logic filter.
protected  LogicFilterImpl(Filter filter1, Filter filter2, short filterType)
     Convenience constructor to create an AND/OR logic filter.

Method Summary
abstract public  Objectaccept(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  voidaddFilter(org.opengis.filter.Filter filter)
     Adds a sub filter to this filter.
public  Filterand(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  booleanequals(Object obj)
     Compares this filter to the specified object.
public  IteratorgetFilterIterator()
     Gets an iterator for the filters held by this logic filter.
 ListgetSubFilters()
     package private method to get the internal storage of filters.
public  inthashCode()
     Override of hashCode method.
public  Filternot()
     Implements a logical NOT with this filter and returns the merged filter.
public  Filteror(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  StringtoString()
     Returns a string representation of this filter.


Constructor Detail
LogicFilterImpl
protected LogicFilterImpl(FilterFactory factory)(Code)



LogicFilterImpl
protected LogicFilterImpl(FilterFactory factory, List children)(Code)



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




Method Detail
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.



getSubFilters
List getSubFilters()(Code)
package private method to get the internal storage of filters. the internal sub filter list.LogicFilterImpl.getChildren()



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)

Methods inherited from org.geotools.filter.BinaryLogicAbstract
public Filter and(org.opengis.filter.Filter filter)(Code)(Java Doc)
public List getChildren()(Code)(Java Doc)
public Filter not()(Code)(Java Doc)
public Filter or(org.opengis.filter.Filter filter)(Code)(Java Doc)
public void setChildren(List children)(Code)(Java Doc)

Fields inherited from org.geotools.filter.AbstractFilter
final protected static Logger LOGGER(Code)(Java Doc)
protected short filterType(Code)(Java Doc)
protected boolean permissiveConstruction(Code)(Java Doc)

Methods inherited from org.geotools.filter.AbstractFilter
final public void accept(FilterVisitor visitor)(Code)(Java Doc)
final public boolean contains(Feature feature)(Code)(Java Doc)
public short getFilterType()(Code)(Java Doc)
protected static boolean isCompareFilter(short filterType)(Code)(Java Doc)
protected static boolean isGeometryDistanceFilter(short filterType)(Code)(Java Doc)
protected static boolean isGeometryFilter(short filterType)(Code)(Java Doc)
protected static boolean isLogicFilter(short filterType)(Code)(Java Doc)
protected static boolean isMathFilter(short filterType)(Code)(Java Doc)
protected static boolean isSimpleFilter(short filterType)(Code)(Java Doc)

Fields inherited from org.geotools.filter.FilterAbstract
protected org.opengis.filter.FilterFactory factory(Code)(Java Doc)

Methods inherited from org.geotools.filter.FilterAbstract
public Object accept(FilterVisitor visitor, Object extraData)(Code)(Java Doc)
public boolean accepts(Feature feature)(Code)(Java Doc)
protected Object eval(Expression expression, Feature feature)(Code)(Java Doc)
protected Object eval(org.opengis.filter.expression.Expression expression, Object object)(Code)(Java Doc)
protected Object eval(org.opengis.filter.expression.Expression expression, Object object, Class context)(Code)(Java Doc)
public boolean evaluate(Feature feature)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.