Class ScriptBuilder
- java.lang.Object
-
- org.identityconnectors.common.script.ScriptBuilder
-
public class ScriptBuilder extends java.lang.ObjectBuilder forScript.
-
-
Constructor Summary
Constructors Constructor Description ScriptBuilder()Creates a newScriptBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scriptbuild()Creates aScript.java.lang.StringgetScriptLanguage()Returns the language of the script.java.lang.StringgetScriptText()Returns the text of the script.ScriptBuildersetScriptLanguage(java.lang.String scriptLanguage)Sets the language of the script.ScriptBuildersetScriptText(java.lang.String scriptText)Sets the text of the script.
-
-
-
Method Detail
-
getScriptLanguage
public java.lang.String getScriptLanguage()
Returns the language of the script.- Returns:
- the script language.
-
setScriptLanguage
public ScriptBuilder setScriptLanguage(java.lang.String scriptLanguage)
Sets the language of the script.- Parameters:
scriptLanguage- the script language.- Returns:
- this builder.
-
getScriptText
public java.lang.String getScriptText()
Returns the text of the script.- Returns:
- the script text.
-
setScriptText
public ScriptBuilder setScriptText(java.lang.String scriptText)
Sets the text of the script.- Parameters:
scriptText- the script text.- Returns:
- this builder.
-
build
public Script build()
Creates aScript. Prior to calling this method the language and the text should have been set.- Returns:
- a new script; never null.
-
-