com.japisoft.formula
Interface SymbolResolver

All Known Implementing Classes:
FormulaContext

public interface SymbolResolver

This interface is a delegate for resolving an expression variable. Each time the formula engine will meet an unknown variable, it will asks by this interface for a value. If no value should be return you must throw a SymbolResolverException.

Version:
1.0
Author:
(c) 2002 japisoft
See Also:
SymbolResolverException

Method Summary
 Variant getValue(java.lang.String symbol)
          throw a SymbolResolverException if the symbol is unknown.
 void setValue(java.lang.String symbol, Variant v)
          Reset a symbol value, useful for 'A=B' expression
 

Method Detail

getValue

public Variant getValue(java.lang.String symbol)
throw a SymbolResolverException if the symbol is unknown.

Returns:
a value for the variable symbol

setValue

public void setValue(java.lang.String symbol,
                     Variant v)
Reset a symbol value, useful for 'A=B' expression