public class DefaultFormulaContext extends Object implements FormulaContext
Constructor and Description |
---|
DefaultFormulaContext() |
DefaultFormulaContext(Configuration config) |
DefaultFormulaContext(Configuration config,
Locale locale,
TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
void |
defineReference(Object name,
Object value) |
Configuration |
getConfiguration()
Returns the local configuration of the formula.
|
Date |
getCurrentDate()
Returns the current date.
|
FunctionRegistry |
getFunctionRegistry()
Returns the function registry.
|
LocalizationContext |
getLocalizationContext()
Returns the localization context of this formula.
|
OperatorFactory |
getOperatorFactory()
Returns the operator registry.
|
TypeRegistry |
getTypeRegistry()
Returns the type registry.
|
boolean |
isReferenceDirty(Object name)
Checks whether the external object referenced by
name has changed. |
Object |
resolveReference(Object name)
Resolves the given reference.
|
Type |
resolveReferenceType(Object name)
Queries the type of the given reference.
|
public DefaultFormulaContext()
public DefaultFormulaContext(Configuration config)
public DefaultFormulaContext(Configuration config, Locale locale, TimeZone timeZone)
public OperatorFactory getOperatorFactory()
FormulaContext
getOperatorFactory
in interface FormulaContext
public Object resolveReference(Object name)
FormulaContext
resolveReference
in interface FormulaContext
name
- the name that identifies the reference.public Configuration getConfiguration()
FormulaContext
getConfiguration
in interface FormulaContext
public FunctionRegistry getFunctionRegistry()
FormulaContext
getFunctionRegistry
in interface FormulaContext
public Type resolveReferenceType(Object name)
FormulaContext
resolveReferenceType
in interface FormulaContext
name
- the name that identifies the reference.public TypeRegistry getTypeRegistry()
FormulaContext
getTypeRegistry
in interface FormulaContext
public LocalizationContext getLocalizationContext()
FormulaContext
getLocalizationContext
in interface FormulaContext
public boolean isReferenceDirty(Object name)
FormulaContext
name
has changed.isReferenceDirty
in interface FormulaContext
name
- the name that identifies the reference.public Date getCurrentDate()
FormulaContext
getCurrentDate
in interface FormulaContext
Copyright © 2017 Hitachi Vantara. All rights reserved.