Skip navigation links


org.identityconnectors.common.script
Class ScriptBuilder

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


public class ScriptBuilder
extends java.lang.Object

Builder for Script.


Constructor Summary
ScriptBuilder()
          Creates a new ScriptBuilder.

 

Method Summary
 Script build()
          Creates a Script.
 java.lang.String getScriptLanguage()
          Returns the language of the script.
 java.lang.String getScriptText()
          Returns the text of the script.
 ScriptBuilder setScriptLanguage(java.lang.String scriptLanguage)
          Sets the language of the script.
 ScriptBuilder setScriptText(java.lang.String scriptText)
          Sets the text of the script.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ScriptBuilder

public ScriptBuilder()
Creates a new ScriptBuilder.

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 a Script. Prior to calling this method the language and the text should have been set.
Returns:
a new script; never null.

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.