Java Doc for DefaultExpression.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.expression.ExpressionAbstract
      org.geotools.filter.DefaultExpression

All known Subclasses:   org.geotools.filter.MathExpressionImpl,  org.geotools.filter.LiteralExpressionImpl,  org.geotools.filter.FunctionExpressionImpl,  org.geotools.filter.AttributeExpressionImpl2,  org.geotools.filter.MapScaleDenominatorImpl,  org.geotools.filter.GeometryExpressionImpl,  org.geotools.filter.function.ClassificationFunction,  org.geotools.filter.AttributeExpressionImpl,
DefaultExpression
abstract public class DefaultExpression extends ExpressionAbstract implements Expression(Code)
Implements a default expression, with helpful variables and static methods.
author:
   Rob Hranac, Vision for New York
version:
   $Id: DefaultExpression.java 24280 2007-02-08 16:40:54Z groldan $


Field Summary
protected  shortexpressionType
     Defines the type of this expression.
protected  booleanpermissiveConstruction
     Defines the type of this expression.


Method Summary
final public  voidaccept(FilterVisitor visitor)
    
public  Objectevaluate(Feature feature)
     Returns a value for this expression.
public  Objectevaluate(Object object)
     This method checks if the object is an instance of Feature and if so, calls through to DefaultExpression.evaluate(Feature) .
public  shortgetType()
     Gets the type of this expression.
final public  ObjectgetValue(Feature feature)
     This method calls DefaultExpression.evaluate(Feature) .
protected static  booleanisAttributeExpression(short expressionType)
     Checks to see if passed type is attribute.
Parameters:
  expressionType - Type of expression for check.
protected static  booleanisExpression(short expressionType)
     Checks to see if passed type is geometry.
Parameters:
  expressionType - Type of expression for check.
public static  booleanisFunctionExpression(short expressionType)
    
protected static  booleanisGeometryExpression(short expressionType)
     Checks to see if passed type is geometry.
Parameters:
  expressionType - Type of expression for check.
protected static  booleanisLiteralExpression(short expressionType)
     Checks to see if passed type is geometry.
Parameters:
  expressionType - Type of expression for check.
protected static  booleanisMathExpression(short expressionType)
     Checks to see if passed type is math.
Parameters:
  expressionType - Type of expression for check.
protected static  booleanisMathExpression(org.opengis.filter.expression.Expression expression)
     Checks to see if this expression is a math expresson based on its type.
Parameters:
  expression - expression to check.

Field Detail
expressionType
protected short expressionType(Code)
Defines the type of this expression.



permissiveConstruction
protected boolean permissiveConstruction(Code)
Defines the type of this expression.





Method Detail
accept
final public void accept(FilterVisitor visitor)(Code)
org.opengis.filter.expression.Expression.accept(ExpressionVisitorObject)



evaluate
public Object evaluate(Feature feature)(Code)
Returns a value for this expression. If the expression is an attribute expression then the attribute of the feature should be returned. If a literal then the feature is ignored, the literal is returned as it has no relation to the feature.
Parameters:
  feature - Specified feature to use when returning value. The value of this expression based on the feature.



evaluate
public Object evaluate(Object object)(Code)
This method checks if the object is an instance of Feature and if so, calls through to DefaultExpression.evaluate(Feature) . This is done to maintain backwards compatability with previous version of Expression api which depended on Feature. If the object is not an instance of feature the super implementation is called.



getType
public short getType()(Code)
Gets the type of this expression. The short representation of the expression type.



getValue
final public Object getValue(Feature feature)(Code)
This method calls DefaultExpression.evaluate(Feature) . DefaultExpression.evaluate(Feature)



isAttributeExpression
protected static boolean isAttributeExpression(short expressionType)(Code)
Checks to see if passed type is attribute.
Parameters:
  expressionType - Type of expression for check. Whether or not this is an attribute expression type.



isExpression
protected static boolean isExpression(short expressionType)(Code)
Checks to see if passed type is geometry.
Parameters:
  expressionType - Type of expression for check. Whether or not this is a geometry expression type.



isFunctionExpression
public static boolean isFunctionExpression(short expressionType)(Code)



isGeometryExpression
protected static boolean isGeometryExpression(short expressionType)(Code)
Checks to see if passed type is geometry.
Parameters:
  expressionType - Type of expression for check. Whether or not this is a geometry expression type.



isLiteralExpression
protected static boolean isLiteralExpression(short expressionType)(Code)
Checks to see if passed type is geometry.
Parameters:
  expressionType - Type of expression for check. Whether or not this is a geometry expression type.



isMathExpression
protected static boolean isMathExpression(short expressionType)(Code)
Checks to see if passed type is math.
Parameters:
  expressionType - Type of expression for check. Whether or not this is a math expression type.DefaultExpression.is



isMathExpression
protected static boolean isMathExpression(org.opengis.filter.expression.Expression expression)(Code)
Checks to see if this expression is a math expresson based on its type.
Parameters:
  expression - expression to check. Whether or not this is a math expression.



Methods inherited from org.geotools.filter.expression.ExpressionAbstract
public Object accept(ExpressionVisitor visitor, Object extraData)(Code)(Java Doc)
protected Object eval(Expression expression, Feature feature)(Code)(Java Doc)
protected Object eval(org.geotools.filter.Expression expression, Feature feature)(Code)(Java Doc)
public Object evaluate(Object object)(Code)(Java Doc)
public Object evaluate(Object object, Class context)(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.