cookxml.core.interfaces
Interface VarLookup

All Known Implementing Classes:
DefaultVarLookup

public interface VarLookup

This is a general interface for getting/setting object variables

Since:
CookXml 2.0

Method Summary
 Object getVariable(String name, DecodeEngine decodeEngine)
          getting a variable by its name.
 void setVariable(String name, Object value, DecodeEngine decodeEngine)
          setting a variable by its name.
 

Method Detail

getVariable

public Object getVariable(String name,
                          DecodeEngine decodeEngine)
                   throws VarLookupException
getting a variable by its name.

Parameters:
name - the name of the variable
decodeEngine - the DecodeEngine being used.
Returns:
the value of the variable.
Throws:
VarLookupException

setVariable

public void setVariable(String name,
                        Object value,
                        DecodeEngine decodeEngine)
                 throws VarLookupException
setting a variable by its name.

Parameters:
name - the name of the variable
value - the new value for the variable
decodeEngine - the DecodeEngine being used.
Throws:
VarLookupException