public class BatchCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BATCH_COMMAND_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 |
|---|
BatchCommand()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(Command command)
Adds command to this batch.
|
Command[] |
getCommands()
Returns commands contained in this batch command.
|
java.lang.String |
getType()
Returns BATCH_COMMAND_TYPE constant.
|
void |
insertCommandAt(Command command,
int index)
Inserts the specified command as a component in this batch at the specified index.
|
void |
readObject(java.io.InputStream in)
Method used for serialization
|
boolean |
removeCommand(Command command)
Removes the first (lowest-indexed) occurrence of the argument command from this batch.
|
void |
removeCommandAt(int index)
Removes the command at the specified index.
|
void |
setCommandAt(Command command,
int index)
Sets the command at the specified
index of this batch to be the specified command object. |
int |
size()
Returns the number of commands in this batch.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream out)
Method used for serialization
|
public static final java.lang.String BATCH_COMMAND_TYPE
public java.lang.String getType()
public void addCommand(Command command)
command - being added to the batch command.public void insertCommandAt(Command command, int index)
command - being added to the batch command.index - the specified index.public void setCommandAt(Command command, int index)
index of this batch to be the specified command object.
The previous command at that position is discarded.
index - the specified index.command - what the command is to be set to.public boolean removeCommand(Command command)
command - the command to be removed.public void removeCommandAt(int index)
index - the index of the command to remove.public Command[] getCommands()
public int size()
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.