Java Doc for MathExpressionImpl.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) 


org.geotools.filter.DefaultExpression
   org.geotools.filter.MathExpressionImpl

All known Subclasses:   org.geotools.filter.expression.AddImpl,  org.geotools.filter.expression.MultiplyImpl,  org.geotools.filter.expression.SubtractImpl,  org.geotools.filter.expression.DivideImpl,
MathExpressionImpl
abstract public class MathExpressionImpl extends DefaultExpression implements MathExpression(Code)
Holds a mathematical relationship between two expressions. Note that the sub expressions must be math expressions. In other words, they must be a math literal, another math expression, or a feature attribute with a declared math type. You may create math expressions of arbitrary complexity by nesting other math expressions as sub expressions in one or more math expressions. This filter defines left and right values to clarify the sub expression precedence for non-associative operations, such as subtraction and division. For example, the left value is the numerator and the right is the denominator in an ExpressionMath division operation.
author:
   Rob Hranac, Vision for New York
version:
   $Id: MathExpressionImpl.java 24280 2007-02-08 16:40:54Z groldan $



Constructor Summary
protected  MathExpressionImpl()
     No argument constructor.
protected  MathExpressionImpl(org.opengis.filter.expression.Expression e1, org.opengis.filter.expression.Expression e2)
    

Method Summary
final public  voidaddLeftValue(Expression leftValue)
     Adds the 'left' value to this expression.
final public  voidaddRightValue(Expression rightValue)
     Adds the 'right' value to this expression.
protected  voidensureOperandsSet()
     Convenience method which ensures that both expressions have been set.
public  org.opengis.filter.expression.ExpressiongetExpression1()
     Gets the left or first expression.
public  org.opengis.filter.expression.ExpressiongetExpression2()
     Gets the second expression.
final public  ExpressiongetLeftValue()
     Gets the left or first expression.
final public  ExpressiongetRightValue()
     Gets the right expression.
public  shortgetType()
     Gets the type of this expression.
protected  Objectnumber(double number)
    
public  voidsetExpression1(org.opengis.filter.expression.Expression expression)
     Gets the left or first expression.
public  voidsetExpression2(org.opengis.filter.expression.Expression expression)
     Gets the second expression.


Constructor Detail
MathExpressionImpl
protected MathExpressionImpl()(Code)
No argument constructor.



MathExpressionImpl
protected MathExpressionImpl(org.opengis.filter.expression.Expression e1, org.opengis.filter.expression.Expression e2)(Code)




Method Detail
addLeftValue
final public void addLeftValue(Expression leftValue) throws IllegalFilterException(Code)
Adds the 'left' value to this expression.
Parameters:
  leftValue - Expression to add to this expression.
throws:
  IllegalFilterException - Attempting to add non-math expression.MathExpressionImpl.setExpression1(org.opengis.filter.expression.Expression)



addRightValue
final public void addRightValue(Expression rightValue) throws IllegalFilterException(Code)
Adds the 'right' value to this expression.
Parameters:
  rightValue - Expression to add to this expression.
throws:
  IllegalFilterException - Attempting to add non-math expression.MathExpressionImpl.setExpression2(org.opengis.filter.expression.Expression)



ensureOperandsSet
protected void ensureOperandsSet() throws IllegalArgumentException(Code)
Convenience method which ensures that both expressions have been set. If any of operands not set an exception is thrown.



getExpression1
public org.opengis.filter.expression.Expression getExpression1()(Code)
Gets the left or first expression. the expression on the first side of the comparison.



getExpression2
public org.opengis.filter.expression.Expression getExpression2()(Code)
Gets the second expression. the expression on the second side of the comparison.



getLeftValue
final public Expression getLeftValue()(Code)
Gets the left or first expression. MathExpressionImpl.getExpression1()



getRightValue
final public Expression getRightValue()(Code)
Gets the right expression. the expression on the right of the comparison.MathExpressionImpl.getExpression2()



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



number
protected Object number(double number)(Code)



setExpression1
public void setExpression1(org.opengis.filter.expression.Expression expression)(Code)
Gets the left or first expression.
throws:
  IllegalFilterException -



setExpression2
public void setExpression2(org.opengis.filter.expression.Expression expression)(Code)
Gets the second expression.
throws:
  IllegalFilterException -



Fields inherited from org.geotools.filter.DefaultExpression
protected short expressionType(Code)(Java Doc)
protected boolean permissiveConstruction(Code)(Java Doc)

Methods inherited from org.geotools.filter.DefaultExpression
final public void accept(FilterVisitor visitor)(Code)(Java Doc)
public Object evaluate(Feature feature)(Code)(Java Doc)
public Object evaluate(Object object)(Code)(Java Doc)
public short getType()(Code)(Java Doc)
final public Object getValue(Feature feature)(Code)(Java Doc)
protected static boolean isAttributeExpression(short expressionType)(Code)(Java Doc)
protected static boolean isExpression(short expressionType)(Code)(Java Doc)
public static boolean isFunctionExpression(short expressionType)(Code)(Java Doc)
protected static boolean isGeometryExpression(short expressionType)(Code)(Java Doc)
protected static boolean isLiteralExpression(short expressionType)(Code)(Java Doc)
protected static boolean isMathExpression(short expressionType)(Code)(Java Doc)
protected static boolean isMathExpression(org.opengis.filter.expression.Expression expression)(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.