Class OPIBuilderMacroUtil

java.lang.Object
org.csstudio.opibuilder.util.OPIBuilderMacroUtil

public class OPIBuilderMacroUtil extends Object
Selfdefined MacroUtil for opibuilder.
  • Field Details

  • Constructor Details

    • OPIBuilderMacroUtil

      public OPIBuilderMacroUtil()
  • Method Details

    • replaceMacros

      public static String replaceMacros(AbstractWidgetModel widgetModel, String input)
      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

      public static Map<String,String> getWidgetMacroMap(AbstractWidgetModel widgetModel)
      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.