Examples of Operation


Examples of be.selckin.ws.util.java2php.php.Operation

            arguments.add(new Argument(typeHint, itemInfo.getXmlName()));
        }

        TypeHint returnType = findReturnType(currentOperation);

        current.addOperation(new Operation(nameManager.getPhpName(currentOperation.getName()), returnType, arguments));
    }
View Full Code Here

Examples of beans.Operation

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        ServletContext sc = getServletContext();
        Operation operation = (Operation) request.getAttribute("operationBean");

        BigInteger firstNumber = new BigInteger(operation.getFirstNumber());
        BigInteger secondNumber = new BigInteger(operation.getSecondNumber());

        String result;
        try {
            result = calculate(firstNumber, secondNumber, operation.getOperator()).toString();
        } catch (ArithmeticException ex) {
            result = "Illegal Operation";
        }
        operation.setResult(result);
        request.setAttribute("operationBean", operation);

        request.getRequestDispatcher("result.jsp").forward(request, response);
    }
View Full Code Here

Examples of br.com.visualmidia.business.Operation

                   
                  
                    if(categoryId.charAt(0) == '2'){
                        Money valueComp = new Money(valueText.getText());
                        if(balanceValue.getFloatValue() >= valueComp.getFloatValue()){
                            Operation operation = new MoneyTransaction().accountOperation(system.getRegisterMachine(), categoryId, new GDDate(), descriptionText.getText(), new Money(valueText.getText()).getFloatValue(), paymentTypeCombo.getPaymentType());
                            addOperationToTable(operation);
                           
                            clearForNewTransaction();
                        }else{
                            setErrorMessage("Saldo Insuficiente.");
                        }
                    }else{
                        Operation operation = new MoneyTransaction().accountOperation(system.getRegisterMachine(), categoryId, new GDDate(), descriptionText.getText(), new Money(valueText.getText()).getFloatValue(), paymentTypeCombo.getPaymentType());
                        addOperationToTable(operation);

                        clearForNewTransaction();
                    }
                } catch (Exception e) {
View Full Code Here

Examples of bs.bs2d.fea.processing.Operation

    private void btnResetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnResetActionPerformed
        alUpdatePlot.actionPerformed(null);
    }//GEN-LAST:event_btnResetActionPerformed

    private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNewActionPerformed
        opModel.add(new Operation(Operation.Type.SMOOTH));
    }//GEN-LAST:event_btnNewActionPerformed
View Full Code Here

Examples of com.abiquo.hypervisor.plugin.IHypervisor.OPERATION

        Set<OPERATION> unsupportedOperations = Sets.newHashSet();
        for (Method method : plugin.getClass().getMethods())
        {
            if (method.getAnnotation(UnsupportedOperation.class) != null)
            {
                OPERATION op = OPERATION.fromName(method.getName());
                if (op != null)
                {
                    unsupportedOperations.add(op);
                }
            }
View Full Code Here

Examples of com.carma.swagger.doclet.model.Operation

    if (methodApi == null) {
      methodApi = new Api(parsedMethod.getPath(), "", new ArrayList<Operation>());
      declaration.getApis().add(methodApi);
    }

    methodApi.getOperations().add(new Operation(parsedMethod));
  }
View Full Code Here

Examples of com.ee.tayra.domain.operation.Operation

  @Override
  public void replay(final String document) {
    try {
      notifier.notifyWriteStart(document);
      final String operationCode = extractOpcode(document);
      Operation operation = operations.get(operationCode);
      operation.execute(document);
      notifier.notifyWriteSuccess(document);
    } catch (OperationFailed problem) {
      notifier.notifyWriteFailure(document, problem);
      if (problem.isConnectionLost()) {
        throw problem;
View Full Code Here

Examples of com.eviware.soapui.model.iface.Operation

public class EndpointStrategyRequestFilter extends AbstractRequestFilter
{
  public void filterRequest( SubmitContext context, Request wsdlRequest )
  {
    Operation operation = wsdlRequest.getOperation();
    if( operation != null )
    {
      EndpointStrategy endpointStrategy = operation.getInterface().getProject().getEndpointStrategy();
      if( endpointStrategy != null )
        endpointStrategy.filterRequest( context, wsdlRequest );
    }
  }
View Full Code Here

Examples of com.excilys.ebi.bank.model.entity.Operation

            return input.getCard().getId();
          }
        });

    for (Entry<Card, BigDecimal[]> entry : sums.entrySet()) {
      Operation creditSum = creditSumsIndexedByCardId.get(entry.getKey().getId());
      if (creditSum != null) {
        entry.getValue()[0] = creditSum.getAmount();
      }
      Operation debitSum = debitSumsIndexedByCardId.get(entry.getKey().getId());
      if (debitSum != null) {
        entry.getValue()[1] = debitSum.getAmount();
      }
    }

    return sums;
  }
View Full Code Here

Examples of com.github.nmorel.gwtjackson.benchmark.client.Operation

        if ( criteria.isSerialization() ) {
            if ( criteria.isSingletonMapper() ) {
                // warmup the mapper
                mapperProvider.getMapper().write( datas );
            }
            operations.add( new Operation( criteria.getNbIterations(), result.getResultSer() ) {
                @Override
                protected void doExecute() {
                    mapperProvider.getMapper().write( datas );
                }
            } );
        }

        if ( criteria.isDeserialization() ) {
            final String jsonInput = mapperProvider.getMapper().write( datas );
            operations.add( new Operation( criteria.getNbIterations(), result.getResultDeser() ) {
                @Override
                protected void doExecute() {
                    mapperProvider.getMapper().read( jsonInput );
                }
            } );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.