/** * @param operatorType * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setType(final OperatorType operatorType) { operation.setType(operatorType); return this; }
/** * Initiate the building of a new <code>Operation</code>. The <code>Operation</code> building will be complete when calling the {@link #done()} method. * * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder createNewInstance() { operation = new OperationImpl(); return this; }
public LeftOperandBuilder createNewInstance(final String name) { leftOperand = new LeftOperandImpl(); leftOperand.setName(name); return this; }
/** * Sets the name of this <code>LeftOperand</code>. Can be a reference to a data / variable, or to a document. * * @param name * the name of the reference that will be set by this operation execution * @return this builder itself, so that calls the various exposed methods can be chained. */ public LeftOperandBuilder setName(final String name) { leftOperand.setName(name); return this; }
/** * @param operator * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setOperator(final String operator) { operation.setOperator(operator); return this; }
/** * Initiate the building of a new <code>LeftOperand</code>. The <code>LeftOperand</code> building will be complete when calling the {@link #done()} method. * * @return this builder itself, so that calls the various exposed methods can be chained. */ public LeftOperandBuilder createNewInstance() { leftOperand = new LeftOperandImpl(); return this; }
/** * @param rightOperand * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setRightOperand(final Expression rightOperand) { operation.setRightOperand(rightOperand); return this; }
/** * Sets the <code>LeftOperand</code> of this operation. A <code>LeftOperand</code> can be obtained by using <code>LeftOperandBuilder</code>. * * @param leftOperand * the <code>LeftOperand</code> to set. * @return this builder itself, so that calls the various exposed methods can be chained. * @see LeftOperandBuilder */ public OperationBuilder setLeftOperand(final LeftOperand leftOperand) { operation.setLeftOperand(leftOperand); return this; }
/** * Set the type of the left operand * It can be {@link LeftOperand#TYPE_DATA} {@link LeftOperand#TYPE_BUSINESS_DATA} {@link LeftOperand#TYPE_DOCUMENT} {@link LeftOperand#TYPE_EXTERNAL_DATA} * {@link LeftOperand#TYPE_SEARCH_INDEX} {@link LeftOperand#TYPE_TRANSIENT_DATA} or an other type of org.bonitasoft.engine.core.operation.LeftOperandHandler * registered in the configuration * * @param type * @return */ public LeftOperandBuilder setType(final String type) { leftOperand.setType(type); return this; }
/** * @param operatorInputType * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setOperatorInputType(final String operatorInputType) { operation.setOperatorInputType(operatorInputType); return this; }
public LeftOperandBuilder createNewInstance(final String name) { leftOperand = new LeftOperandImpl(); leftOperand.setName(name); return this; }
/** * @param operatorType * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setType(final OperatorType operatorType) { operation.setType(operatorType); return this; }
/** * Initiate the building of a new <code>Operation</code>. The <code>Operation</code> building will be complete when calling the {@link #done()} method. * * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder createNewInstance() { operation = new OperationImpl(); return this; }
/** * Sets the name of this <code>LeftOperand</code>. Can be a reference to a data / variable, or to a document. * * @param name * the name of the reference that will be set by this operation execution * @return this builder itself, so that calls the various exposed methods can be chained. */ public LeftOperandBuilder setName(final String name) { leftOperand.setName(name); return this; }
/** * @param operator * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setOperator(final String operator) { operation.setOperator(operator); return this; }
/** * Initiate the building of a new <code>LeftOperand</code>. The <code>LeftOperand</code> building will be complete when calling the {@link #done()} method. * * @return this builder itself, so that calls the various exposed methods can be chained. */ public LeftOperandBuilder createNewInstance() { leftOperand = new LeftOperandImpl(); return this; }
/** * @param rightOperand * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setRightOperand(final Expression rightOperand) { operation.setRightOperand(rightOperand); return this; }
/** * Sets the <code>LeftOperand</code> of this operation. A <code>LeftOperand</code> can be obtained by using <code>LeftOperandBuilder</code>. * * @param leftOperand * the <code>LeftOperand</code> to set. * @return this builder itself, so that calls the various exposed methods can be chained. * @see LeftOperandBuilder */ public OperationBuilder setLeftOperand(final LeftOperand leftOperand) { operation.setLeftOperand(leftOperand); return this; }
/** * Set the type of the left operand * It can be {@link LeftOperand#TYPE_DATA} {@link LeftOperand#TYPE_BUSINESS_DATA} {@link LeftOperand#TYPE_DOCUMENT} {@link LeftOperand#TYPE_EXTERNAL_DATA} * {@link LeftOperand#TYPE_SEARCH_INDEX} {@link LeftOperand#TYPE_TRANSIENT_DATA} or an other type of org.bonitasoft.engine.core.operation.LeftOperandHandler * registered in the configuration * * @param type * @return */ public LeftOperandBuilder setType(final String type) { leftOperand.setType(type); return this; }
/** * @param operatorInputType * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setOperatorInputType(final String operatorInputType) { operation.setOperatorInputType(operatorInputType); return this; }