public class SerializedCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERIALIZED_COMMAND |
COMMAND_TYPE_BATCH_COMMAND, COMMAND_TYPE_CONDITIONAL, COMMAND_TYPE_CU, COMMAND_TYPE_CU_INSTANCE, COMMAND_TYPE_SCRIPT, COMMAND_TYPE_SERIALIZED_COMMAND| Constructor and Description |
|---|
SerializedCommand()
Empty constrtor.
|
SerializedCommand(Command command)
Construct serialized command from given custom command.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
deserialize(java.lang.ClassLoader loader)
Deserializes the original command with given class loader.
|
java.lang.String |
getOriginalType()
Returns the type of the original command.
|
java.lang.String |
getType()
Returns the type of this command.
|
void |
readObject(java.io.InputStream in)
Method used for serialization.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream out)
Method used for serialization.
|
public static final java.lang.String SERIALIZED_COMMAND
public SerializedCommand()
public SerializedCommand(Command command) throws java.lang.Exception
command - command.java.lang.Exception - if exception occurs during serialization of the custom command.public java.lang.String getType()
Commandpublic java.lang.String getOriginalType()
public Command deserialize(java.lang.ClassLoader loader) throws java.lang.Exception
loader - class loader.java.lang.Exception - if error occurs during deserialization.public void readObject(java.io.InputStream in)
throws java.lang.Exception
readObject in interface Externalizablejava.lang.Exceptionpublic void writeObject(java.io.OutputStream out)
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.