Class MacrosInput

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

public class MacrosInput extends Object
The value type definition for MacrosProperty, which describes the input for a Macros Property. TODO Combine with MacroTable TODO Hide the actual map implementation TODO Why does the order of macros matter? For environment vars, the order doesn't matter. Can still replace macros recursively as in $($(M))
  • Constructor Details

  • Method Details

    • getMacrosMap

      public final LinkedHashMap<String,String> getMacrosMap()
      Returns:
      the macrosMap
    • setMacrosMap

      public void setMacrosMap(LinkedHashMap<String,String> macrosMap)
      Parameters:
      macrosMap - the macrosMap to set
    • put

      public void put(String macroName, String macroValue)
      Add or replace a macro.
      Parameters:
      macroName -
      macroValue -
    • isInclude_parent_macros

      public final boolean isInclude_parent_macros()
      Returns:
      the include_parent_macros
    • setInclude_parent_macros

      public void setInclude_parent_macros(boolean include_parent_macros)
      Parameters:
      include_parent_macros - the include_parent_macros to set
    • getCopy

      public MacrosInput getCopy()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toPersistenceString

      public String toPersistenceString()
      Returns:
      a String with format like this: "true", "macro1 = hello", "macro2 = hello2"
    • recoverFromString

      public static MacrosInput recoverFromString(String s) throws Exception
      Parse MacrosInput from persistence string.
      Parameters:
      s -
      Returns:
      Throws:
      Exception