public class ScriptCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCRIPT_TYPE |
COMMAND_TYPE_BATCH_COMMAND, COMMAND_TYPE_CONDITIONAL, COMMAND_TYPE_CU, COMMAND_TYPE_CU_INSTANCE, COMMAND_TYPE_SCRIPT, COMMAND_TYPE_SERIALIZED_COMMAND| Constructor and Description |
|---|
ScriptCommand()
Empty constructor.
|
ScriptCommand(java.lang.String script)
Creates ScriptCommand object with a given script text.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getScriptText()
Returns the text of script represented by this command.
|
java.lang.String |
getType()
Returns SCRIPT_TYPE constant.
|
void |
readObject(java.io.InputStream is)
Method used for serialization
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream os)
Method used for serialization
|
public static final java.lang.String SCRIPT_TYPE
public ScriptCommand()
public ScriptCommand(java.lang.String script)
script - the text of the command script.public java.lang.String getType()
public java.lang.String getScriptText()
public void readObject(java.io.InputStream is)
throws java.lang.Exception
readObject in interface Externalizablejava.lang.Exceptionpublic void writeObject(java.io.OutputStream os)
throws java.lang.Exception
writeObject in interface Externalizablejava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.