TaxonName name = taxon.getName();
handleName(state, name, taxon, true);
- //homotypic group / synonyms
- HomotypicalGroup homotypicGroup = taxon.getHomotypicGroup();
- int index = 0;
- int homotypicGroupIndex = 0;
- handleHomotypicalGroup(state, homotypicGroup, taxon, homotypicGroupIndex);
- homotypicGroupIndex++;
- for (Synonym syn : taxon.getSynonymsInGroup(homotypicGroup)) {
- handleSynonym(state, syn, index);
- index++;
- }
- List<HomotypicalGroup> heterotypicHomotypicGroups = taxon.getHeterotypicSynonymyGroups();
- for (HomotypicalGroup group: heterotypicHomotypicGroups){
- handleHomotypicalGroup(state, group, taxon, homotypicGroupIndex);
- for (Synonym syn : taxon.getSynonymsInGroup(group)) {
+ if (state.getConfig().isDoSynonyms()) {
+
+ //homotypic group / synonyms
+ HomotypicalGroup homotypicGroup = taxon.getHomotypicGroup();
+ int index = 0;
+ int homotypicGroupIndex = 0;
+ handleHomotypicalGroup(state, homotypicGroup, taxon, homotypicGroupIndex);
+ homotypicGroupIndex++;
+ for (Synonym syn : taxon.getSynonymsInGroup(homotypicGroup)) {
handleSynonym(state, syn, index);
index++;
}
- homotypicGroupIndex++;
- }
+ List<HomotypicalGroup> heterotypicHomotypicGroups = taxon.getHeterotypicSynonymyGroups();
+ for (HomotypicalGroup group: heterotypicHomotypicGroups){
+ handleHomotypicalGroup(state, group, taxon, homotypicGroupIndex);
+ for (Synonym syn : taxon.getSynonymsInGroup(group)) {
+ handleSynonym(state, syn, index);
+ index++;
+ }
+ homotypicGroupIndex++;
+ }
- //pro parte synonyms
- index = 0;
- for (Taxon tax : taxon.getAllProParteSynonyms()) {
- handleProPartePartialMisapplied(state, tax, taxon, true, false, index);
- index++;
- }
+ //pro parte synonyms
+ index = 0;
+ for (Taxon tax : taxon.getAllProParteSynonyms()) {
+ handleProPartePartialMisapplied(state, tax, taxon, true, false, index);
+ index++;
+ }
- //misapplications
- for (Taxon tax : taxon.getAllMisappliedNames()) {
- handleProPartePartialMisapplied(state, tax, taxon, false, true, index);
- index++;
+ //misapplications
+ for (Taxon tax : taxon.getAllMisappliedNames()) {
+ handleProPartePartialMisapplied(state, tax, taxon, false, true, index);
+ index++;
+ }
}
//taxon table
TaxonName name = taxon.getName();
handleName(state, name, taxon, true);
- //homotypic group / synonyms
- HomotypicalGroup homotypicGroup = taxon.getHomotypicGroup();
- int index = 0;
- handleHomotypicalGroup(state, homotypicGroup, taxon);
- for (Synonym syn : taxon.getSynonymsInGroup(homotypicGroup)) {
- handleSynonym(state, syn, index);
- index++;
- }
-
- List<HomotypicalGroup> heterotypicHomotypicGroups = taxon.getHeterotypicSynonymyGroups();
- for (HomotypicalGroup group: heterotypicHomotypicGroups){
- handleHomotypicalGroup(state, group, taxon);
- for (Synonym syn : taxon.getSynonymsInGroup(group)) {
+ if (state.getConfig().isDoSynonyms()) {
+ //homotypic group / synonyms
+ HomotypicalGroup homotypicGroup = taxon.getHomotypicGroup();
+ int index = 0;
+ handleHomotypicalGroup(state, homotypicGroup, taxon);
+ for (Synonym syn : taxon.getSynonymsInGroup(homotypicGroup)) {
handleSynonym(state, syn, index);
index++;
}
+
+ List<HomotypicalGroup> heterotypicHomotypicGroups = taxon.getHeterotypicSynonymyGroups();
+ for (HomotypicalGroup group: heterotypicHomotypicGroups){
+ handleHomotypicalGroup(state, group, taxon);
+ for (Synonym syn : taxon.getSynonymsInGroup(group)) {
+ handleSynonym(state, syn, index);
+ index++;
+ }
+ }
}
//TODO 2 pro parte synonyms and misapplications