|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.IdentifiableEntity<S>
eu.etaxonomy.cdm.model.taxon.TaxonBase<IIdentifiableEntityCacheStrategy<Synonym>>
eu.etaxonomy.cdm.model.taxon.Synonym
@Entity @Indexed(index="eu.etaxonomy.cdm.model.taxon.TaxonBase") @Configurable public class Synonym
The class for synonyms: these are taxa the taxon names
of which are not used by the reference to designate a real
taxon but are mentioned as taxon names that were oder are used by some other
unspecified references to designate (at least to some extent) the same
particular real taxon. Synonyms that are involved in no
synonym relationship are actually meaningless.
Splitting taxa in "accepted/correct" and "synonyms"
makes it easier to handle particular relationships between
("accepted/correct") taxa on the one hand and between ("synonym") taxa
and ("accepted/correct") taxa on the other.
| Field Summary |
|---|
| Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache |
| Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
annotations, markers |
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Constructor Summary | |
|---|---|
Synonym()
Class constructor: creates a new empty synonym instance. |
|
Synonym(TaxonNameBase taxonNameBase,
Reference sec)
Class constructor: creates a new synonym instance with the taxon name used and the reference
using it as a synonym and not as an ("accepted/correct") taxon. |
|
| Method Summary | |
|---|---|
void |
addRelationship(SynonymRelationship rel)
Adds an existing synonym relationship to the set of
synonym relationships assigned to this synonym. |
protected void |
addSynonymRelation(SynonymRelationship synonymRelation)
Adds an existing synonym relationship to the set of
synonym relationships assigned to this synonym. |
Object |
clone()
Clones this taxon. |
Set<Taxon> |
getAcceptedTaxa()
Returns the set of all ("accepted/correct") taxa involved in the same
synonym relationships as this synonym. |
Set<SynonymRelationshipType> |
getRelationType(Taxon taxon)
Returns the set of synonym relationship types of the
synonym relationships where the synonym
is this synonym and the taxon
is the given one. |
Set<SynonymRelationship> |
getSynonymRelations()
Returns the set of all synonym relationships
in which this synonym is involved. |
boolean |
isOrphaned()
|
boolean |
isSynonymOf(Taxon taxon)
Returns true if this is a synonym of the given taxon. |
static Synonym |
NewInstance(TaxonNameBase taxonName,
Reference sec)
Creates a new synonym instance with the taxon name used and the reference
using it as a synonym and not as an ("accepted/correct") taxon. |
void |
removeSynonymRelation(SynonymRelationship synonymRelation)
Removes one element from the set of synonym relationships assigned
to this synonym. |
void |
replaceAcceptedTaxon(Taxon newAcceptedTaxon,
SynonymRelationshipType relType,
boolean copyCitationInfo,
Reference citation,
String microCitation)
Replaces ALL accepted taxa of this synonym by the new accepted taxon. |
protected void |
setSynonymRelations(Set<SynonymRelationship> synonymRelations)
|
| Methods inherited from class eu.etaxonomy.cdm.model.taxon.TaxonBase |
|---|
getAppendedPhrase, getHomotypicGroup, getName, getSec, isDoubtful, isUseNameCache, setAppendedPhrase, setDoubtful, setName, setSec, setUseNameCache |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity |
|---|
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IRelated |
|---|
getUuid |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity |
|---|
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase |
|---|
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid |
| Constructor Detail |
|---|
public Synonym()
Synonym(TaxonNameBase, Reference)
public Synonym(TaxonNameBase taxonNameBase,
Reference sec)
taxon name used and the reference
using it as a synonym and not as an ("accepted/correct") taxon.
taxonNameBase - the taxon name usedsec - the reference using the taxon nameSynonym(TaxonNameBase, Reference)| Method Detail |
|---|
public static Synonym NewInstance(TaxonNameBase taxonName,
Reference sec)
taxon name used and the reference
using it as a synonym and not as an ("accepted/correct") taxon.
taxonNameBase - the taxon name usedsec - the reference using the taxon nameSynonym(TaxonNameBase, Reference)public Set<SynonymRelationship> getSynonymRelations()
synonym relationships
in which this synonym is involved. This synonym can only
be the source within these synonym relationships.
addSynonymRelation(SynonymRelationship),
addRelationship(SynonymRelationship),
removeSynonymRelation(SynonymRelationship)protected void setSynonymRelations(Set<SynonymRelationship> synonymRelations)
getSynonymRelations()protected void addSynonymRelation(SynonymRelationship synonymRelation)
synonym relationship to the set of
synonym relationships assigned to this synonym. If
the source of the synonym relationship does not match with this
synonym no addition will be carried out.addRelationship method.
synonymRelation - the synonym relationship to be added to this synonym's
synonym relationships setaddRelationship(SynonymRelationship),
getSynonymRelations(),
removeSynonymRelation(SynonymRelationship)public void removeSynonymRelation(SynonymRelationship synonymRelation)
synonym relationships assigned
to this synonym. Due to bidirectionality the given
synonym relationship will also be removed from the set of synonym
relationships assigned to the taxon involved in the
relationship. Furthermore the content of
the accepted taxon attribute and of the
synonym attribute within the synonym relationship
itself will be set to "null".
synonymRelation - the synonym relationship which should be deletedgetSynonymRelations(),
addRelationship(SynonymRelationship)public void addRelationship(SynonymRelationship rel)
synonym relationship to the set of
synonym relationships assigned to this synonym. If
the source of the synonym relationship does not match with this
synonym no addition will be carried out.addSynonymRelation method.
addRelationship in interface IRelated<SynonymRelationship>synonymRelation - the synonym relationship to be added to this synonym's
synonym relationships setaddSynonymRelation(SynonymRelationship),
getSynonymRelations(),
removeSynonymRelation(SynonymRelationship)public Set<Taxon> getAcceptedTaxa()
taxa involved in the same
synonym relationships as this synonym.
Each taxon is the target and this synonym is the source of a synonym relationship
belonging to the set of synonym relationships assigned to
this synonym. For a particular synonym there are more than one
("accepted/correct") taxon only if the "is pro parte" flag
of the corresponding synonym relationships is set.
getSynonymRelations(),
getRelationType(Taxon),
SynonymRelationship.isProParte()public boolean isSynonymOf(Taxon taxon)
taxon - the taxon to check synonym for
getAcceptedTaxa()public boolean isOrphaned()
isOrphaned in class TaxonBase<IIdentifiableEntityCacheStrategy<Synonym>>public Set<SynonymRelationshipType> getRelationType(Taxon taxon)
synonym relationship types of the
synonym relationships where the synonym
is this synonym and the taxon
is the given one. "Null" is returned if the given taxon is "null" or if
no synonym relationship exists from this synonym to the
given taxon.
taxon - the ("accepted/correct") taxon which a synonym relationship
from this synonym should point togetSynonymRelations(),
getAcceptedTaxa()
public void replaceAcceptedTaxon(Taxon newAcceptedTaxon,
SynonymRelationshipType relType,
boolean copyCitationInfo,
Reference citation,
String microCitation)
newAcceptedTaxon - the new accepted taxonrelType - if not null the relationship type is changed to relTypecopyCitationInfo - if true the citation and the microcitation of relationship
is not changed.citation - if copyCitationInfo is false this citation is set
to the synonym relationship.microCitation - if copyCitationInfo is false this micro citation is set
to the synonym relationship.acceptedTaxon - public Object clone()
TaxonBase
clone in class TaxonBase<IIdentifiableEntityCacheStrategy<Synonym>>eu.etaxonomy.cdm.model.media.IdentifiableEntity#clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||