@Test public void testRankMarkers() { for (Rank r : Rank.values()) { if (r.notOtherOrUnranked() && r != Rank.CULTIVAR_GROUP) { assertEquals(r, RankUtils.inferRank(r.getMarker())); assertEquals(r, RankUtils.inferRank("notho"+r.getMarker())); } } }
public static Rank inferRank(String rankMarker) { if (rankMarker != null) { return RANK_MARKER_MAP.get(NORMALIZE_RANK_MARKER.matcher(rankMarker.toLowerCase()).replaceAll("")); } return null; }
RankUtils { public static Rank inferRank(String rankMarker) { if (rankMarker != null) { return RANK_MARKER_MAP.get(NORMALIZE_RANK_MARKER.matcher(rankMarker.toLowerCase()).replaceAll("")); } return null; } }
RankUtils { public static Rank inferRank(String rankMarker) { if (rankMarker != null) { return RANK_MARKER_MAP.get(NORMALIZE_RANK_MARKER.matcher(rankMarker.toLowerCase()).replaceAll("")); } return null; }  }
RankUtils { public static Rank inferRank(String rankMarker) { if (rankMarker != null) { return RANK_MARKER_MAP.get(NORMALIZE_RANK_MARKER.matcher(rankMarker.toLowerCase()).replaceAll("")); } return null; }  static Rank inferRank(String rankMarker); static Rank inferRank(LinneanName pn); }
RankUtils { public static Rank inferRank(String rankMarker) { if (rankMarker != null) { return RANK_MARKER_MAP.get(NORMALIZE_RANK_MARKER.matcher(rankMarker.toLowerCase()).replaceAll("")); } return null; }  static Rank inferRank(String rankMarker); static Rank inferRank(LinneanName pn); static final List<Rank> INFRASUBSPECIFIC_MICROBIAL_RANKS; static final Map<String, Rank> RANK_MARKER_MAP_FAMILY_GROUP; static final Map<String, Rank> RANK_MARKER_MAP_SUPRAGENERIC; static final Map<String, Rank> RANK_MARKER_MAP_INFRAGENERIC; static final Map<String, Rank> RANK_MARKER_MAP_SPECIFIC; static final Map<String, Rank> RANK_MARKER_MAP_INFRASPECIFIC; static final Map<String, Rank> RANK_MARKER_MAP; static final Map<NomCode, Map<String, Rank>> SUFFICES_RANK_MAP; }