Examples of addParameter()


Examples of org.springframework.xd.shell.command.JobCommandTests.JobParametersHolder.addParameter()

    final JobParameters jobParameters = chunkContext.getStepContext().getStepExecution().getJobParameters();
    final Set<Entry<String, JobParameter>> parameterEntries = jobParameters.getParameters().entrySet();

    for (Entry<String, JobParameter> jobParameterEntry : parameterEntries) {
      jobParametersHolder.addParameter(jobParameterEntry.getKey(), jobParameterEntry.getValue());
    }

    jobParametersHolder.countDown();

    return RepeatStatus.FINISHED;

Examples of org.sql2o.Query.addParameter()

        Random r = new Random();

        Query insQuery = sql2o.createQuery("insert into post (text, creation_date, last_change_date, counter1, counter2, counter3, counter4, counter5, counter6, counter7, counter8, counter9) values (:text, :creation_date, :last_change_date, :counter1, :counter2, :counter3, :counter4, :counter5, :counter6, :counter7, :counter8, :counter9)");
        for (int idx = 0; idx < ITERATIONS; idx++)
        {
            insQuery.addParameter("text", "a name " + idx)
                    .addParameter("creation_date", new DateTime(System.currentTimeMillis() + r.nextInt()).toDate())
                    .addParameter("last_change_date", new DateTime(System.currentTimeMillis() + r.nextInt()).toDate())
                    .addParameter("counter1", r.nextDouble() > 0.5 ? r.nextInt() : null)
                    .addParameter("counter2", r.nextDouble() > 0.5 ? r.nextInt() : null)
                    .addParameter("counter3", r.nextDouble() > 0.5 ? r.nextInt() : null)

Examples of org.switchyard.component.camel.common.model.AdditionalUriParametersModel.addParameter()

    protected static AdditionalUriParametersModel createAdditionalUriParametersModel(String namespace,
            Map<String, String> parameters) {
        final AdditionalUriParametersModel retVal = new V1AdditionalUriParametersModel(namespace);
        for (Entry<String, String> entry : parameters.entrySet()) {
            retVal.addParameter(new V1ParameterModel(namespace).setName(entry.getKey()).setValue(entry.getValue()));
        }
        return retVal;

    }
}

Examples of org.switchyard.component.camel.common.model.v1.V1AdditionalUriParametersModel.addParameter()

    protected static AdditionalUriParametersModel createAdditionalUriParametersModel(String namespace,
            Map<String, String> parameters) {
        final AdditionalUriParametersModel retVal = new V1AdditionalUriParametersModel(namespace);
        for (Entry<String, String> entry : parameters.entrySet()) {
            retVal.addParameter(new V1ParameterModel(namespace).setName(entry.getKey()).setValue(entry.getValue()));
        }
        return retVal;

    }
}

Examples of org.testng.xml.XmlTest.addParameter()

    private void addTestToSuite(XmlSuite suite, Script script) {
        XmlTest test = new XmlTest(suite);
        //test.setName(FilenameUtils.getBaseName(script.srcFile.getAbsolutePath()));
        test.setName(getTestName(script));
        test.addParameter("script", script.srcFile.getAbsolutePath());
        if (script.args != null) {
            test.addParameter("args", script.args);
        }
       
        List<XmlClass> classes = new ArrayList<XmlClass>();

Examples of org.tod.meta.steps.MethodCallStep.addParameter()

       
        // Set up the parameters.
        Object[] arguments = event.getArguments();
        for (int i = 0; i < arguments.length; i++) {
            Object arg = arguments[i];
            s.addParameter(MirrorFactory.instanceFromTOD(session, arg, calledBehavior.getArgumentTypes()[i].getJvmName()));
        }
       
        return s;
    }
   

Examples of org.uberfire.mvp.PlaceRequest.addParameter()

                           String uri ) {
        PlaceRequest placeRequestImpl = new PathPlaceRequest(
                PathFactory.newPathBasedOn( filename, uri, this.path )
        );

        placeRequestImpl.addParameter( "uuid", uri );
        placeRequestImpl.addParameter( "profile", "jbpm" );
        this.placeManager.goTo( placeRequestImpl );
    }

    private void disableMenus() {

Examples of org.uberfire.mvp.impl.DefaultPlaceRequest.addParameter()

                .menu( AppConstants.INSTANCE.RecentlyEdited() )
                .respondsWith( new Command() {
                    @Override
                    public void execute() {
                        PlaceRequest p = new DefaultPlaceRequest( "Inbox" );
                        p.addParameter( "inboxname", InboxPresenter.RECENT_EDITED_ID );
                        placeManager.goTo( p );
                    }
                } )
                .endMenu()
                .menu( AppConstants.INSTANCE.RecentlyOpened() )

Examples of org.uberfire.mvp.impl.PathPlaceRequest.addParameter()

                           String uri ) {
        PlaceRequest placeRequestImpl = new PathPlaceRequest(
                PathFactory.newPathBasedOn( filename, uri, this.path )
        );

        placeRequestImpl.addParameter( "uuid", uri );
        placeRequestImpl.addParameter( "profile", "jbpm" );
        this.placeManager.goTo( placeRequestImpl );
    }

    private void disableMenus() {

Examples of org.w3c.www.mime.MimeType.addParameter()

      String charset = getCharset();
      if (charset == null)
    contenttype = HttpFactory.makeMimeType(getContentType());
      else {
    MimeType ctype = getContentType().getClone();
    ctype.addParameter("charset", charset);
    contenttype = HttpFactory.makeMimeType(ctype);
      }
  }
  if (contentlength == null) {
      int cl = -1;
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.