Package org.csstudio.opibuilder.util
Class MacroTable
java.lang.Object
org.csstudio.opibuilder.util.MacroTable
- All Implemented Interfaces:
IMacroTableProvider
A table of macros that's initialized from a string or a hash map, keeping the macro names and values in a hash
-
Constructor Summary
ConstructorsConstructorDescriptionMacroTable(String names_and_values) InitializeMacroTable(Map<String, String> macros) Initialize -
Method Summary
-
Constructor Details
-
MacroTable
Initialize- Parameters:
macros- Map with macro name/value entries
-
MacroTable
Initialize- Parameters:
names_and_values- String of the form "macro=value, macro=value"- Throws:
Exception- on malformed input
-
-
Method Details
-
getMacroValue
Description copied from interface:IMacroTableProviderGet value of a macro.- Specified by:
getMacroValuein interfaceIMacroTableProvider- Parameters:
name- the name of the macro- Returns:
- the value of the macro, null if no such macro exists.
-
toString
-