public class Operation extends Object
This class models the command-line of an image-command. Objects of this class hold the arguments in a list and keep track of special "dynamic" operations.
| Modifier and Type | Field and Description |
|---|---|
static String |
IMG_PLACEHOLDER
Placeholder-string for images.
|
| Constructor and Description |
|---|
Operation()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
addDynamicOperation(DynamicOperation pOperation)
Add a DynamicOperation to this Operation.
|
Operation |
addImage()
Add an image-placeholder to an Operation.
|
Operation |
addImage(int n)
Add multiple image-placeholders to an Operation.
|
Operation |
addImage(String... pImages)
Add image(s) to the operation.
|
Operation |
addOperation(Operation pOperation)
Add an Operation.
|
Operation |
addRawArgs(List<String> pArgs)
Add raw text to the list of arguments.
|
Operation |
addRawArgs(String... pArgs)
Add raw text to the list of arguments.
|
Operation |
cloneObject()
Clone the (java) object.
|
LinkedList<String> |
getCmdArgs()
Return the raw arguments.
|
LinkedList<DynamicOperation> |
getDynamicOperations()
Return the list of DynmicOperations.
|
String |
toString()
Convert to String.
|
public static final String IMG_PLACEHOLDER
public String toString()
public Operation cloneObject()
public LinkedList<String> getCmdArgs()
public Operation addImage()
public Operation addImage(int n)
public Operation addDynamicOperation(DynamicOperation pOperation)
pOperation - the dynamic operation to addpublic LinkedList<DynamicOperation> getDynamicOperations()
Copyright © 2019. All rights reserved.