Examples of key()


Examples of org.sonar.wsclient.issue.ActionPlan.key()

    List<ActionPlan> actionPlans = client.find("com.sonarsource.it.samples:simple-sample");

    assertThat(httpServer.requestedPath()).isEqualTo("/api/action_plans/search?project=com.sonarsource.it.samples:simple-sample");
    assertThat(actionPlans).hasSize(1);
    ActionPlan actionPlan = actionPlans.get(0);
    assertThat(actionPlan.key()).isEqualTo("382f6f2e-ad9d-424a-b973-9b065e04348a");
    assertThat(actionPlan.name()).isEqualTo("Long term");
    assertThat(actionPlan.description()).isEqualTo("Long term acton plan");
    assertThat(actionPlan.project()).isEqualTo("com.sonarsource.it.samples:simple-sample");
    assertThat(actionPlan.status()).isEqualTo("CLOSED");
    assertThat(actionPlan.userLogin()).isEqualTo("admin");
View Full Code Here

Examples of org.springframework.roo.shell.CliOption.key()

                                if (a instanceof CliOption) {
                                    final CliOption option = (CliOption) a;
                                    // Figure out which key we want to use (use
                                    // first non-empty string, or make it
                                    // "(default)" if needed)
                                    String key = option.key()[0];
                                    if ("".equals(key)) {
                                        for (final String otherKey : option
                                                .key()) {
                                            if (!"".equals(otherKey)) {
                                                key = otherKey;
View Full Code Here

Examples of org.springframework.shell.core.annotation.CliOption.key()

        Class<?>[] parameterTypes = methodTarget.getMethod().getParameterTypes();
        for (int i = 0; i < parameterTypes.length; i++) {
          CliOption option = cliOptions.get(i);
          Class<?> parameterType = parameterTypes[i];

          for (String key : option.key()) {
            if (key.equals(lastOptionKey)) {
              List<Completion> allValues = new ArrayList<Completion>();
              // We'll append the closing delimiter to proposals
              String suffix = "" + tokenizer.getLastValueDelimiter();
              if (!suffix.endsWith(" ")) {
View Full Code Here

Examples of org.strecks.dispatch.annotation.DispatchMethod.key()

    for (Method method : methods)
    {
      DispatchMethod annotation = method.getAnnotation(DispatchMethod.class);
      if (annotation != null)
      {
        String key = annotation.key();
        String methodName = method.getName();
        keyMethodMap.put(key, methodName);
        found = true;
      }
    }
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateBlankOrNull.key()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateBlankOrNull annotation = (ValidateBlankOrNull) annot;
    BlankOrNullValidator validator = new BlankOrNullValidator();
    return create(validator, annotation.key(), annotation.order(), null, method);
  }

}
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateBoolean.key()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateBoolean annotation = (ValidateBoolean) annot;
    BooleanValidator validator = new BooleanValidator();
    return create(validator, annotation.key(), annotation.order(), null, method);
  }

}
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateByte.key()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateByte annotation = (ValidateByte) annot;
    ByteValidator validator = new ByteValidator();
    return create(validator, annotation.key(), annotation.order(), null, method);
  }

}
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateCreditCard.key()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateCreditCard annotation = (ValidateCreditCard) annot;
    CreditCardValidator validator = new CreditCardValidator();
    return create(validator, annotation.key(), annotation.order(), null, method);
  }

}
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateDate.key()

{

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateDate annotation = (ValidateDate) annot;
    final String key = annotation.key();
    final int order = annotation.order();
    final Class clazz = annotation.implementationClass();

    DateValidator validator = createDateValidator(clazz);
View Full Code Here

Examples of org.strecks.validator.annotation.ValidateDouble.key()

  public ValidatorWrapper create(Annotation annot, Method method)
  {
    ValidateDouble annotation = (ValidateDouble) annot;
    DoubleValidator validator = new DoubleValidator();
    return create(validator, annotation.key(), annotation.order(), null, method);
  }

}
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.