Class ScriptBuilder

java.lang.Object
org.identityconnectors.common.script.ScriptBuilder

public class ScriptBuilder extends Object
Builder for Script.
  • Constructor Details

    • ScriptBuilder

      public ScriptBuilder()
      Creates a new ScriptBuilder.
  • Method Details

    • getScriptLanguage

      public String getScriptLanguage()
      Returns the language of the script.
      Returns:
      the script language.
    • setScriptLanguage

      public ScriptBuilder setScriptLanguage(String scriptLanguage)
      Sets the language of the script.
      Parameters:
      scriptLanguage - the script language.
      Returns:
      this builder.
    • getScriptText

      public String getScriptText()
      Returns the text of the script.
      Returns:
      the script text.
    • setScriptText

      public ScriptBuilder setScriptText(String scriptText)
      Sets the text of the script.
      Parameters:
      scriptText - the script text.
      Returns:
      this builder.
    • build

      public Script build()
      Creates a Script. Prior to calling this method the language and the text should have been set.
      Returns:
      a new script; never null.