Java Doc for FidFilterImpl.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.AbstractFilterImpl
            org.geotools.filter.FidFilterImpl

FidFilterImpl
public class FidFilterImpl extends AbstractFilterImpl implements FidFilter(Code)
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.


author:
   Rob Hranac, TOPP
author:
   Justin Deoliveira, TOPP
author:
   TODO: this class shoul be renamed to IdFilterImpl
version:
   $Id: FidFilterImpl.java 27862 2007-11-12 19:51:19Z desruisseaux $



Constructor Summary
protected  FidFilterImpl()
     Empty constructor.
protected  FidFilterImpl(String initialFid)
    
protected  FidFilterImpl(Set fids)
     Constructor which takes org.opengis.filter.identity.Identifier , not String.

Method Summary
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.
public  voidaddAllFids(Collection fidsToAdd)
     Adds a collection of feature IDs to the filter.
final public  voidaddFid(String fid)
     Adds a feature ID to the filter.
public  booleanequals(Object filter)
     Returns a flag indicating object equality.
Parameters:
  filter - the filter to test equality on.
public  booleanevaluate(Object feature)
     Determines whether or not the given feature's ID matches this filter.

In order to get the object's ID, the PropertyAccessor capable of dealing with feature has to support the request of the expression "@id"


Parameters:
  feature - Specified feature to examine.
final public  String[]getFids()
     Returns all the fids in this filter.
public  SetgetFidsSet()
     Accessor method for fid set as Strings.
public  SetgetIDs()
    
public  SetgetIdentifiers()
    
public  inthashCode()
     Override of hashCode method.
public  voidremoveAllFids(Collection fidsToRemove)
     Removes a collection of feature IDs from the filter.
final public  voidremoveFid(String fid)
     Removes a feature ID from the filter.
public  voidsetIDs(Set ids)
    
public  StringtoString()
     Returns a string representation of this filter.


Constructor Detail
FidFilterImpl
protected FidFilterImpl()(Code)
Empty constructor. FidFilterImpl.FidFilterImpl(Set)



FidFilterImpl
protected FidFilterImpl(String initialFid)(Code)
Constructor with first fid set
Parameters:
  initialFid - The type of comparison.FidFilterImpl.FidFilterImpl(Set)



FidFilterImpl
protected FidFilterImpl(Set fids)(Code)
Constructor which takes org.opengis.filter.identity.Identifier , not String.




Method Detail
accept
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, the methodmust call visitor.visit(this);



addAllFids
public void addAllFids(Collection fidsToAdd)(Code)
Adds a collection of feature IDs to the filter.
Parameters:
  fidsToAdd - A collection of feature IDs as strings.



addFid
final public void addFid(String fid)(Code)
Adds a feature ID to the filter.
Parameters:
  fid - A single feature ID.



equals
public boolean equals(Object filter)(Code)
Returns a flag indicating object equality.
Parameters:
  filter - the filter to test equality on. String representation of the compare filter.



evaluate
public boolean evaluate(Object feature)(Code)
Determines whether or not the given feature's ID matches this filter.

In order to get the object's ID, the PropertyAccessor capable of dealing with feature has to support the request of the expression "@id"


Parameters:
  feature - Specified feature to examine. true if the feature's ID matches an fid held by thisfilter, false otherwise.
See Also:   SimpleFeaturePropertyAccessorFactory



getFids
final public String[] getFids()(Code)
Returns all the fids in this filter. An array of all the fids in this filter.FidFilterImpl.getIDs()



getFidsSet
public Set getFidsSet()(Code)
Accessor method for fid set as Strings. the internally stored fids.



getIDs
public Set getIDs()(Code)

See Also:   org.opengis.filter.Id.getIDs



getIdentifiers
public Set getIdentifiers()(Code)

See Also:   org.opengis.filter.Id.getIdentifiers



hashCode
public int hashCode()(Code)
Override of hashCode method. a hash code value for this fid filter object.



removeAllFids
public void removeAllFids(Collection fidsToRemove)(Code)
Removes a collection of feature IDs from the filter.
Parameters:
  fidsToRemove - A collection of feature IDs.



removeFid
final public void removeFid(String fid)(Code)
Removes a feature ID from the filter.
Parameters:
  fid - A single feature ID.



setIDs
public void setIDs(Set ids)(Code)

See Also:   org.opengis.filter.identity.FeatureId.setIDs(Set)



toString
public String toString()(Code)
Returns a string representation of this filter. String representation of the compare filter.



Methods inherited from org.geotools.filter.AbstractFilterImpl
public Filter and(org.opengis.filter.Filter filter)(Code)(Java Doc)
public Filter not()(Code)(Java Doc)
public Filter or(org.opengis.filter.Filter filter)(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.