com.altair.hwm.beans.utils
Class HWMActionScript

java.lang.Object
  extended by com.altair.hwm.beans.utils.HWMActionScript
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class HWMActionScript
extends java.lang.Object
implements java.io.Externalizable

Title: HWMActionScript

Description: Class that contains the script and script type. This script will be hooked to a bean & will be executed whenever the bean performs its action(s) Company: Altair Engineering, Inc.

See Also:
Serialized Form

Field Summary
static java.lang.String SCRIPT_HWPM
          Enumeration of the various script types
static java.lang.String SCRIPT_TCL
           
 
Constructor Summary
HWMActionScript()
          Constructor
 
Method Summary
 void ExecuteScript(java.lang.Object obj, IHWMFrameWork hwmFrameWork)
          Execute the script
 java.lang.String GetScript()
          Get the script
 java.lang.String GetScriptInTCLFormat()
          Get the script convereted into a TCL Script.
 java.lang.String GetScriptType()
          Get the script type
 void readExternal(java.io.ObjectInput objInput)
          Read the data
 void SetScript(java.lang.String strScript)
          Set the script
 void SetScriptType(java.lang.String strScriptType)
          Set the script type
 void writeExternal(java.io.ObjectOutput objOutput)
          Save the data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_HWPM

public static final java.lang.String SCRIPT_HWPM
Enumeration of the various script types

See Also:
Constant Field Values

SCRIPT_TCL

public static final java.lang.String SCRIPT_TCL
See Also:
Constant Field Values
Constructor Detail

HWMActionScript

public HWMActionScript()
Constructor

Method Detail

SetScriptType

public void SetScriptType(java.lang.String strScriptType)
Set the script type

Parameters:
strScriptType - The Script Type

GetScriptType

public java.lang.String GetScriptType()
Get the script type

Returns:
String The Script Type

SetScript

public void SetScript(java.lang.String strScript)
Set the script

Parameters:
strScript - The Script

GetScript

public java.lang.String GetScript()
Get the script

Returns:
String The Script

ExecuteScript

public void ExecuteScript(java.lang.Object obj,
                          IHWMFrameWork hwmFrameWork)
                   throws java.lang.Exception
Execute the script

Parameters:
obj - The object in whose scope, the script needs to be executed
hwmFrameWork - The framework handle
Throws:
java.lang.Exception

GetScriptInTCLFormat

public java.lang.String GetScriptInTCLFormat()
Get the script convereted into a TCL Script.

Returns:
String The Java Script

writeExternal

public void writeExternal(java.io.ObjectOutput objOutput)
                   throws java.io.IOException
Save the data

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput objInput)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read the data

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException