Package org.csstudio.opibuilder.util
Class OPIBuilderMacroUtil
java.lang.Object
org.csstudio.opibuilder.util.OPIBuilderMacroUtil
Selfdefined MacroUtil for opibuilder.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetWidgetMacroMap
(AbstractWidgetModel widgetModel) static String
replaceMacros
(AbstractWidgetModel widgetModel, String input) Replace the macros in the input with the real value.
-
Field Details
-
DNAME
- See Also:
-
DID
- See Also:
-
DLOC
- See Also:
-
-
Constructor Details
-
OPIBuilderMacroUtil
public OPIBuilderMacroUtil()
-
-
Method Details
-
replaceMacros
Replace the macros in the input with the real value. Simply calls the three argument version below- Parameters:
input
- the raw string which include the macros string $(macro)- Returns:
- the string in which the macros have been replaced with the real value.
-
getWidgetMacroMap
- Parameters:
widgetModel
-- Returns:
- the predefined macro map of the widget. This is the intrinsic map from the widget. Be careful to change the map contents.
-