Class GroovyBinding

  • All Implemented Interfaces:
    groovy.lang.GroovyObject

    @Scriptable
    public class GroovyBinding
    extends groovy.lang.GroovyObjectSupport
    • Constructor Detail

      • GroovyBinding

        public GroovyBinding​(IBinding p_binding)
    • Method Detail

      • get

        public Object get​(String p_strKey)
        Returns a value of the given binding.
        Parameters:
        p_strKey - The binding key
        Returns:
        The value or null if no value found for the binding.
      • get

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

        public boolean isAvailable​(String p_strKey)
        Parameters:
        p_strKey - The binding key.
        Returns:
        Returns true if an binding value exists otherwise false.
      • getProperty

        public Object getProperty​(String p_strKey)