public class OperationBuilder extends Object
Operation objects. Operations are a way to 'assign', 'operate', 'set a new value', ... on something.
See OperatorType for the different types of operation.OperatorType,
Operation| Constructor and Description |
|---|
OperationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Operation |
createJavaMethodOperation(String objectName,
String methodName,
String methodParamType,
Expression methodParams) |
OperationBuilder |
createNewInstance()
Initiate the building of a new
Operation. |
Operation |
createSetDataOperation(String dataName,
Expression expression) |
Operation |
createSetDocument(String docName,
Expression expression) |
Operation |
createSetStringIndexOperation(int index,
Expression setValue)
Creates a new operation that sets a new value to a String search index.
|
Operation |
createXPathOperation(String xmlName,
String xPath,
Expression setValue) |
Operation |
done() |
OperationBuilder |
setLeftOperand(LeftOperand leftOperand)
Sets the
LeftOperand of this operation. |
OperationBuilder |
setLeftOperand(String name,
boolean external)
Sets the
LeftOperand of this operation. |
OperationBuilder |
setOperator(String operator) |
OperationBuilder |
setOperatorInputType(String operatorInputType) |
OperationBuilder |
setRightOperand(Expression rightOperand) |
OperationBuilder |
setType(OperatorType operatorType) |
public OperationBuilder createNewInstance()
Operation. The Operation building will be complete when calling the done() method.public OperationBuilder setLeftOperand(LeftOperand leftOperand)
LeftOperand of this operation. A LeftOperand can be obtained by using LeftOperandBuilder.leftOperand - the LeftOperand to set.LeftOperandBuilderpublic OperationBuilder setLeftOperand(String name, boolean external)
LeftOperand of this operation. It is built for you with its name and external properties.name - the name of the left operandexternal - public OperationBuilder setType(OperatorType operatorType)
operatorType - public OperationBuilder setOperator(String operator)
operator - public OperationBuilder setOperatorInputType(String operatorInputType)
operatorInputType - public OperationBuilder setRightOperand(Expression rightOperand)
rightOperand - public Operation createSetDataOperation(String dataName, Expression expression)
dataName - expression - Operation.public Operation createSetDocument(String docName, Expression expression)
docName - expression - Operation.public Operation createXPathOperation(String xmlName, String xPath, Expression setValue)
xmlName - xPath - setValue - Operation.public Operation createJavaMethodOperation(String objectName, String methodName, String methodParamType, Expression methodParams)
objectName - methodName - methodParamType - methodParams - Operation.public Operation createSetStringIndexOperation(int index, Expression setValue)
index - the search index to setsetValue - the Expression to set the search index to.Operation.public Operation done()
Operation.Copyright © 2013 BonitaSoft. All Rights Reserved.