Class ScriptContext

    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptContext​(java.lang.String scriptLanguage, java.lang.String scriptText, java.util.Map<java.lang.String,​java.lang.Object> scriptArguments)
      Public only for serialization; please use ScriptContextBuilder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getScriptArguments()
      Returns a map of arguments to be passed to the script.
      java.lang.String getScriptLanguage()
      Identifies the language in which the script is written (e.g., bash, csh, Perl4 or Python).
      java.lang.String getScriptText()
      Returns the text (i.e., actual characters) of the script.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ScriptContext

        public ScriptContext​(java.lang.String scriptLanguage,
                             java.lang.String scriptText,
                             java.util.Map<java.lang.String,​java.lang.Object> scriptArguments)
        Public only for serialization; please use ScriptContextBuilder.
        Parameters:
        scriptLanguage - The script language. Must not be null.
        scriptText - The script text. Must not be null.
        scriptArguments - The script arguments. May be null.
    • Method Detail

      • getScriptLanguage

        public java.lang.String getScriptLanguage()
        Identifies the language in which the script is written (e.g., bash, csh, Perl4 or Python).
        Returns:
        The script language.
      • getScriptText

        public java.lang.String getScriptText()
        Returns the text (i.e., actual characters) of the script.
        Returns:
        The text of the script.
      • getScriptArguments

        public java.util.Map<java.lang.String,​java.lang.Object> getScriptArguments()
        Returns a map of arguments to be passed to the script. Values must be types that the framework can serialize. See ObjectSerializerFactory for a list of supported types.
        Returns:
        A map of arguments to be passed to the script.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object