Examples of Parameter


Examples of com.germinus.mashupbuilder.services.Parameter

        List<Parameter> parameters = new ArrayList<Parameter>();
        if (request != null) {
            List<Param> params = request.getParamList();
            if (params != null) {
                for (Param param : params) {
                    Parameter parameter = convertParameter(param);
                    parameter.setStyle(Parameter.ParameterStyle.QUERY);
                    parameters.add(parameter);
                }
            }
        }
        List<Param> params = resource.getParamList();
        if (params != null) {
            for (Param param : params) {
                Parameter parameter = convertParameter(param);
                parameter.setStyle(Parameter.ParameterStyle.TEMPLATE);
                parameters.add(parameter);
            }
        }

        ExecuteMethod executeMethod = new ExecuteMethod();
View Full Code Here

Examples of com.github.antlrjavaparser.api.body.Parameter

                parameterType = finalType;
            }

            // Create a Java Parser constructor parameter and add it to the list
            // of parameters
            final Parameter p = new Parameter(parameterType,
                    new VariableDeclaratorId(parameterName));
            p.setAnnotations(parameterAnnotations);
            parameters.add(p);
        }

        // Set the body
        if (constructor.getBody() == null
View Full Code Here

Examples of com.github.dandelion.datatables.core.asset.Parameter

   *            Name of the parameter.
   * @param parameterValue
   *            Value of the parameter.
   */
  public void addParameter(String parameterName, Object parameterValue) {
    addParameter(new Parameter(parameterName, parameterValue));
  }
View Full Code Here

Examples of com.github.ebnew.ki4so.core.authentication.Parameter

      Credential credential) {
    if(credential==null){
      return null;
    }
    if(credential instanceof Parameter){
      Parameter parameter = (Parameter)credential;
      parameter.setParameters(request.getParameterMap());
    }
    return super.postResolveCredential(request, credential);
  }
View Full Code Here

Examples of com.google.common.reflect.Parameter

      Collection<Parameter> endpointParams = parametersWithAnnotation(invocation.getInvokable(), EndpointParam.class);
      if (endpointParams.isEmpty())
         return null;
      checkState(endpointParams.size() == 1, "invocation.getInvoked() %s has too many EndpointParam annotations",
            invocation.getInvokable());
      Parameter endpointParam = get(endpointParams, 0);
      Function<Object, URI> parser = injector.getInstance(endpointParam.getAnnotation(EndpointParam.class).parser());
      int position = endpointParam.hashCode();// guava issue 1243
      try {
         URI returnVal = parser.apply(invocation.getArgs().get(position));
         checkArgument(returnVal != null,
               format("endpoint for [%s] not configured for %s", position, invocation.getInvokable()));
         return returnVal;
View Full Code Here

Examples of com.google.gxp.compiler.base.Parameter

        Set<String> allowedAttributes) {

      Set<String> foundAttributes = Sets.newHashSet();

      for (String attrBundle : attributeBundles) {
        Parameter parameter = template.getParameterByPrimary(attrBundle);
        if (parameter == null || !(parameter.getType() instanceof BundleType)) {
          alertSink.add(new InvalidAttrBundleError(node, attrBundle));
          continue;
        }

        for (Map.Entry<String, AttributeValidator> attr :
                 ((BundleType) parameter.getType()).getAttrMap().entrySet()) {

          AttributeValidator validator = validatorMap.get(attr.getKey());
          if (validator == null) {
            // no validator match, so we either already have seen this
            // attribute or this attribute isn't allowed at all
            if (allowedAttributes.contains(attr.getKey())) {
              alertSink.add(new DuplicateAttributeError(node, attrBundle,
                                                        attr.getKey()));
            } else {
              alertSink.add(new UnknownAttributeError(node, attr.getKey()));
            }
          } else if (!validator.equals(attr.getValue())) {
            alertSink.add(new MismatchedAttributeValidatorsError(
                              node, attr.getKey(), parameter.getPrimaryName()));
          } else {
            foundAttributes.add(attr.getKey());
          }
        }
      }
View Full Code Here

Examples of com.google.wave.api.OperationRequest.Parameter

    OperationRequest notifyOp = new OperationRequest(OperationType.ROBOT_NOTIFY.method(), "op1");
    protocolVersion = OperationUtil.getProtocolVersion(Collections.singletonList(notifyOp));
    assertEquals("Notify op as first op without version parameter should return default",
        ProtocolVersion.DEFAULT, protocolVersion);

    Parameter versionParameter =
        Parameter.of(ParamsProperty.PROTOCOL_VERSION, ProtocolVersion.V2_1.getVersionString());
    notifyOp = new OperationRequest(OperationType.ROBOT_NOTIFY.method(), "op1", versionParameter);
    protocolVersion = OperationUtil.getProtocolVersion(Collections.singletonList(notifyOp));
    assertEquals(
        "Notify op as first op should return its version", ProtocolVersion.V2_1, protocolVersion);
View Full Code Here

Examples of com.greentea.relaxation.jnmf.parameters.Parameter

      casCor.setLearningData(getLearningData());
      casCor.setTestData(getTestData());

      casCor.setLearningOutputsAlgorithm(LearningOutputsAlgorithm.QUICK_PROPAGATION);
      Parameter param =
              ParametersUtils.find(casCor, CasCorAlgorithm.LEARNING_OUTPUTS_ALGORITHM_PARAMETER);
      param.setFreeze(true);

      casCor.setLogEnabled(false);

      return casCor;
   }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.parameters.annotations.Parameter

               parameters.addAll(resolveDynamicParameters(subject, field));

               continue;
            }

            Parameter annotation = field.getAnnotation(Parameter.class);

            Class clazz = field.getType();

            if (annotation == null)
            {
               NotParameter notParameter = field.getAnnotation(NotParameter.class);

               if (notParameter == null && clazz.getAnnotation(Configurable.class) != null)
               {
                  Method getter = resolveGetter(subject.getClass(), field);
                  parameters.addAll(resolveParameters(getter.invoke(subject)));
               }

               continue;
            }

            String name = annotation.name();
            Object minValue = castValueToClass(annotation.min(), clazz);
            Object maxValue = castValueToClass(annotation.max(), clazz);

            Method getter = resolveGetter(subject.getClass(), field);
            Method setter = resolveSetter(subject.getClass(), field);

            String description = StringUtils.defaultString(annotation.description());

            com.greentea.relaxation.jnmf.parameters.Parameter parameter = null;

            if (clazz.equals(File.class))
            {
View Full Code Here

Examples of com.gwtent.reflection.client.Parameter

  /* (non-Javadoc)
   * @see com.gwtent.client.reflection.AbstractMethod#findParameter(java.lang.String)
   */
  public Parameter findParameter(String name) {
    Iterator iterator = params.iterator();
    Parameter param = null;
    while (iterator.hasNext()) {
      param = (Parameter) iterator.next();
      if (param.getName().equals(name)) {
        return param;
      }
    }
    return null;
  }
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.