|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An expression is a lightweight function that does not maintain a state. Expressions are used to calculate values within a single row of a report. Expressions can use a dataRow to access other fields, expressions or functions within the current row in the report.
Field Summary | |
static java.lang.String |
AUTOACTIVATE_PROPERTY
Literal text for the 'autoactivate' property. |
Method Summary | |
java.lang.Object |
clone()
Clones the expression, expression should be reinitialized after the cloning. |
DataRow |
getDataRow()
Returns the DataRow used in this expression. |
int |
getDependencyLevel()
The dependency level defines the level of execution for this function. |
Expression |
getInstance()
Return a new instance of this expression. |
java.lang.String |
getName()
Returns the name of the expression. |
java.util.Properties |
getProperties()
Returns a copy of this Expression's properties. |
java.lang.Object |
getValue()
Return the current expression value. |
void |
initialize()
Checks that the expression has been correctly initialized. |
boolean |
isActive()
Returns true if this expression contains autoactive content and should be called by the system, regardless whether this expression is referenced in the datarow. |
void |
setDataRow(DataRow theDataRow)
Defines the DataRow used in this expression. |
void |
setDependencyLevel(int level)
Sets the dependency level for the expression. |
void |
setName(java.lang.String name)
Sets the name of the expression. |
void |
setProperties(java.util.Properties p)
Set the expression properties. |
Field Detail |
public static final java.lang.String AUTOACTIVATE_PROPERTY
Method Detail |
public java.lang.String getName()
Every expression, function and column in the datamodel within a report is required to have a unique name.
public void setName(java.lang.String name)
The name must not be null and must be unique within the expression group.
name
- the name.public java.lang.Object getValue()
The value depends (obviously) on the expression implementation.
public void setProperties(java.util.Properties p)
expression parameters are recorded as properties.
p
- the properties.public java.util.Properties getProperties()
public boolean isActive()
public void initialize() throws FunctionInitializeException
FunctionInitializeException
- in case the expression is not initialized properly.public DataRow getDataRow()
public void setDataRow(DataRow theDataRow)
theDataRow
- the DataRow for this expression.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Expression maintain no state, cloning is done at the beginning of the report processing to disconnect the used expression from any other object space.
java.lang.CloneNotSupportedException
- this should never happen.public int getDependencyLevel()
Levels below 0 are reserved for system-functionality (printing and layouting).
The level must not change during the report processing, or the result is invalid.
public void setDependencyLevel(int level)
level
- the level.public Expression getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |