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
ConstructorDescriptionMacroTable
(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:IMacroTableProvider
Get value of a macro.- Specified by:
getMacroValue
in interfaceIMacroTableProvider
- Parameters:
name
- the name of the macro- Returns:
- the value of the macro, null if no such macro exists.
-
toString
-