@Test public void testExtractClassificiationFromName() { ScientificName name = new ScientificName(); name.setGenusOrMonomial("Larus"); name.setSpecificEpithet("argentatus"); name.setInfraspecificEpithet("argentatus"); name.setSubgenus("testSubGenus"); DefaultClassification actual = TransformUtil.extractClassificiationFromName(name); assertNotNull("01",actual); assertEquals("02","testSubGenus", actual.getSubgenus()); assertEquals("03","argentatus", actual.getSpecificEpithet()); assertEquals("04","Larus", actual.getGenus()); assertEquals("05","argentatus", actual.getInfraspecificEpithet()); }
public static DefaultClassification extractClassificiationFromName(ScientificName sn) { DefaultClassification dc = new DefaultClassification(); dc.setGenus(sn.getGenusOrMonomial()); dc.setSubgenus(sn.getSubgenus()); dc.setSpecificEpithet(sn.getSpecificEpithet()); dc.setInfraspecificEpithet(sn.getInfraspecificEpithet()); return dc; }
TransformUtil { public static DefaultClassification extractClassificiationFromName(ScientificName sn) { DefaultClassification dc = new DefaultClassification(); dc.setGenus(sn.getGenusOrMonomial()); dc.setSubgenus(sn.getSubgenus()); dc.setSpecificEpithet(sn.getSpecificEpithet()); dc.setInfraspecificEpithet(sn.getInfraspecificEpithet()); return dc; } }
TransformUtil { public static DefaultClassification extractClassificiationFromName(ScientificName sn) { DefaultClassification dc = new DefaultClassification(); dc.setGenus(sn.getGenusOrMonomial()); dc.setSubgenus(sn.getSubgenus()); dc.setSpecificEpithet(sn.getSpecificEpithet()); dc.setInfraspecificEpithet(sn.getInfraspecificEpithet()); return dc; }  }
TransformUtil { public static DefaultClassification extractClassificiationFromName(ScientificName sn) { DefaultClassification dc = new DefaultClassification(); dc.setGenus(sn.getGenusOrMonomial()); dc.setSubgenus(sn.getSubgenus()); dc.setSpecificEpithet(sn.getSpecificEpithet()); dc.setInfraspecificEpithet(sn.getInfraspecificEpithet()); return dc; }  static void setScientificNameGroup(ScientificName sn); static DefaultClassification extractClassificiationFromName(ScientificName sn); static List<Monomial> getMonomialsInName(ScientificName sn); static ScientificName extractNameFromClassification(DefaultClassification dc); static void equalizeNameComponents(Taxon taxon); static void equalizeNameComponents(Specimen specimen); static void equalizeNameComponents(MultiMediaObject mmo); static void sortIdentificationsPreferredFirst(Specimen specimen); static List<Monomial> getSystemClassification(Element elem, ScientificName sn); static String guessMimeType(String imageUrl); }
TransformUtil { public static DefaultClassification extractClassificiationFromName(ScientificName sn) { DefaultClassification dc = new DefaultClassification(); dc.setGenus(sn.getGenusOrMonomial()); dc.setSubgenus(sn.getSubgenus()); dc.setSpecificEpithet(sn.getSpecificEpithet()); dc.setInfraspecificEpithet(sn.getInfraspecificEpithet()); return dc; }  static void setScientificNameGroup(ScientificName sn); static DefaultClassification extractClassificiationFromName(ScientificName sn); static List<Monomial> getMonomialsInName(ScientificName sn); static ScientificName extractNameFromClassification(DefaultClassification dc); static void equalizeNameComponents(Taxon taxon); static void equalizeNameComponents(Specimen specimen); static void equalizeNameComponents(MultiMediaObject mmo); static void sortIdentificationsPreferredFirst(Specimen specimen); static List<Monomial> getSystemClassification(Element elem, ScientificName sn); static String guessMimeType(String imageUrl);  }