@Test public void convertRank() throws Exception { for (org.gbif.nameparser.api.Rank t : org.gbif.nameparser.api.Rank.values()) { assertNotNull(NameParserGbifV1.toGbif(t)); } }
@VisibleForTesting static org.gbif.api.vocabulary.NamePart toGbif(NamePart notho) { return convertEnum(org.gbif.api.vocabulary.NamePart.class, notho); }
NameParserGbifV1 implements NameParser { @VisibleForTesting static org.gbif.api.vocabulary.NamePart toGbif(NamePart notho) { return convertEnum(org.gbif.api.vocabulary.NamePart.class, notho); } }
NameParserGbifV1 implements NameParser { @VisibleForTesting static org.gbif.api.vocabulary.NamePart toGbif(NamePart notho) { return convertEnum(org.gbif.api.vocabulary.NamePart.class, notho); } NameParserGbifV1();  NameParserGbifV1(long timeout);  NameParserGbifV1(org.gbif.nameparser.api.NameParser parser); }
NameParserGbifV1 implements NameParser { @VisibleForTesting static org.gbif.api.vocabulary.NamePart toGbif(NamePart notho) { return convertEnum(org.gbif.api.vocabulary.NamePart.class, notho); } NameParserGbifV1();  NameParserGbifV1(long timeout);  NameParserGbifV1(org.gbif.nameparser.api.NameParser parser); @Override ParsedName parse(String s, @Nullable Rank rank); @Override ParsedName parse(String scientificName); @Override ParsedName parseQuietly(String scientificName, @Nullable Rank rank); @Override ParsedName parseQuietly(String scientificName); @Override // parses the name without authorship and returns the ParsedName.canonicalName() string String parseToCanonical(String scientificName, @Nullable Rank rank); @Override String parseToCanonical(String scientificName); String parseToCanonicalOrScientificName(String scientificName); String parseToCanonicalOrScientificName(String scientificName, @Nullable Rank rank); }
NameParserGbifV1 implements NameParser { @VisibleForTesting static org.gbif.api.vocabulary.NamePart toGbif(NamePart notho) { return convertEnum(org.gbif.api.vocabulary.NamePart.class, notho); } NameParserGbifV1();  NameParserGbifV1(long timeout);  NameParserGbifV1(org.gbif.nameparser.api.NameParser parser); @Override ParsedName parse(String s, @Nullable Rank rank); @Override ParsedName parse(String scientificName); @Override ParsedName parseQuietly(String scientificName, @Nullable Rank rank); @Override ParsedName parseQuietly(String scientificName); @Override // parses the name without authorship and returns the ParsedName.canonicalName() string String parseToCanonical(String scientificName, @Nullable Rank rank); @Override String parseToCanonical(String scientificName); String parseToCanonicalOrScientificName(String scientificName); String parseToCanonicalOrScientificName(String scientificName, @Nullable Rank rank);  }