Java Doc for AbstractExpression.java in  » Report » pentaho-report » org » jfree » report » function » 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 » Report » pentaho report » org.jfree.report.function 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.function.AbstractExpression

All known Subclasses:   org.jfree.report.function.strings.MapStringExpression,  org.pentaho.plugin.jfreereport.reportcharts.AbstractChartExpression,  org.jfree.report.function.IsEmptyExpression,  org.jfree.report.function.strings.CapitalizeStringExpression,  org.jfree.report.function.strings.ResourceMesssageFormatExpression,  org.jfree.report.modules.misc.beanshell.BSHExpression,  org.jfree.report.function.PercentageExpression,  org.jfree.report.function.strings.TokenizeStringExpression,  org.jfree.report.function.FormulaExpression,  org.jfree.report.function.AbstractCompareExpression,  org.jfree.report.function.date.DateSpanExpression,  org.jfree.report.function.sys.IsExportTypeExpression,  org.jfree.report.function.DateCutExpression,  org.jfree.report.function.strings.MapIndirectExpression,  org.jfree.report.function.ColumnAggregationExpression,  org.jfree.report.function.strings.ResourceBundleLookupExpression,  org.jfree.report.function.IsNullExpression,  org.jfree.report.function.numeric.IsPositiveExpression,  org.jfree.report.function.strings.ToUpperCaseStringExpression,  org.jfree.report.modules.misc.bsf.BSFExpression,  org.jfree.report.function.ConvertToNumberExpression,  org.jfree.report.function.strings.URLEncodeExpression,  org.jfree.report.function.strings.ToLowerCaseStringExpression,  org.jfree.report.function.TextFormatExpression,  org.jfree.report.function.bool.IsEmptyDataExpression,  org.jfree.report.function.numeric.IsNegativeExpression,  org.jfree.report.function.AbstractFunction,  org.jfree.report.function.strings.SubStringExpression,  org.jfree.report.function.date.DateExpression,  org.jfree.report.function.AverageExpression,  org.jfree.report.function.ConvertToDateExpression,  org.jfree.report.function.strings.MessageFormatExpression,
AbstractExpression
abstract public class AbstractExpression implements Expression,Serializable(Code)
An abstract base class for implementing new report expressions.

Expressions are stateless functions which have access to the report's DataRow . All expressions are named and the defined names have to be unique within the report's expressions, functions and fields of the datasource. Expressions are configured using properties.


author:
   Thomas Morgner




Constructor Summary
protected  AbstractExpression()
     Creates an unnamed expression.

Method Summary
public  Objectclone()
     Clones the expression.
public  DataRowgetDataRow()
     Returns the current DataRow .
public  intgetDependencyLevel()
     Returns the dependency level for the expression (controls evaluation order for expressions and functions).
public  ExpressiongetInstance()
     Return a completly separated copy of this function.
public  StringgetName()
     Returns the name of the expression.
public  ConfigurationgetReportConfiguration()
    
public  ResourceBundleFactorygetResourceBundleFactory()
    
public  ExpressionRuntimegetRuntime()
     Returns the ExpressionRune used in this expression.
final public  booleanisActive()
     Returns true if this expression contains "auto-active" content and should be called by the system regardless of whether this expression is referenced in the DataRow .
public  booleanisDeepTraversing()
     Checks, whether this expression is a deep-traversing expression.
public  booleanisPreserve()
     Checks, whether this expression's last value is preserved after the expression goes out of scope.
final public  voidsetActive(boolean active)
     Defines, whether the expression is an active expression.
public  voidsetDependencyLevel(int level)
     Sets the dependency level for the expression.

The dependency level controls the order of evaluation for expressions and functions.

public  voidsetName(String name)
     Sets the name of the expression.
public  voidsetPreserve(boolean preserve)
     Defines, whether this expression's last value is preserved after the expression goes out of scope.
public  voidsetRuntime(ExpressionRuntime runtime)
     Defines the ExpressionRune used in this expression.


Constructor Detail
AbstractExpression
protected AbstractExpression()(Code)
Creates an unnamed expression. Make sure the name of the expression is set using AbstractExpression.setName before the expression is added to the report's expression collection.




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Clones the expression. The expression should be reinitialized after the cloning.

Expressions maintain no state, cloning is done at the beginning of the report processing to disconnect the expression from any other object space. a clone of this expression.
throws:
  CloneNotSupportedException - this should never happen.




getDataRow
public DataRow getDataRow()(Code)
Returns the current DataRow . the data row.



getDependencyLevel
public int getDependencyLevel()(Code)
Returns the dependency level for the expression (controls evaluation order for expressions and functions). the level.



getInstance
public Expression getInstance()(Code)
Return a completly separated copy of this function. The copy does no longer share any changeable objects with the original function. a copy of this function.



getName
public String getName()(Code)
Returns the name of the expression. the name.



getReportConfiguration
public Configuration getReportConfiguration()(Code)



getResourceBundleFactory
public ResourceBundleFactory getResourceBundleFactory()(Code)



getRuntime
public ExpressionRuntime getRuntime()(Code)
Returns the ExpressionRune used in this expression. The ExpressionRuntime is set before the expression receives events or gets evaluated and is unset afterwards. Do not hold references on the runtime or you will create memory-leaks. the runtime information for the expression



isActive
final public boolean isActive()(Code)
Returns true if this expression contains "auto-active" content and should be called by the system regardless of whether this expression is referenced in the DataRow . true as all expressions are always evaluated now.



isDeepTraversing
public boolean isDeepTraversing()(Code)
Checks, whether this expression is a deep-traversing expression. Deep-traversing expressions receive events from all sub-reports. This returns false by default, as ordinary expressions have no need to be deep-traversing. false.



isPreserve
public boolean isPreserve()(Code)
Checks, whether this expression's last value is preserved after the expression goes out of scope. true, if the expression's last value is preserved, false otherwise.



setActive
final public void setActive(boolean active)(Code)
Defines, whether the expression is an active expression. This method has no effect anymore.
Parameters:
  active - a flag.



setDependencyLevel
public void setDependencyLevel(int level)(Code)
Sets the dependency level for the expression.

The dependency level controls the order of evaluation for expressions and functions. Higher level expressions are evaluated before lower level expressions. Any level in the range 0 to Integer.MAX_VALUE is allowed. Negative values are reserved for system functions (printing and layouting).
Parameters:
  level - the level (must be greater than or equal to 0).




setName
public void setName(String name)(Code)
Sets the name of the expression.

The name should be unique among:

  • the functions and expressions for the report;
  • the columns in the report's TableModel;
This allows the expression to be referenced by name from any report element.

You should not change the name of an expression once it has been added to the report's expression collection.
Parameters:
  name - the name (null not permitted).




setPreserve
public void setPreserve(boolean preserve)(Code)
Defines, whether this expression's last value is preserved after the expression goes out of scope.
Parameters:
  preserve - true, if the expression's last value is preserved, false otherwise.



setRuntime
public void setRuntime(ExpressionRuntime runtime)(Code)
Defines the ExpressionRune used in this expression. The ExpressionRuntime is set before the expression receives events or gets evaluated and is unset afterwards. Do not hold references on the runtime or you will create memory-leaks.
Parameters:
  runtime - the runtime information for the expression



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.