@Entity public class HybridRelationship extends RelationshipBase<INonViralName,INonViralName,HybridRelationshipType> implements java.lang.Comparable<HybridRelationship>, IRuleConsidered
parents
of a hybrid taxon name and the hybrid taxon name itself. A hybrid taxon name
is a botanical taxon name
assigned to a hybrid plant following
the ICBN
(Appendix I). A hybrid taxon name must have one
of the hybrid flags set. The hybrid relationship includes a hybrid relationship type
(for instance "first parent" or "female parent") and the article of the ICBN
on which the hybrid taxon name relies.
This class corresponds partially to:
RelationshipBase.Direction
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
HybridRelationship(INonViralName hybridName,
INonViralName parentName,
HybridRelationshipType type,
Reference citation,
java.lang.String citationMicroReference,
java.lang.String ruleConsidered,
NomenclaturalCodeEdition codeEdition)
Class constructor: creates a new hybrid relationship instance including
its
reference source and adds it to the respective
botanical taxon name relation sets of both involved names. |
protected |
HybridRelationship(INonViralName hybridName,
INonViralName parentName,
HybridRelationshipType type,
java.lang.String ruleConsidered)
Class constructor: creates a new hybrid relationship instance with no
reference and adds it to the respective
botanical taxon name relation sets of both involved names. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this hybrid relationship.
|
int |
compareTo(HybridRelationship rel2) |
NomenclaturalCodeEdition |
getCodeEdition()
The
code edition for the rule considered . |
TaxonName |
getHybridName()
Returns the
botanical taxon name that plays the child role
(the child is actually the hybrid taxon name) in this hybrid relationship. |
TaxonName |
getParentName()
Returns the
botanical taxon name that plays the parent role
in this hybrid relationship. |
protected TaxonName |
getRelatedFrom() |
protected TaxonName |
getRelatedTo() |
java.lang.String |
getRuleConsidered()
Returns the ICBN rule considered (that is the
article/note/recommendation in the nomenclatural code) for building
the string representing the (child) hybrid
taxon name
within this hybrid relationship. |
HybridRelationshipType |
getType() |
void |
setCodeEdition(NomenclaturalCodeEdition codeEdition) |
void |
setHybridName(INonViralName hybridName) |
void |
setParentName(INonViralName parentName) |
protected void |
setRelatedFrom(INonViralName relatedFrom) |
protected void |
setRelatedTo(INonViralName relatedTo) |
void |
setRuleConsidered(java.lang.String ruleConsidered) |
void |
setType(HybridRelationshipType 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 HybridRelationship(INonViralName hybridName, INonViralName parentName, HybridRelationshipType type, java.lang.String ruleConsidered)
botanical taxon name relation sets
of both involved names.toName
- the taxon name to be set as target for the new hybrid relationshipfromName
- the taxon name to be set as source for the new hybrid relationshiptype
- the relationship type to be assigned to the new hybrid relationshipruleConsidered
- the string indicating the article of the ICBN for the hybrid taxon name#HybridRelationship(BotanicalName, BotanicalName, HybridRelationshipType, Reference, String, String)
,
TaxonName.addHybridRelationship(HybridRelationship)
protected HybridRelationship(INonViralName hybridName, INonViralName parentName, HybridRelationshipType type, Reference citation, java.lang.String citationMicroReference, java.lang.String ruleConsidered, NomenclaturalCodeEdition codeEdition)
reference source
and adds it to the respective
botanical taxon name relation sets
of both involved names.toName
- the taxon name to be set as target for the new hybrid relationshipfromName
- the taxon name to be set as source for the new hybrid relationshiptype
- the relationship type to be assigned to the new hybrid relationshipcitation
- the reference source for the new hybrid relationshipcitationMicroReference
- the string with the details describing the exact localisation within the referenceruleConsidered
- the string indicating the article of the ICBN for the hybrid taxon name#HybridRelationship(BotanicalName, BotanicalName, HybridRelationshipType, String)
,
TaxonName.addHybridRelationship(HybridRelationship)
public TaxonName getParentName()
botanical taxon name
that plays the parent role
in this hybrid relationship.getHybridName()
,
RelationshipBase.getRelatedFrom()
public void setParentName(INonViralName parentName)
getParentName()
public TaxonName getHybridName()
botanical taxon name
that plays the child role
(the child is actually the hybrid taxon name) in this hybrid relationship.getParentName()
,
RelationshipBase.getRelatedTo()
public void setHybridName(INonViralName hybridName)
getHybridName()
public java.lang.String getRuleConsidered()
taxon name
within this hybrid relationship.getRuleConsidered
in interface IRuleConsidered
IRuleConsidered.getCodeEdition()
public void setRuleConsidered(java.lang.String ruleConsidered)
setRuleConsidered
in interface IRuleConsidered
getRuleConsidered()
public NomenclaturalCodeEdition getCodeEdition()
code edition
for the rule considered
.getCodeEdition
in interface IRuleConsidered
public void setCodeEdition(NomenclaturalCodeEdition codeEdition)
setCodeEdition
in interface IRuleConsidered
protected TaxonName getRelatedFrom()
getRelatedFrom
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
protected TaxonName getRelatedTo()
getRelatedTo
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
public HybridRelationshipType getType()
getType
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
protected void setRelatedFrom(INonViralName relatedFrom)
setRelatedFrom
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
protected void setRelatedTo(INonViralName relatedTo)
setRelatedTo
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
public void setType(HybridRelationshipType type)
setType
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
public int compareTo(HybridRelationship rel2)
compareTo
in interface java.lang.Comparable<HybridRelationship>
public java.lang.Object clone()
relatedFrom
and relatedTo
objects. The method is meant to be used
mainly for internal purposes (e.g. used within TaxonName.clone()
clone
in class RelationshipBase<INonViralName,INonViralName,HybridRelationshipType>
RelationshipBase.clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.