Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.internal

public final Class VariableManager

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map

Manages the values of user-defined variables.
Author
David McKain
Since
1.2.0
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private final Map<String, Map<String, Object>>
variableMap

Map of namespace -> variableName -> value

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getVariable(String namespace, String variableName)

public Map<String, Object>
public void
setVariable(String namespace, String variableName, Object value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

variableMapback to summary
private final Map<String, Map<String, Object>> variableMap

Map of namespace -> variableName -> value

Constructor Detail

VariableManagerback to summary
public VariableManager()

Method Detail

getVariableback to summary
public Object getVariable(String namespace, String variableName)
getVariableMapForNamespaceback to summary
public Map<String, Object> getVariableMapForNamespace(String namespace)
setVariableback to summary
public void setVariable(String namespace, String variableName, Object value)