Class GroovyParameter

  • All Implemented Interfaces:
    groovy.lang.GroovyObject

    @Scriptable
    public class GroovyParameter
    extends groovy.lang.GroovyObjectSupport
    In a workflow environment: g_parameter
    • Constructor Detail

      • GroovyParameter

        public GroovyParameter​(IBinding p_ctx)
    • Method Detail

      • get

        public Object get​(String p_strKey)
        Returns the value of a parameter.
        Parameters:
        p_strKey - The parameter name
        Returns:
        The parameter value or null if no parameter found or no value was set.
      • get

        public Object get​(String p_strKey,
                          Object p_fallback)
        Returns the value of a parameter.
        Parameters:
        p_strKey - The parameter name
        p_fallback - The fallback value. Will returned when no parameter found or the parameter value is null.
        Returns:
        The parameter value or the given fallback value for a not existing or an null parameter value.
      • containsParameter

        public boolean containsParameter​(String p_strKey)
        Parameters:
        p_strKey - The parameter name
        Returns:
        Returns true if an parameter with the given name exists otherwise false
      • getProperty

        public Object getProperty​(String p_strKey)
      • setProperty

        public void setProperty​(String p_strKey,
                                Object p_value)
      • putAt

        @Deprecated
        public void putAt​(String p_strKey,
                          Object p_value)
        Deprecated.
        DO ABSOLUTELY NOT USE THIS METHOD!