Class ScriptBuilder
java.lang.Object
org.identityconnectors.common.script.ScriptBuilder
Builder for
Script
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates aScript
.Returns the language of the script.Returns the text of the script.setScriptLanguage
(String scriptLanguage) Sets the language of the script.setScriptText
(String scriptText) Sets the text of the script.
-
Constructor Details
-
ScriptBuilder
public ScriptBuilder()Creates a newScriptBuilder
.
-
-
Method Details
-
getScriptLanguage
Returns the language of the script.- Returns:
- the script language.
-
setScriptLanguage
Sets the language of the script.- Parameters:
scriptLanguage
- the script language.- Returns:
- this builder.
-
getScriptText
Returns the text of the script.- Returns:
- the script text.
-
setScriptText
Sets the text of the script.- Parameters:
scriptText
- the script text.- Returns:
- this builder.
-
build
Creates aScript
. Prior to calling this method the language and the text should have been set.- Returns:
- a new script; never null.
-