it.eng.spagobi.bo.lov
Class ScriptDetail

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

public class ScriptDetail
extends java.lang.Object
implements ILovDetail

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

Author:
sulis
See Also:
Serialized Form

Constructor Summary
ScriptDetail()
           
ScriptDetail(java.lang.String dataDefinition)
           
 
Method Summary
static ScriptDetail fromXML(java.lang.String dataDefinition)
          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 getLovResult(it.eng.spago.security.IEngUserProfile profile)
           
 java.lang.String getScript()
          Get the string of the script
 boolean isSingleValue()
           
 void loadFromXML(java.lang.String dataDefinition)
           
 void setScript(java.lang.String script)
          Set the string of the script
 void setSingleValue(boolean singleValue)
           
 java.lang.String toXML()
          Loads the XML string defined by a ScriptDetail object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptDetail

public ScriptDetail()

ScriptDetail

public ScriptDetail(java.lang.String dataDefinition)
             throws it.eng.spago.base.SourceBeanException
Throws:
it.eng.spago.base.SourceBeanException
Method Detail

loadFromXML

public void loadFromXML(java.lang.String dataDefinition)
                 throws it.eng.spago.base.SourceBeanException
Specified by:
loadFromXML in interface ILovDetail
Throws:
it.eng.spago.base.SourceBeanException

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.

Specified by:
toXML in interface ILovDetail
Returns:
The XML output String

getLovResult

public java.lang.String getLovResult(it.eng.spago.security.IEngUserProfile profile)
                              throws java.lang.Exception
Specified by:
getLovResult in interface ILovDetail
Throws:
java.lang.Exception

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

fromXML

public static ScriptDetail fromXML(java.lang.String dataDefinition)
                            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:
dataDefinition - The XML input String
Returns:
The corrispondent ScriptDetail object
Throws:
it.eng.spago.base.SourceBeanException - If a SourceBean Exception occurred

isSingleValue

public boolean isSingleValue()

setSingleValue

public void setSingleValue(boolean singleValue)