Revision e7f9ff43
Added by Marc Geoffroy about 16 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/SynonymRelationshipType.java | ||
---|---|---|
81 | 81 |
* relationship type to be created is transitive |
82 | 82 |
* @see #SynonymRelationshipType() |
83 | 83 |
*/ |
84 |
//TODO synonym relationship types can be neither symmetric nor transitive!! |
|
84 | 85 |
public SynonymRelationshipType(String term, String label, String labelAbbrev, boolean symmetric, boolean transitive) { |
85 | 86 |
super(term, label, labelAbbrev, symmetric, transitive); |
86 | 87 |
} |
87 | 88 |
|
89 |
//********* METHODS **************************************/ |
|
88 | 90 |
|
91 |
/** |
|
92 |
* Returns the synonym relationship type identified through its immutable |
|
93 |
* universally unique identifier (UUID). |
|
94 |
* |
|
95 |
* @param uuid the universally unique identifier |
|
96 |
* @return the synonym relationship type corresponding to the given |
|
97 |
* universally unique identifier |
|
98 |
*/ |
|
89 | 99 |
public static final SynonymRelationshipType getByUuid(UUID uuid){ |
90 | 100 |
return (SynonymRelationshipType) findByUuid(uuid); |
91 | 101 |
} |
92 | 102 |
|
103 |
/** |
|
104 |
* Returns the synonym relationship type "is synonym of". This |
|
105 |
* indicates that no further information about the synonymy is known. |
|
106 |
*/ |
|
93 | 107 |
public static final SynonymRelationshipType SYNONYM_OF(){ |
94 | 108 |
return getByUuid(uuidSynonymOf); |
95 | 109 |
} |
96 | 110 |
|
111 |
/** |
|
112 |
* Returns the synonym relationship type "is pro parte synonym of". This |
|
113 |
* indicates that the {@link name.TaxonNameBase taxon name} used as a |
|
114 |
* {@link Synonym synonym} designated originally a real taxon which later has |
|
115 |
* been split. |
|
116 |
*/ |
|
97 | 117 |
public static final SynonymRelationshipType PRO_PARTE_SYNONYM_OF(){ |
98 | 118 |
return getByUuid(uuidProParteSynonymOf); |
99 | 119 |
} |
100 | 120 |
|
121 |
/** |
|
122 |
* Returns the synonym relationship type "is partial synonym of". This |
|
123 |
* indicates that the {@link name.TaxonNameBase taxon name} used as a |
|
124 |
* {@link Synonym synonym} designated originally a real taxon which later has |
|
125 |
* been lumped together with another one. |
|
126 |
*/ |
|
101 | 127 |
public static final SynonymRelationshipType PARTIAL_SYNONYM_OF(){ |
102 | 128 |
return getByUuid(uuidPartialSynonymOf); |
103 | 129 |
} |
Also available in: Unified diff