Examples of withName()


Examples of org.apache.commons.cli2.builder.GroupBuilder.withName()

   
    Option cutoffOpt = obuilder.withLongName("cutoff").withRequired(false).withArgument(
        abuilder.withName("cutoff").withMinimum(1).withMaximum(1).create()).withDescription(
        "Drop tags with a count less than this number").withShortName("c").create();
   
    Group group = gbuilder.withName("Options").withOption(inputFileOpt)
      .withOption(outputFileOpt).withOption(limitOpt)
      .withOption(cutoffOpt).create();

   
    try {
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withName()

   
    Option helpOpt = obuilder.withLongName("help")
      .withDescription("Print out help")
      .withShortName("h").create();
   
    Group group = gbuilder.withName("Options")
      .withOption(inputOpt)
      .withOption(categoryOpt)
      .withOption(outputOpt)
      .withOption(categoryFieldsOpt)
      .withOption(textFieldsOpt)
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withName()

   
    Option helpOpt = obuilder.withLongName("help")
    .withDescription("Print out help")
    .withShortName("h").create();
   
    Group group = gbuilder.withName("Options")
    .withOption(inputOpt)
    .withOption(modelOpt)
    .withOption(helpOpt)
    .create();
   
View Full Code Here

Examples of org.apache.commons.cli2.builder.GroupBuilder.withName()

    Option solrBatchOpt = obuilder.withLongName("batch").withRequired(false).withArgument(
            abuilder.withName("batch").withMinimum(1).withMaximum(1).create()).
            withDescription("The number of docs to include in each indexing batch").withShortName("b").create();

    Group group = gbuilder.withName("Options").withOption(wikipediaFileOpt).withOption(numDocsOpt).withOption(solrURLOpt).withOption(solrBatchOpt).create();

    Parser parser = new Parser();
    parser.setGroup(group);
    CommandLine cmdLine = parser.parse(args);
View Full Code Here

Examples of org.broadleafcommerce.openadmin.web.form.entity.ComboField.withName()

        Field keyField;
        if (!mapMd.getForceFreeFormKeys()) {
            // We will use a combo field to render the key choices
            ComboField temp = new ComboField();
            temp.withName("key")
                    .withFieldType("combo_field")
                    .withFriendlyName("Key");
            if (mapMd.getKeys() != null) {
                // The keys can be explicitly set in the annotation...
                temp.setOptions(mapMd.getKeys());
View Full Code Here

Examples of org.broadleafcommerce.openadmin.web.form.entity.Field.withName()

            ((ComboField) hf).setOptions(fmd.getEnumerationValues());
        } else {
            hf = new Field();
        }
       
        hf.withName(p.getName())
          .withFriendlyName(fmd.getFriendlyName())
          .withOrder(fmd.getGridOrder())
          .withColumnWidth(fmd.getColumnWidth())
          .withForeignKeyDisplayValueProperty(fmd.getForeignKeyDisplayValueProperty())
          .withForeignKeyClass(fmd.getForeignKeyClass())
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.Repository.withName()

  @Test
  public void refreshProxy() {
    final Repository repository = repositories().get("central");
    final String name = repository.name();
    repository.withName("foo");
    repository.refresh();
    assertThat(repository.name(), is(name));
  }

  @Test
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenHostedRepository.withName()

    final MavenHostedRepository repository = repositories()
        .create(MavenHostedRepository.class, repositoryIdForTest())
        .save();

    final String name = repository.name();
    repository.withName("foo");
    repository.refresh();
    assertThat(repository.name(), is(name));
  }

  @Test
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.targets.RepositoryTarget.withName()

  @Test
  public void updateTarget() {
    RepositoryTarget target = createTarget("updateTarget", "pattern1", "pattern2");

    target.withName("updatedTarget").addPattern("pattern3").save();
    target = targets().get("updateTarget");
    assertThat(target.patterns(), hasItem("pattern3"));
    assertThat(target.name(), is("updatedTarget"));
  }
View Full Code Here

Examples of org.xbill.DNS.Record.withName()

    if ((flags & FLAG_SIGONLY) == 0) {
      Iterator<?> it = rrset.rrs();
      while (it.hasNext()) {
        Record r = (Record) it.next();
        if (r.getName().isWild() && !name.isWild()) {
          r = r.withName(name);
        }
        response.addRecord(r, section);
      }
    }
    if ((flags & (FLAG_SIGONLY | FLAG_DNSSECOK)) != 0) {
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.