/** * 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; }
/** * 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; }
/** * @deprecated use setLeftOperand(String,String) * Sets the <code>LeftOperand</code> of this operation. It is built for you with its name and external properties. * @param name * the name of the left operand * @param external * is the data managed externally and thus should not be tried to be updated? * @return this builder itself, so that calls the various exposed methods can be chained. */ @Deprecated public OperationBuilder setLeftOperand(final String name, final boolean external) { operation.setLeftOperand(new LeftOperandBuilder().createNewInstance(name).setExternal(external).done()); return this; }
/** * @deprecated use setLeftOperand(String,String) * Sets the <code>LeftOperand</code> of this operation. It is built for you with its name and external properties. * @param name * the name of the left operand * @param external * is the data managed externally and thus should not be tried to be updated? * @return this builder itself, so that calls the various exposed methods can be chained. */ @Deprecated public OperationBuilder setLeftOperand(final String name, final boolean external) { operation.setLeftOperand(new LeftOperandBuilder().createNewInstance(name).setExternal(external).done()); return this; }
/** * Sets the <code>LeftOperand</code> of this operation. It is built for you with its name and external properties. * * @param name * the name of the left operand * @param type * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setLeftOperand(final String name, final String type) { operation.setLeftOperand(new LeftOperandBuilder().createNewInstance(name).setType(type).done()); return this; }
/** * Sets the <code>LeftOperand</code> of this operation. It is built for you with its name and external properties. * * @param name * the name of the left operand * @param type * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setLeftOperand(final String name, final String type) { operation.setLeftOperand(new LeftOperandBuilder().createNewInstance(name).setType(type).done()); return this; }
/** * @deprecated use setLeftOperand(String,String) * Sets the <code>LeftOperand</code> of this operation. It is built for you with its name and external properties. * @param name * the name of the left operand * @param type * @param external * @return this builder itself, so that calls the various exposed methods can be chained. */ @Deprecated public OperationBuilder setLeftOperand(final String name, LeftOperandType type, final boolean external) { if (type == LeftOperandType.DATA && external) { type = LeftOperandType.EXTERNAL_DATA; } operation.setLeftOperand(new LeftOperandBuilder().createNewInstance(name).setType(type.name()).done()); return this; }
/** * @deprecated use setLeftOperand(String,String) * Sets the <code>LeftOperand</code> of this operation. It is built for you with its name and external properties. * @param name * the name of the left operand * @param type * @param external * @return this builder itself, so that calls the various exposed methods can be chained. */ @Deprecated public OperationBuilder setLeftOperand(final String name, LeftOperandType type, final boolean external) { if (type == LeftOperandType.DATA && external) { type = LeftOperandType.EXTERNAL_DATA; } operation.setLeftOperand(new LeftOperandBuilder().createNewInstance(name).setType(type.name()).done()); 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; }
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; }