jdbreport.design.model
Interface Expression

All Known Implementing Classes:
TextExpression

public interface Expression

Interface is used to calculate expressions in the CellObject.
CellObject can contain several expressions, for instance: Customer: ${customer.name} contains two expressions: Customer: and ${customer.name}.

Version:
2.0 10.01.2011
Author:
Andrey Kholmanskih

Method Summary
 String getBaseName()
          The name of basic object
 String getFormatValue()
          Returns a formatted string
 String getProperty()
          The name of property
 String getText()
          Text of the expression
 int getType()
          The type of the expression Can accept the meanings: CellObject.TYPE_NONE, CellObject.TYPE_VAR, CellObject.TYPE_FIELD
 Object getValue()
          The meaning of the expression
 

Method Detail

getText

String getText()
Text of the expression

Returns:
text of the expression

getBaseName

String getBaseName()
The name of basic object

Returns:
the name of object

getProperty

String getProperty()
The name of property

Returns:
the name of property
Since:
2.0

getValue

Object getValue()
                throws ReportException
The meaning of the expression

Returns:
the meaning of the expression
Throws:
ReportException

getType

int getType()
The type of the expression Can accept the meanings: CellObject.TYPE_NONE, CellObject.TYPE_VAR, CellObject.TYPE_FIELD

Returns:
the type of the expression

getFormatValue

String getFormatValue()
                      throws ReportException
Returns a formatted string

Returns:
formatted string
Throws:
ReportException
Since:
1.4