Project

General

Profile

« Previous | Next » 

Revision 5fb16579

Added by Andreas Müller over 4 years ago

fix #7450 allow setPublish for subtree to include misapplied names and pro parte synonyms

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationshipType.java
634 634
        newInstance.setInverseSymbol(inverseLabelAbbrev);
635 635
        return newInstance;
636 636
    }
637

  
638
    /**
639
     * @return a set containing all UUIDs of relationship types representing
640
     * a pro parte or partial synonym relationship (e.g.
641
     * {@link #PRO_PARTE_SYNONYM_FOR()} or {@link #PARTIAL_SYNONYM_FOR()}
642
     */
643
    public static Set<UUID> proParteOrPartialSynonymUuids() {
644
        Set<UUID> result = new HashSet<>();
645
        result.add(uuidProParteSynonymFor);
646
        result.add(uuidPartialSynonymFor);
647
        return result;
648
    }
649

  
650
    /**
651
     * @return a set containing all UUIDs of relationship types representing
652
     * a misapplied name relationship (e.g. {@link #MISAPPLIED_NAME_FOR()},
653
     * {@link #PRO_PARTE_MISAPPLIED_NAME_FOR()} and {@link #PARTIAL_MISAPPLIED_NAME_FOR()}
654
     */
655
    public static Set<UUID> misappliedNameUuids() {
656
        Set<UUID> result = new HashSet<>();
657
        result.add(uuidMisappliedNameFor);
658
        result.add(uuidProParteMisappliedNameFor);
659
        result.add(uuidPartialMisappliedNameFor);
660
        return result;
661
    }
662

  
637 663
}

Also available in: Unified diff