MetaDone
metadone.metabusiness.script.VariableContext Interface Reference
Inheritance diagram for metadone.metabusiness.script.VariableContext:

List of all members.

Classes

interface  VarChange

Public Member Functions

Object getVariable (String name)
boolean setVariable (String name, Object value)
VariableContext getVariableContext (String name)
EventTower<?super VarChangegetVariableEvents ()

Detailed Description

A store for variables.

A variable context stores values for some defined variables, if the user asks for a variable that is not in that context, the result may be delegated to another context or the operation may fail.

Author:
kma

Member Function Documentation

Object metadone.metabusiness.script.VariableContext.getVariable ( String  name)

Gets the value of a variable.

Precondition:
name not null
Parameters:
nameThe name of the variable
Returns:
The value or null

Implemented in metadone.client.grasyla2.actions.GrasylaActionEngine.ActionContext, and metadone.client.grasyla2.GrasylaContext.

Referenced by metadone.client.grasyla2.value.ValueEngine.evaluateComponent(), and metadone.client.grasyla2.value.ValueScriptEngine.ValueScriptEngine().

VariableContext metadone.metabusiness.script.VariableContext.getVariableContext ( String  name)

Gets the variable context where the variable is defined.

The context is this it the variable is defined in this context, otherwise the call may be delegated or null can be returned.

Parameters:
nameThe name of the variable
Returns:
The context in which the variable is defined or null

Implemented in metadone.client.grasyla2.actions.GrasylaActionEngine.ActionContext, and metadone.client.grasyla2.GrasylaContext.

Referenced by metadone.client.grasyla2.ref.UpdateOnEngine.activate(), metadone.client.grasyla2.value.ValueEngine.evaluateComponent(), metadone.client.grasyla2.base.FontEngine.FontEngine(), and metadone.client.grasyla2.actions.GrasylaActionEngine.ActionContext.getVariableContext().

EventTower<? super VarChange> metadone.metabusiness.script.VariableContext.getVariableEvents ( )
boolean metadone.metabusiness.script.VariableContext.setVariable ( String  name,
Object  value 
)

Sets the value of a variable.

Precondition:
name not null
Parameters:
nameThe name of the variable
valueThe new value
Returns:
true iff the variable was set

Implemented in metadone.client.grasyla2.actions.GrasylaActionEngine.ActionContext, and metadone.client.grasyla2.GrasylaContext.

Referenced by metadone.client.grasyla2.value.ValueEngine.evaluateComponent(), metadone.client.grasyla2.base.AttributeFont.valueChanged(), and metadone.client.grasyla2.value.ValueScriptEngine.ValueScriptEngine().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations