@Entity @Indexed(index="eu.etaxonomy.cdm.model.taxon.TaxonRelationship") public class TaxonRelationship extends RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
("accepted/correct") taxa
.
This includes a taxon relationship type
(for instance "congruent to" or
"misapplied name for").
This class corresponds in part to:
RelationshipBase.Direction
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
TaxonRelationship(Taxon from,
Taxon to,
TaxonRelationshipType type,
Reference citation,
java.lang.String citationMicroReference)
Class constructor: creates a new taxon relationship instance (with the
given "accepted/valid"
taxa , the given taxon relationship type
and with the reference source on which the relationship
assertion is based). |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this TaxonRelationship.
|
Taxon |
getFromTaxon()
Returns the
taxon involved as a source in this
taxon relationship. |
protected Taxon |
getRelatedFrom() |
protected Taxon |
getRelatedTo() |
Taxon |
getToTaxon()
Returns the
taxon involved as a target in this
taxon relationship. |
TaxonRelationshipType |
getType() |
void |
setFromTaxon(Taxon fromTaxon)
Sets the given
taxon as a source in this taxon relationship. |
protected void |
setRelatedFrom(Taxon relatedFrom) |
protected void |
setRelatedTo(Taxon relatedTo) |
void |
setToTaxon(Taxon toTaxon)
Sets the given
taxon as a target in this taxon relationship. |
void |
setType(TaxonRelationshipType type) |
isDoubtful, setDoubtful
equalsByShallowCompare, getCitation, getCitationMicroReference, getOriginalNameString, setCitation, setCitationMicroReference, setOriginalNameString
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
protected TaxonRelationship(Taxon from, Taxon to, TaxonRelationshipType type, Reference citation, java.lang.String citationMicroReference)
taxa
, the given taxon relationship type
and with the reference source
on which the relationship
assertion is based). Moreover the new taxon relationship will be added to
the respective sets of taxon relationships assigned to both taxa.from
- the taxon instance to be involved as a source in the new taxon relationshipto
- the taxon instance to be involved as a target in the new taxon relationshiptype
- the taxon relationship type of the new taxon relationshipcitation
- the reference source for the new taxon relationshipcitationMicroReference
- the string with the details describing the exact localisation within the referenceRelationshipBase
public Taxon getFromTaxon()
taxon
involved as a source in this
taxon relationship.public void setFromTaxon(Taxon fromTaxon)
taxon
as a source in this taxon relationship.
Therefore this taxon relationship will be added to the corresponding
set of taxon relationships assigned to the given taxon. Furthermore if
the given taxon replaces an "old" one this taxon relationship will
be removed from the set of taxon relationships assigned to the "old"
source taxon.fromTaxon
- the taxon instance to be set as a source in this taxon relationshipgetFromTaxon()
public Taxon getToTaxon()
taxon
involved as a target in this
taxon relationship.public void setToTaxon(Taxon toTaxon)
taxon
as a target in this taxon relationship.
Therefore this taxon relationship will be added to the corresponding
set of taxon relationships assigned to the given taxon. Furthermore if
the given taxon replaces an "old" one this taxon relationship will
be removed from the set of taxon relationships assigned to the "old"
target taxon.toTaxon
- the taxon instance to be set as a target in this taxon relationshipgetToTaxon()
protected Taxon getRelatedFrom()
getRelatedFrom
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
protected Taxon getRelatedTo()
getRelatedTo
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
public TaxonRelationshipType getType()
getType
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
protected void setRelatedFrom(Taxon relatedFrom)
setRelatedFrom
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
protected void setRelatedTo(Taxon relatedTo)
setRelatedTo
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
public void setType(TaxonRelationshipType type)
setType
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
public java.lang.Object clone()
clone
in class RelationshipBase<Taxon,Taxon,TaxonRelationshipType>
RelationshipBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.