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

All known Subclasses:   org.geotools.filter.BBoxExpressionImpl,
LiteralExpressionImpl
public class LiteralExpressionImpl extends DefaultExpression implements LiteralExpression(Code)
Defines an expression that holds a literal for return.
author:
   Rob Hranac, Vision for New York
version:
   $Id: LiteralExpressionImpl.java 29355 2008-02-18 10:47:10Z aaime $



Constructor Summary
protected  LiteralExpressionImpl()
     Constructor with literal.
protected  LiteralExpressionImpl(Object literal)
     Constructor with literal.
protected  LiteralExpressionImpl(int value)
     Constructor with literal.
protected  LiteralExpressionImpl(long value)
    
protected  LiteralExpressionImpl(double value)
     Constructor with literal.
protected  LiteralExpressionImpl(String value)
     Constructor with literal.

Method Summary
public  Objectaccept(ExpressionVisitor 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  booleanequals(Object obj)
     Compares this filter to the specified object.
public  Objectevaluate(Feature feature)
     Gets the value of this literal.
Parameters:
  feature - Required by the interface but not used.
public  Objectevaluate(Object feature)
    
public  Objectevaluate(Object feature, Class context)
    
final public  ObjectgetLiteral()
     This method calls LiteralExpressionImpl.getValue() .
public  shortgetType()
     Returns the literal type.
public  ObjectgetValue()
     Retrieves the literal of this expression.
public  inthashCode()
     Override of hashCode method.
final public  voidsetLiteral(Object literal)
     This method calls LiteralExpressionImpl.setValue(Object) .
final public  voidsetValue(Object literal)
     Sets the literal.
public  StringtoString()
     Return this filter as a string.


Constructor Detail
LiteralExpressionImpl
protected LiteralExpressionImpl()(Code)
Constructor with literal.



LiteralExpressionImpl
protected LiteralExpressionImpl(Object literal) throws IllegalFilterException(Code)
Constructor with literal.
Parameters:
  literal - The literal to store inside this expression.
throws:
  IllegalFilterException - This literal type is not in scope.



LiteralExpressionImpl
protected LiteralExpressionImpl(int value)(Code)
Constructor with literal. This alternative constructor is a convinience one for integers an Integer object will be constructed, and no IllegalFilterException can ever be thrown.
Parameters:
  value - The integer to store inside this expression.



LiteralExpressionImpl
protected LiteralExpressionImpl(long value)(Code)



LiteralExpressionImpl
protected LiteralExpressionImpl(double value)(Code)
Constructor with literal. This alternative constructor is a convinience one for doubles an Double object will be constructed, and no IllegalFilterException can ever be thrown.
Parameters:
  value - The double to store inside this expression.



LiteralExpressionImpl
protected LiteralExpressionImpl(String value)(Code)
Constructor with literal. This alternative constructor is a convinience one for doubles an Double object will be constructed, and no IllegalFilterException can ever be thrown.
Parameters:
  value - The double to store inside this expression.




Method Detail
accept
public Object accept(ExpressionVisitor 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);



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 expression. Checks to make sure the expression types are the same as well as the literals.
Parameters:
  obj - - the object to compare this ExpressionLiteral against. true if specified object is equal to this expression; falseotherwise.



evaluate
public Object evaluate(Feature feature) throws IllegalArgumentException(Code)
Gets the value of this literal.
Parameters:
  feature - Required by the interface but not used. the literal held by this expression. Ignores the passed infeature. The literal held by this expression is almost invariablya java.lang.String (so that no leading-zeros are lost during a string->Class conversion. This method will attempt to form the internalString into a Integer, Double or BigInteger, before failing anddefaulting to a String. To speed things up significantly, use theevaluate(Object, Class) method so that we don't have to guessat what you expect back from this evaluate method!
throws:
  IllegalArgumentException - Feature does not match declared schema.



evaluate
public Object evaluate(Object feature)(Code)



evaluate
public Object evaluate(Object feature, Class context)(Code)



getLiteral
final public Object getLiteral()(Code)
This method calls LiteralExpressionImpl.getValue() . LiteralExpressionImpl.getValue()



getType
public short getType()(Code)
Returns the literal type. the short representation of the expression type.



getValue
public Object getValue()(Code)
Retrieves the literal of this expression. the literal held by this expression.



hashCode
public int hashCode()(Code)
Override of hashCode method. the hash code for this literal expression



setLiteral
final public void setLiteral(Object literal) throws IllegalFilterException(Code)
This method calls LiteralExpressionImpl.setValue(Object) . LiteralExpressionImpl.setValue(Object)



setValue
final public void setValue(Object literal)(Code)
Sets the literal.
Parameters:
  literal - The literal to store inside this expression.
throws:
  IllegalFilterException - This literal type is not in scope.



toString
public String toString()(Code)
Return this filter as a string. String representation of this geometry filter.



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.