Examples of Arguments


Examples of co.cask.cdap.app.runtime.Arguments

  }

  private ProgramOptions createRunnableOptions(String name, int instanceId, int instances, RunId runId) {

    // Get the right user arguments.
    Arguments userArguments = new BasicArguments();
    if (programOptions.containsKey(runId)) {
      userArguments = programOptions.get(runId).getUserArguments();
    }

    return new SimpleProgramOptions(name, new BasicArguments
View Full Code Here

Examples of co.cask.tigon.internal.app.runtime.Arguments

  }

  private ProgramOptions createFlowletOptions(String name, int instanceId, int instances, RunId runId) {

    // Get the right user arguments.
    Arguments userArguments = new BasicArguments();
    if (programOptions.containsKey(runId)) {
      userArguments = programOptions.get(runId).getUserArguments();
    }

    return new SimpleProgramOptions(name, new BasicArguments(
View Full Code Here

Examples of com.hp.hpl.jena.extras.commandline.Arguments

@RunWith(JUnit4.class) public class TestCommandLine
    {
    @Test public void testDefaultKeywordIsLastAllowed()
        {
        assertEquals( "foo", new Arguments( "foo" ).getDefaultKeyword() );
        assertEquals( "spoo", new Arguments( "foo spoo" ).getDefaultKeyword() );
        assertEquals( "goo", new Arguments( "spoo foo goo" ).getDefaultKeyword() );
        assertEquals( "floo", new Arguments( "foo goo spoo floo" ).getDefaultKeyword() );
        }
View Full Code Here

Examples of com.iCo6.IO.mini.Arguments

            Mini database = iConomy.Database.getTransactionDatabase();

            if(database == null)
                return;

            Arguments entry = new Arguments(data.time);
            entry.setValue("where", data.where);
            entry.setValue("from", data.from);
            entry.setValue("to", data.to);
            entry.setValue("from_balance", data.fromBalance);
            entry.setValue("to_balance", data.toBalance);
            entry.setValue("gain", data.gain);
            entry.setValue("loss", data.loss);
            entry.setValue("set", data.set);
            database.addIndex(entry);
            database.update();

            return;
        }
View Full Code Here

Examples of com.iCo6.IO.mini.Arguments

            if(useInventoryDB())
                if(inventory.dataExists(name))
                    return false;

            Arguments Row = new Arguments(name);
            Row.setValue("balance", balance);
            Row.setValue("status", status);

            database.addIndex(Row.getKey(), Row);
            database.update();

            return true;
        }
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.constraints.data.Arguments

        //      Number of <parameters> defined in <check> should match the
        //      number of <arguments> of corresponding <check-info>
        //
        Constraint constraint = null;
        String classname = checkInfo.getClassname();
        Arguments arguments = checkInfo.getArguments();
        Class[] argumentTypeClass = new Class[1];
        Object[] argumentValue = new Object[1];
       
        String argumentName;
        String argumentType;

        constraint = (Constraint)utils.createObject(classname);
        if(null != arguments){
            int size = arguments.sizeArgument();
            Parameters parameters = check.getParameters();

            if((null != parameters) && (size == parameters.sizeParameter())){
                Argument argument =  null;
                Parameter parameter = null;
                for(int i=0; i<size; i++) {
                    argument = arguments.getArgument(i);
                    argumentName = argument.getName();
                    argumentType = argument.getType();
                    parameter =
                        getParameter(parameters, argumentName);
View Full Code Here

Examples of com.volantis.styling.impl.expressions.Arguments

    /**
     * Ensure that empty arguments are handled properly.
     */
    public void testEmptyArguments() {

        Arguments arguments;

        List values = new ArrayList();
        List evaluated;

        arguments = new ArgumentsImpl(values, false);
        evaluated = arguments.evaluate(evaluationContextMock);
        assertEquals(values, evaluated);
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.expressions.tmlscript.VarArgParser.Arguments

        return Design.db(cx, design, args, funObj);
    }
   
    public static String localLabel(Context cx, Scriptable thisObj, java.lang.Object[] args, Function funObj) throws JavaScriptException, WGException {
        TMLContext context = WGAGlobal.fetchInitialContext(cx);
        Arguments parsedArgs = _localLabelVarargs.parse(args);
        WGDatabase localDB = localDB(cx, thisObj, new Object[] {parsedArgs.get("currentObject")}, funObj);
        return context.label(localDB, (String) parsedArgs.get("container"), (String) parsedArgs.get("file"), (String) parsedArgs.get("key"), (List) parsedArgs.get("params"));

    }
View Full Code Here

Examples of eu.mosaic_cloud.benchmarks.prototype.Pipeline.Arguments

      this.warmPipeline ();
    final Float timeout = scenario.timeout;
    for (final Integer stages : scenario.stages)
      for (final Integer fanout : scenario.fanout)
        for (final Integer buffer : scenario.buffer) {
          final eu.mosaic_cloud.benchmarks.prototype.Pipeline.Arguments arguments = new Arguments ();
          arguments.buffer = buffer;
          arguments.stages = stages;
          arguments.fanout = fanout;
          arguments.timeout = timeout;
          this.testPipeline (arguments);
View Full Code Here

Examples of fitnesse.Arguments

         return wikiFormatClasspath;
    }

  public void launchFitNesseServer(
        final String port, final String workingDir, final String root, final String logDir) throws Exception {
        final Arguments arguments = new Arguments();
        arguments.setCommand(null);
        arguments.setInstallOnly(false);
        arguments.setOmitUpdates(true);
        arguments.setDaysTillVersionsExpire("0");
        arguments.setPort(port);
        arguments.setRootPath(workingDir);
        arguments.setRootDirectory(root);
        if(logDir != null && !logDir.trim().equals("")) {
            arguments.setLogDirectory(logDir);
        }
        FitNesseMain.launchFitNesse(arguments);
    }
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.