Class DefaultFormulaContext
java.lang.Object
org.pentaho.reporting.libraries.formula.DefaultFormulaContext
- All Implemented Interfaces:
FormulaContext
Creation-Date: 31.10.2006, 16:32:32
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFormulaContext
(Configuration config) DefaultFormulaContext
(Configuration config, Locale locale, TimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionvoid
defineReference
(Object name, Object value) Configuration
Returns the local configuration of the formula.Returns the function registry.Returns the localization context of this formula.Returns the operator registry.Returns the type registry.boolean
isReferenceDirty
(Object name) Checks whether the external object referenced byname
has changed.resolveReference
(Object name) Resolves the given reference.resolveReferenceType
(Object name) Queries the type of the given reference.
-
Constructor Details
-
DefaultFormulaContext
public DefaultFormulaContext() -
DefaultFormulaContext
public DefaultFormulaContext(Configuration config) -
DefaultFormulaContext
-
-
Method Details
-
getOperatorFactory
Description copied from interface:FormulaContext
Returns the operator registry. The Operator-registry contains all operator-implementations.- Specified by:
getOperatorFactory
in interfaceFormulaContext
- Returns:
- the operator registry.
-
defineReference
-
resolveReference
Description copied from interface:FormulaContext
Resolves the given reference. How the name is interpreted by the outside system is an implementation detail.- Specified by:
resolveReference
in interfaceFormulaContext
- Parameters:
name
- the name that identifies the reference.- Returns:
- the resolved object.
-
getConfiguration
public Configuration getConfiguration()Description copied from interface:FormulaContext
Returns the local configuration of the formula.- Specified by:
getConfiguration
in interfaceFormulaContext
- Returns:
- the local configuration.
-
getFunctionRegistry
Description copied from interface:FormulaContext
Returns the function registry. The function registry grants access to all formula-function implementations.- Specified by:
getFunctionRegistry
in interfaceFormulaContext
- Returns:
- the function registry.
-
resolveReferenceType
Description copied from interface:FormulaContext
Queries the type of the given reference. How the name is interpreted by the outside system is an implementation detail. This return a LibFormula type object matching the type of the object that would be returned by resolveReference.- Specified by:
resolveReferenceType
in interfaceFormulaContext
- Parameters:
name
- the name that identifies the reference.- Returns:
- the type of the resolved object.
-
getTypeRegistry
Description copied from interface:FormulaContext
Returns the type registry. The type registry contains all type information and allows to convert values between different types.- Specified by:
getTypeRegistry
in interfaceFormulaContext
- Returns:
- the function registry.
-
getLocalizationContext
Description copied from interface:FormulaContext
Returns the localization context of this formula. The localization context can be used to query locale specific configuration settings.- Specified by:
getLocalizationContext
in interfaceFormulaContext
- Returns:
- the localization context.
-
isReferenceDirty
Description copied from interface:FormulaContext
Checks whether the external object referenced byname
has changed.- Specified by:
isReferenceDirty
in interfaceFormulaContext
- Parameters:
name
- the name that identifies the reference.- Returns:
- true, if the reference has changed, false otherwise.
-