Examples of withParameter()


Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withParameter()

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsers(java.lang.String)
   */
  @Override
  public PagedList<User> getUsers(String filter) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USERS);
        String                apiUrl  = builder.withParameter("filter", filter).buildUrl();

        return unmarshallList(User.class, callApiMethod(apiUrl));
  }

  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.code.stackexchange.client.provider.url.ApiUrlBuilder.withParameter()

   * @see com.google.code.stackexchange.client.StackOverflowApiClient#getUsers(java.lang.String, com.google.code.stackexchange.schema.User.SortOrder, com.google.code.stackexchange.schema.Paging)
   */
  @Override
  public PagedList<User> getUsers(String filter, User.SortOrder sort, Paging paging) {
    ApiUrlBuilder builder = createStackOverflowApiUrlBuilder(StackExchangeApiMethods.GET_USERS);
        String                apiUrl  = builder.withParameter("filter", filter).withSort(sort).withPaging(paging).buildUrl();

        return unmarshallList(User.class, callApiMethod(apiUrl));
  }
 
  /* (non-Javadoc)
 
View Full Code Here

Examples of com.google.common.net.MediaType.withParameter()

  }

  public void testWithParameter_invalidAttribute() {
    MediaType mediaType = MediaType.parse("text/plain");
    try {
      mediaType.withParameter("@", "2");
      fail();
    } catch (IllegalArgumentException expected) {}
  }

  public void testWithCharset() {
View Full Code Here

Examples of de.iritgo.aktera.ui.form.CommandDescriptor.withParameter()

      Configuration[] parameterChildren = commandConfig.getChildren("parameter");

      for (Configuration parameterConfig : parameterChildren)
      {
        command.withParameter(parameterConfig.getAttribute("name"), parameterConfig.getAttribute("value"));
      }

      parameterChildren = commandConfig.getChildren("param");

      for (Configuration parameterConfig : parameterChildren)
View Full Code Here

Examples of de.iritgo.aktera.ui.form.CommandDescriptor.withParameter()

      parameterChildren = commandConfig.getChildren("param");

      for (Configuration parameterConfig : parameterChildren)
      {
        command.withParameter(parameterConfig.getAttribute("name"), parameterConfig.getAttribute("value"));
      }

      Configuration[] attributeChildren = commandConfig.getChildren("attribute");

      for (Configuration attributeConfig : attributeChildren)
View Full Code Here

Examples of de.iritgo.aktera.ui.form.CommandDescriptor.withParameter()

      Configuration[] attributeChildren = commandConfig.getChildren("attribute");

      for (Configuration attributeConfig : attributeChildren)
      {
        command.withParameter(attributeConfig.getAttribute("name"), attributeConfig.getAttribute("value"));
      }
    }
  }

  /**
 
View Full Code Here

Examples of de.plushnikov.intellij.lombok.psi.LombokLightMethodBuilder.withParameter()

    int parameterIndex = 0;
    for (PsiParameter psiParameter : parameterList.getParameters()) {
      final PsiType psiParameterType = null == psiSubstitutor ? psiParameter.getType() : psiSubstitutor.substitute(psiParameter.getType());
      String psiParameterName = psiParameter.getName();
      methodBuilder.withParameter(StringUtils.defaultIfEmpty(psiParameterName, "p" + parameterIndex), psiParameterType);
      parameterIndex++;
    }

    return methodBuilder;
  }
View Full Code Here

Examples of de.plushnikov.intellij.lombok.psi.LombokLightMethodBuilder.withParameter()

      addModifier(methodToImplement, method, PsiModifier.PUBLIC);
      addModifier(methodToImplement, method, PsiModifier.PACKAGE_LOCAL);
      addModifier(methodToImplement, method, PsiModifier.PROTECTED);

      for (PsiParameter psiParameter : methodToImplement.getParameterList().getParameters()) {
        method.withParameter(psiParameter.getName(), substitutor.substitute(psiParameter.getType()));
      }

      for (PsiClassType psiClassType : methodToImplement.getThrowsList().getReferencedTypes()) {
        method.withException(psiClassType);
      }
View Full Code Here

Examples of de.plushnikov.intellij.lombok.psi.LombokLightMethodBuilder.withParameter()

    PsiParameterList parameterList = psiMethod.getParameterList();
    if (parameterList.getParametersCount() > 0) {
      for (PsiParameter psiParameter : parameterList.getParameters()) {
        final PsiType psiParameterType = null == psiSubstitutor ? psiParameter.getType() : psiSubstitutor.substitute(psiParameter.getType());
        method.withParameter(psiParameter.getName(), psiParameterType);
      }
    }

    return method;
//    final StringBuilder builder = StringBuilderSpinAllocator.alloc();
View Full Code Here

Examples of de.plushnikov.intellij.lombok.psi.LombokLightMethodBuilder.withParameter()

      addModifier(methodToImplement, method, PsiModifier.PUBLIC);
      addModifier(methodToImplement, method, PsiModifier.PACKAGE_LOCAL);
      addModifier(methodToImplement, method, PsiModifier.PROTECTED);

      for (PsiParameter psiParameter : methodToImplement.getParameterList().getParameters()) {
        method.withParameter(psiParameter.getName(), substitutor.substitute(psiParameter.getType()));
      }

      for (PsiClassType psiClassType : methodToImplement.getThrowsList().getReferencedTypes()) {
        method.withException(psiClassType);
      }
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.