Examples of parameter()


Examples of org.arquillian.spacelift.process.impl.CommandTool.parameter()

    protected Void process(Object input) throws Exception {

        final CommandTool jbossCliTool = getJBossCliTool();

        if (controller != null) {
            jbossCliTool.parameter("--controller=" + controller);
        }

        if (connect) {
            jbossCliTool.parameter("--connect");
        }
View Full Code Here

Examples of org.geotools.parameter.Parameter.parameter()

        else
          visibleBand = CoverageUtilities.getVisibleBand(gc);

        final ParameterValueGroup param = (ParameterValueGroup) ArcGridWriter.bandSelectParams
            .clone();
        param.parameter("source").setValue(gc);
        param.parameter("SampleDimensions").setValue(
            new int[] { visibleBand });
        gc = (GridCoverage2D) bandSelectFactory
            .doOperation(param, null);
      }
View Full Code Here

Examples of org.geotools.parameter.ParameterGroup.parameter()

    ParameterValueGroup WarpGridParameters = new ParameterGroup(
        new WarpGridTransform2D.Provider().getParameters());
    /**
     * TODO - throw exception when the values are not integers
     */
    WarpGridParameters.parameter("xStart").setValue(new Double(this.xStart).intValue());
    WarpGridParameters.parameter("yStart").setValue(new Double(this.yStart).intValue());       
    WarpGridParameters.parameter("xStep").setValue(new Double(this.xStep).intValue());       
    WarpGridParameters.parameter("yStep").setValue(new Double(this.yStep).intValue());       
    WarpGridParameters.parameter("xNumCells").setValue(new Double(xNumber).intValue())
    WarpGridParameters.parameter("yNumCells").setValue(new Double(yNumber).intValue());       
View Full Code Here

Examples of org.graphity.client.util.XSLTBuilder.parameter()

        {
            Resource resource = (Resource)getUriInfo().getMatchedResources().get(0);
            if (log.isDebugEnabled()) log.debug("Matched Resource: {}", resource);
            MatchedIndividual match = (MatchedIndividual)resource;

      bld.parameter("{" + GP.matchedOntClass.getNameSpace() + "}" + GP.matchedOntClass.getLocalName(), URI.create(match.getMatchedOntClass().getURI())).
            parameter("{" + GP.ontModel.getNameSpace() + "}" + GP.ontModel.getLocalName(), getSource(match.getOntModel(), true)); // $ont-model from the current Resource (with imports)
        }
       
  Object contentType = headerMap.getFirst(HttpHeaders.CONTENT_TYPE);
  if (contentType != null)
View Full Code Here

Examples of org.hisrc.jscm.codemodel.JSFunctionDeclaration.parameter()

    JSProgram program = codeModel.program();
    // Add a function declaration
    JSFunctionDeclaration factorial = program
        .functionDeclaration("factorial");
    // Add a function parameter
    JSVariable x = factorial.parameter("x");
    // Create an integer literal
    JSDecimalIntegerLiteral one = codeModel.integer(1);
    // Add a return statement to the function body
    factorial.getBody()._return(
        x.le(one).cond(
View Full Code Here

Examples of org.hisrc.jscm.codemodel.expression.JSFunctionExpression.Function.parameter()

    {
      _Prototype.append("emptyFunction", codeModel.function());
    }
    {
      final Function _K = codeModel.function();
      JSVariable $x = _K.parameter("x");
      _K.getBody()._return($x);
      _Prototype.append("K", _K);
    }

    final CodeWriter systemOutCodeWriter = new CodeWriter(System.out);
View Full Code Here

Examples of org.jbehave.core.parsers.StepMatcher.parameter()

    parameters.put("theme", firstParameterValue);
    parameters.put("variant", secondParameterValue);

        // When
        when(stepMatcher.parameterNames()).thenReturn(parameters.keySet().toArray(new String[parameters.size()]));
        when(stepMatcher.parameter(1)).thenReturn(parameters.get(firstParameterValue));
        when(stepMatcher.parameter(2)).thenReturn(parameters.get(secondParameterValue));
        StepResult stepResult = stepCreator.createParametrisedStep(SomeSteps.methodFor("aMethodWithANamedParameter"),
                "When I use parameters <theme> and <variant>", "I use parameters <theme> and <variant>", parameters)
                .perform(null);
View Full Code Here

Examples of org.jbehave.core.parsers.StepMatcher.parameter()

    parameters.put("variant", secondParameterValue);

        // When
        when(stepMatcher.parameterNames()).thenReturn(parameters.keySet().toArray(new String[parameters.size()]));
        when(stepMatcher.parameter(1)).thenReturn(parameters.get(firstParameterValue));
        when(stepMatcher.parameter(2)).thenReturn(parameters.get(secondParameterValue));
        StepResult stepResult = stepCreator.createParametrisedStep(SomeSteps.methodFor("aMethodWithANamedParameter"),
                "When I use parameters <theme> and <variant>", "I use parameters <theme> and <variant>", parameters)
                .perform(null);

        // Then
View Full Code Here

Examples of org.jbehave.core.parsers.StepMatcher.parameter()

        StepMatcher stepMatcher = mock(StepMatcher.class);
        ParameterControls parameterControls = new ParameterControls().useDelimiterNamedParameters(true);
        StepCreator stepCreator = stepCreatorUsing(stepsInstance, stepMatcher, parameterControls);
        Map<String, String> params = Collections.singletonMap("param", "value");
        when(stepMatcher.parameterNames()).thenReturn(params.keySet().toArray(new String[params.size()]));
        when(stepMatcher.parameter(1)).thenReturn("<param>");

        // When
        Step step = stepCreator.createParametrisedStep(SomeSteps.methodFor("aMethodWithoutNamedAnnotation"),
                "When a parameter <param> is set", "a parameter <param> is set", params);
        step.perform(null);
View Full Code Here

Examples of org.jbehave.core.parsers.StepMatcher.parameter()

        StepCreator stepCreator = stepCreatorUsing(stepsInstance, stepMatcher, parameterControls);
        Map<String, String> params = new HashMap<String, String>();
        params.put("t", "distinct theme");
        params.put("v", "distinct variant");
        when(stepMatcher.parameterNames()).thenReturn(params.keySet().toArray(new String[params.size()]));
        when(stepMatcher.parameter(1)).thenReturn("<t>");
        when(stepMatcher.parameter(2)).thenReturn("<v>");

        // When
        Step step = stepCreator.createParametrisedStep(SomeSteps.methodFor("aMethodWithANamedParameter"),
                "When I use parameters <t> and <v>", "I use parameters <t> and <v>", params);
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.