Examples of Parameter


Examples of org.apache.tuscany.das.rdb.Parameter

    InsertCommandImpl cmd = new InsertCommandImpl(statement.toString());
    Iterator params = parameters.iterator();
    for (int idx = 1; params.hasNext(); idx++) {
      Property property = (Property) params.next();
      Parameter p = new ParameterImpl();
      p.setName(property.getName());
      p.setType(property.getType());
      p.setConverter(getConverter(table, property.getName()));
      p.setIndex(idx);
      cmd.addParameter(p);

    }
    DebugUtil.debugln(getClass(), debug, statement.toString());
    return cmd;
View Full Code Here

Examples of org.apache.tuscany.das.rdb.config.Parameter

    public SPCommandImpl(String sqlString, MappingWrapper config, List params) {
        super(sqlString, config, null);
        Iterator i = params.iterator();
        for (int idx = 1; i.hasNext(); idx++) {
            Parameter p = (Parameter) i.next();

            int index = p.getColumnType().lastIndexOf('.');
            String pkg = p.getColumnType().substring(0, index);
            String typeName = p.getColumnType().substring(index + 1);

            Type sdoType = TypeHelper.INSTANCE.getType(pkg, typeName);

            int direction = ParameterImpl.IN;
            if ("OUT".equalsIgnoreCase(p.getDirection())) {
                direction = ParameterImpl.OUT;
            } else if ("INOUT".equalsIgnoreCase(p.getDirection())) {
                direction = ParameterImpl.IN_OUT;
            }
            parameters.findOrCreateParameterWithIndex(idx, direction, sdoType);
        }
View Full Code Here

Examples of org.apache.uima.resource.Parameter

        for (int i = 0; i < aParams.length / 2; i++) {
          if (ExternalResourceFactory.getExternalResourceParameterType(aParams[i * 2 + 1]) != ResourceValueType.NO_RESOURCE) {
            continue;
          }

          Parameter param = new Parameter_impl();
          param.setName((String) aParams[i * 2]);
          param.setValue((String) aParams[i * 2 + 1]);
          params.add(param);
        }
      }

      CustomResourceSpecifier spec1 = UIMAFramework.getResourceSpecifierFactory()
View Full Code Here

Examples of org.apache.wink.common.internal.model.admin.Parameter

    private void buildMatrixParams(MethodMetadata methodMetadata, MatrixParameters params) {
        List<Injectable> formalParameters = methodMetadata.getFormalParameters();
        for (Injectable var : formalParameters) {
            if (var.getParamType() == Injectable.ParamType.MATRIX) {
                Parameter param = resourcesObjectFactory.createParameter();
                param.setValue(((BoundInjectable)var).getName());
                params.getParameter().add(param);
            }
        }
    }
View Full Code Here

Examples of org.apache.ws.jaxme.js.Parameter

         jm.addParam(parameters[i]);
       }
       List callParameters = new ArrayList();
       callParameters.add("pController");
       for (int i = 0;  i < parameters.length;  i++) {
         Parameter parameter = parameters[i];
         callParameters.add(", ");
         callParameters.add(parameter.getName());
       }
        jm.addLine((JavaQNameImpl.VOID.equals(pMethod.getType()) ? "" : "return "),
               "backingObject.",
              pMethod.getName(), "(", callParameters, ");");
       return jm;
View Full Code Here

Examples of org.apache.xalan.xsltc.runtime.Parameter

      _translet.setDTDMonitor(dtdMonitor);

      // Pass global parameters
      int n = _params.size();
      for (int i = 0; i < n; i++) {
    Parameter param = (Parameter) _params.elementAt(i);
    translet.addParameter(param._name, param._value);
      }

      // Transform the document
      TransletOutputHandlerFactory tohFactory =
View Full Code Here

Examples of org.applause.lang.applauseDsl.Parameter

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetInputParameter(Parameter newInputParameter, NotificationChain msgs)
  {
    Parameter oldInputParameter = inputParameter;
    inputParameter = newInputParameter;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.SCREEN__INPUT_PARAMETER, oldInputParameter, newInputParameter);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.broadleafcommerce.openadmin.server.service.artifact.image.effects.chain.conversion.Parameter

        rect.x = (int) (applyFactor&&factor!=null?Integer.parseInt(tokens.nextToken())/factor:Integer.parseInt(tokens.nextToken()));
        rect.y = (int) (applyFactor&&factor!=null?Integer.parseInt(tokens.nextToken())/factor:Integer.parseInt(tokens.nextToken()));
        rect.width = (int) (applyFactor&&factor!=null?Integer.parseInt(tokens.nextToken())/factor:Integer.parseInt(tokens.nextToken()));
        rect.height = (int) (applyFactor&&factor!=null?Integer.parseInt(tokens.nextToken())/factor:Integer.parseInt(tokens.nextToken()));
       
        Parameter param = new Parameter();
        param.setParameterClass(Rectangle.class);
        param.setParameterInstance(rect);
       
        return param;
    }
View Full Code Here

Examples of org.cfeclipse.cfml.dictionary.Parameter

       
        /*
         * I am doing  a simple display this time since the attributes dont seem to get disposed
         *
         */
        Parameter param = (Parameter)iter.next();
        TableItem tedit =   new TableItem(table, SWT.NONE);
        tedit.setData(param);
        String paramName = param.getName();
       
        if(param.isRequired()){
         
          paramName = paramName + "*";
         
        }
       
        String values = param.getValues().toString();
        tedit.setText(new String[]{paramName,param.getType(), values});
        //Need to find out if this param is required
        //param.isRequired()
       
       
       
View Full Code Here

Examples of org.codehaus.groovy.ast.Parameter

        VariableExpression newErrorVariableExpression = new VariableExpression("newError", assertionErrorClass);
        newErrorVariableExpression.setAccessedVariable(newErrorVariableExpression);

        ExpressionStatement expr = new ExpressionStatement(new DeclarationExpression(newErrorVariableExpression, Token.newSymbol(Types.ASSIGN, -1, -1),
                new ConstructorCallExpression(assertionErrorClass,
                        new ArgumentListExpression(new BinaryExpression(new ConstantExpression(message), Token.newSymbol(Types.PLUS, -1, -1), new MethodCallExpression(new VariableExpression(new Parameter(ClassHelper.makeWithoutCaching(powerAssertionErrorClass), "error")), "getMessage", ArgumentListExpression.EMPTY_ARGUMENTS))))));

        ExpressionStatement exp2 = new ExpressionStatement(new MethodCallExpression(newErrorVariableExpression, "setStackTrace", new ArgumentListExpression(
                new MethodCallExpression(new VariableExpression(new Parameter(ClassHelper.makeWithoutCaching(powerAssertionErrorClass), "error")), "getStackTrace", ArgumentListExpression.EMPTY_ARGUMENTS)
        )));


        final BlockStatement catchBlock = new BlockStatement();
        catchBlock.addStatement(expr);
        catchBlock.addStatement(exp2);
        catchBlock.addStatement(new ThrowStatement(newErrorVariableExpression));

        final TryCatchStatement tryCatchStatement = new TryCatchStatement(assertStatement, new EmptyStatement());
        tryCatchStatement.addCatch(new CatchStatement(new Parameter(ClassHelper.makeWithoutCaching(powerAssertionErrorClass), "error"), catchBlock));

        final BlockStatement assertBlockStatement = new BlockStatement();
        assertBlockStatement.addStatement(tryCatchStatement);

        return assertBlockStatement;
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.