Examples of addParameter()


Examples of org.drools.lang.descr.FunctionDescr.addParameter()

            final String type = ((Element)parameters.item( i )).getAttribute( "type" );
           
            emptyAttributeCheck("parameter", "identifier", identifier, parser);
            emptyAttributeCheck("parameter", "type", type, parser);
           
            functionDescr.addParameter( type,
                                        identifier );
        }

        // we allow empty, "", bodies - but make sure that we atleast have a body element
             

Examples of org.drools.lang.descr.QueryDescr.addParameter()

        final PackageBuilder builder = new PackageBuilder();

        final PackageDescr packageDescr = new PackageDescr( "p1" );

        QueryDescr queryDescr = new QueryDescr( "query1" );
        queryDescr.addParameter( "String",
                                 "$name" );
        queryDescr.addParameter( "int",
                                 "$age" );
        queryDescr.addParameter( "String",
                                 "$likes" );

Examples of org.drools.workbench.models.commons.shared.workitems.PortableWorkDefinition.addParameter()

                String statement = line.substring( "wiWorkItem.getParameters().put".length() );
                statement = unwrapParenthesis( statement );
                int commaPos = statement.indexOf( ',' );
                String name = statement.substring( 0, commaPos ).trim();
                String value = statement.substring( commaPos + 1 ).trim();
                pwd.addParameter( buildPortableParameterDefinition( name, value, boundParams ) );
            } else if ( line.startsWith( "wim.internalExecuteWorkItem" ) || line.startsWith( "wiWorkItem.setName" ) ) {
                // ignore
            } else {
                int dotPos = line.indexOf( '.' );
                int argStart = line.indexOf( '(' );

Examples of org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition.addParameter()

                String statement = line.substring( "wiWorkItem.getParameters().put".length() );
                statement = unwrapParenthesis( statement );
                int commaPos = statement.indexOf( ',' );
                String name = statement.substring( 0, commaPos ).trim();
                String value = statement.substring( commaPos + 1 ).trim();
                pwd.addParameter( buildPortableParameterDefinition( name, value, boundParams ) );
            } else if ( line.startsWith( "wim.internalExecuteWorkItem" ) || line.startsWith( "wiWorkItem.setName" ) ) {
                // ignore
            } else {
                int dotPos = line.indexOf( '.' );
                int argStart = line.indexOf( '(' );

Examples of org.eclipse.ecf.internal.bulletinboard.commons.webapp.GetRequest.addParameter()

    }
  }

  public IThread getThread(ID id) throws BBException {
    GetRequest request = new GetRequest(httpClient, url, "viewtopic.php");
    request.addParameter(new NameValuePair("t", String
        .valueOf(((ThreadID) id).getLongValue())));
    String resp = null;
    try {
      request.execute();
      resp = request.getResponseBodyAsString();

Examples of org.eclipse.ecf.internal.bulletinboard.commons.webapp.PostRequest.addParameter()

    return false;
  }

  public boolean logout() throws BBException {
    PostRequest request = new PostRequest(httpClient, url, "login.php");
    request.addParameter(new NameValuePair("logout", "true"));
    try {
      request.execute();
      request.releaseConnection();
      loggedInMemberId = null;
      return true;

Examples of org.eclipse.ecf.internal.bulletinboard.commons.webapp.WebRequest.addParameter()

    PHPBBParser parser = (PHPBBParser) bb.getParser();
    Map<ID, IThread> threadMap = null;
    try {
      WebRequest request = new GetRequest(bb.getHttpClient(), new URL(id
          .toExternalForm()), "");
      request.addParameter(new NameValuePair("f", String.valueOf(id
          .getLongValue())));
      request.execute();
      String resp = request.getResponseBodyAsString();
      request.releaseConnection();
      threadMap = parser.parseThreads(resp);

Examples of org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataMethod.addParameter()

    public MetadataAnnotatedElement visitExecutable(ExecutableType executableType, MetadataAnnotatedElement annotatedElement) {
        MetadataMethod method = (MetadataMethod) annotatedElement;
       
        // Set the parameters.
        for (TypeMirror parameter : executableType.getParameterTypes()) {
            method.addParameter(getRawClass(parameter.accept(stringTypeVisitor, null)));
        }
       
        // Visit the return type (will set the type and generic types).
        executableType.getReturnType().accept(this, method);
        method.setReturnType(method.getType());

Examples of org.elegant.aash.comparator.parsing.expr.FunctionCallExpression.addParameter()

  private static Expression parseIntermediateFunctionCall(ParsingTools stream, String sFunctionName) throws IOException {
    FunctionCallExpression expr = new FunctionCallExpression(sFunctionName);
    stream.ignoreBlanks();
    if (!stream.isEqualTo(')')) {
      Expression param = parseExpression(stream);
      expr.addParameter(param);
      stream.ignoreBlanks();
      while (stream.isEqualTo(',')) {
        param = parseExpression(stream);
        expr.addParameter(param);
        stream.ignoreBlanks();

Examples of org.exist.http.urlrewrite.XQueryURLRewrite.RequestWrapper.addParameter()

        expect(mockHttpServletRequest.getParameterMap()).andReturn(testParameterMap);


        replay(mockHttpServletRequest);
        RequestWrapper wrapper = new RequestWrapper(mockHttpServletRequest);
        wrapper.addParameter(newRequestParamName, newRequestParamValue);
        verify(mockHttpServletRequest);

        final Map<String, String[]> newTestParameterMap = new HashMap<String, String[]>();
        newTestParameterMap.putAll(testParameterMap);
        newTestParameterMap.put(newRequestParamName, new String[] {newRequestParamValue });
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.