agg.attribute
Interface AttrContext

All Superinterfaces:
Disposable, java.io.Serializable, SymbolTable
All Known Implementing Classes:
ContextView

public interface AttrContext
extends java.io.Serializable, SymbolTable, Disposable

Framework for allocation of variables, administration of attribute mappings and application conditions in rules.


Field Summary
static long serialVersionUID
           
 
Method Summary
 void defreeze()
          Perform mapping removals which were delayed during the freeze mode.
 boolean doesAllowComplexExpressions()
           
 boolean doesAllowEmptyValues()
           
 boolean doesAllowNewVariables()
           
 void freeze()
          Switching on the freeze mode; mapping removals are deferred until 'defreeze()' is called.
 AttrConditionTuple getConditions()
           
 HandlerExpr getExpr(java.lang.String name)
          Getting the value of an identifier. getType( String ) and getExpr( String ) allow to use an AttrContext as a SymbolTable when using an AttrHandler.
 HandlerType getType(java.lang.String name)
          Getting the type of an identifier. getType( String ) and getExpr( String ) allow to use an AttrContext as a SymbolTable when using an AttrHandler.
 AttrVariableTuple getVariables()
           
 void removeAllMappings()
           
 void setAllowComplexExpr(boolean isAllowed)
           
 void setAllowEmptyValues(boolean isAllowed)
           
 void setAllowVarDeclarations(boolean isAllowed)
           
 void setAttrContext(AttrContext source)
           
 
Methods inherited from interface agg.util.Disposable
dispose
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

getConditions

AttrConditionTuple getConditions()

getVariables

AttrVariableTuple getVariables()

doesAllowComplexExpressions

boolean doesAllowComplexExpressions()

doesAllowNewVariables

boolean doesAllowNewVariables()

doesAllowEmptyValues

boolean doesAllowEmptyValues()

setAllowVarDeclarations

void setAllowVarDeclarations(boolean isAllowed)

setAllowComplexExpr

void setAllowComplexExpr(boolean isAllowed)

setAllowEmptyValues

void setAllowEmptyValues(boolean isAllowed)

setAttrContext

void setAttrContext(AttrContext source)

freeze

void freeze()
Switching on the freeze mode; mapping removals are deferred until 'defreeze()' is called.


defreeze

void defreeze()
Perform mapping removals which were delayed during the freeze mode.


getType

HandlerType getType(java.lang.String name)
Getting the type of an identifier. getType( String ) and getExpr( String ) allow to use an AttrContext as a SymbolTable when using an AttrHandler.

Specified by:
getType in interface SymbolTable
Parameters:
name - Identifier's name
Returns:
Identifier's type

getExpr

HandlerExpr getExpr(java.lang.String name)
Getting the value of an identifier. getType( String ) and getExpr( String ) allow to use an AttrContext as a SymbolTable when using an AttrHandler.

Specified by:
getExpr in interface SymbolTable
Parameters:
name - Identifier's name
Returns:
Identifier's value as expression

removeAllMappings

void removeAllMappings()