public LeftOperandBuilder createNewInstance(final String name) { leftOperand = new LeftOperandImpl(); leftOperand.setName(name); 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; }
public static Operation toOperation(final SOperation operation) { final OperationImpl operationImpl = new OperationImpl(); operationImpl.setRightOperand(toExpression(operation.getRightOperand())); operationImpl.setOperator(operation.getOperator()); operationImpl.setType(toOperatorType(operation.getType())); final LeftOperandImpl leftOperand = new LeftOperandImpl(); final SLeftOperand sLeftOperand = operation.getLeftOperand(); leftOperand.setName(sLeftOperand.getName()); leftOperand.setType(sLeftOperand.getType()); operationImpl.setLeftOperand(leftOperand); return operationImpl; }
/** * @deprecated use setType(LeftOperand.TYPE_EXTERNAL_DATA) instead * @param external * @return this builder itself, so that calls the various exposed methods can be chained. */ @Deprecated public LeftOperandBuilder setExternal(final boolean external) { if (leftOperand.getType() != null && !LeftOperand.TYPE_DATA.equals(leftOperand.getType()) && !LeftOperand.TYPE_EXTERNAL_DATA.equals(leftOperand.getType())) { throw new IllegalStateException( "Can't set left operand to external when the type is not input or data this method is deprecated, it's not usefull to use it anymore"); } leftOperand.setType(external ? LeftOperand.TYPE_EXTERNAL_DATA : LeftOperand.TYPE_DATA); 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; }
/** * 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; }
public static Operation toOperation(final SOperation operation) { final OperationImpl operationImpl = new OperationImpl(); operationImpl.setRightOperand(toExpression(operation.getRightOperand())); operationImpl.setOperator(operation.getOperator()); operationImpl.setType(toOperatorType(operation.getType())); final LeftOperandImpl leftOperand = new LeftOperandImpl(); final SLeftOperand sLeftOperand = operation.getLeftOperand(); leftOperand.setName(sLeftOperand.getName()); leftOperand.setType(sLeftOperand.getType()); operationImpl.setLeftOperand(leftOperand); return operationImpl; }
/** * @deprecated use setType(LeftOperand.TYPE_EXTERNAL_DATA) instead * @param external * @return this builder itself, so that calls the various exposed methods can be chained. */ @Deprecated public LeftOperandBuilder setExternal(final boolean external) { if (leftOperand.getType() != null && !LeftOperand.TYPE_DATA.equals(leftOperand.getType()) && !LeftOperand.TYPE_EXTERNAL_DATA.equals(leftOperand.getType())) { throw new IllegalStateException( "Can't set left operand to external when the type is not input or data this method is deprecated, it's not usefull to use it anymore"); } leftOperand.setType(external ? LeftOperand.TYPE_EXTERNAL_DATA : LeftOperand.TYPE_DATA); 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; }
/** * 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; }
public LeftOperandBuilder createNewInstance(final String name) { leftOperand = new LeftOperandImpl(); leftOperand.setName(name); 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; }
/** * @deprecated use setType(String) * @param type * @return */ @Deprecated public LeftOperandBuilder setType(final LeftOperandType type) { leftOperand.setType(type.name()); return this; }
/** * @deprecated use setType(String) * @param type * @return */ @Deprecated public LeftOperandBuilder setType(final LeftOperandType type) { leftOperand.setType(type.name()); return this; }