it.eng.spagobi.bo
Class ScriptDetail

java.lang.Object
  extended by it.eng.spagobi.bo.ScriptDetail
All Implemented Interfaces:
java.io.Serializable

public class ScriptDetail
extends java.lang.Object
implements java.io.Serializable

Defines the ScriptDetail objects. This object is used to store Script Wizard detail information.

Author:
sulis
See Also:
Serialized Form

Field Summary
private  boolean listOfValues
           
private  java.lang.String script
           
private  boolean singleValue
           
 
Constructor Summary
ScriptDetail()
           
 
Method Summary
static ScriptDetail fromXML(java.lang.String dataDefinition1)
          Splits an XML string by using some SourceBean object methods in order to obtain the source ScriptDetail objects whom XML has been built.
 java.lang.String getScript()
          Get the string of the script
 boolean isListOfValues()
          Return true only if the execution of the script return a list of values.
 boolean isSingleValue()
          Return true only if the execution of the script return an only value.
 void setListOfValues(boolean listOfValues)
          Set the listOfValue flag of the Script.
 void setScript(java.lang.String script)
          Set the string of the script
 void setSingleValue(boolean singleValue)
          Set the singleValue flag of the Script.
 java.lang.String toXML()
          Loads the XML string defined by a ScriptDetail object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

private java.lang.String script

singleValue

private boolean singleValue

listOfValues

private boolean listOfValues
Constructor Detail

ScriptDetail

public ScriptDetail()
Method Detail

getScript

public java.lang.String getScript()
Get the string of the script

Returns:
The string of the script

setScript

public void setScript(java.lang.String script)
Set the string of the script

Parameters:
script - the string of the script

isSingleValue

public boolean isSingleValue()
Return true only if the execution of the script return an only value.

Returns:
true if the script produce an unique output value

setSingleValue

public void setSingleValue(boolean singleValue)
Set the singleValue flag of the Script. A single value script return an unique value.

Parameters:
singleValue - the boolean value of the singleValue flag

isListOfValues

public boolean isListOfValues()
Return true only if the execution of the script return a list of values.

Returns:
true if the script produce a list of output values

setListOfValues

public void setListOfValues(boolean listOfValues)
Set the listOfValue flag of the Script. A list of values script return a list of values.

Parameters:
listOfValues - the boolean value of the listOfValues flag

toXML

public java.lang.String toXML()
Loads the XML string defined by a ScriptDetail object. The object gives us all XML field values. Once obtained, the XML represents the data definition for a Script to load values Input Type Value LOV object.

Returns:
The XML output String

fromXML

public static ScriptDetail fromXML(java.lang.String dataDefinition1)
                            throws it.eng.spago.base.SourceBeanException
Splits an XML string by using some SourceBean object methods in order to obtain the source ScriptDetail objects whom XML has been built.

Parameters:
dataDefinition1 - The XML input String
Returns:
The corrispondent ScriptDetail object
Throws:
it.eng.spago.base.SourceBeanException - If a SourceBean Exception occurred