eu.etaxonomy.cdm.model.name
Class HybridRelationship
java.lang.Object
eu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.ReferencedEntityBase
eu.etaxonomy.cdm.model.common.RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
eu.etaxonomy.cdm.model.name.HybridRelationship
- All Implemented Interfaces:
- IAnnotatableEntity, ICdmBase, IReferencedEntity, IVersionableEntity, Serializable, Cloneable, Comparable<HybridRelationship>
public class HybridRelationship
- extends RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
- implements Cloneable, Comparable<HybridRelationship>
The class representing a hybrid relationship between one of the 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:
- Relationship according to the TDWG ontology
- TaxonRelationship according to the TCS
- Version:
- 1.0
- Author:
- m.doering
- See Also:
- Serialized Form
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
uuid |
| 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, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString |
HybridRelationship
protected HybridRelationship(NonViralName hybridName,
NonViralName parentName,
HybridRelationshipType type,
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.
- Parameters:
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- See Also:
#HybridRelationship(BotanicalName, BotanicalName, HybridRelationshipType, Reference, String, String),
NonViralName.addHybridRelationship(HybridRelationship)
HybridRelationship
protected HybridRelationship(NonViralName hybridName,
NonViralName parentName,
HybridRelationshipType type,
Reference citation,
String citationMicroReference,
String ruleConsidered)
- 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.
- Parameters:
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- See Also:
#HybridRelationship(BotanicalName, BotanicalName, HybridRelationshipType, String),
NonViralName.addHybridRelationship(HybridRelationship)
getParentName
public NonViralName getParentName()
- Returns the
botanical taxon name that plays the parent role
in this hybrid relationship.
- See Also:
getHybridName(),
RelationshipBase.getRelatedFrom()
setParentName
public void setParentName(NonViralName parentName)
- See Also:
getParentName()
getHybridName
public NonViralName getHybridName()
- Returns the
botanical taxon name that plays the child role
(the child is actually the hybrid taxon name) in this hybrid relationship.
- See Also:
getParentName(),
RelationshipBase.getRelatedTo()
setHybridName
public void setHybridName(NonViralName hybridName)
- See Also:
getHybridName()
getRuleConsidered
public 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.
setRuleConsidered
public void setRuleConsidered(String ruleConsidered)
- See Also:
getRuleConsidered()
getRelatedFrom
protected NonViralName getRelatedFrom()
- Specified by:
getRelatedFrom in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
getRelatedTo
protected NonViralName getRelatedTo()
- Specified by:
getRelatedTo in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
getType
public HybridRelationshipType getType()
- Specified by:
getType in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
setRelatedFrom
protected void setRelatedFrom(NonViralName relatedFrom)
- Specified by:
setRelatedFrom in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
setRelatedTo
protected void setRelatedTo(NonViralName relatedTo)
- Specified by:
setRelatedTo in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
setType
public void setType(HybridRelationshipType type)
- Specified by:
setType in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
compareTo
public int compareTo(HybridRelationship rel2)
- Specified by:
compareTo in interface Comparable<HybridRelationship>
clone
public Object clone()
- Clones this hybrid relationship. This is a shortcut that enables to create
a new instance that differs only slightly from this hybrid relationship by
modifying only some of the attributes.
CAUTION: Cloning a relationship will not add the relationship to the according
relatedFrom and relatedTo objects. The method is meant to be used
mainly for internal purposes (e.g. used within TaxonNameBase.clone()
- Overrides:
clone in class RelationshipBase<NonViralName,NonViralName,HybridRelationshipType>
- See Also:
RelationshipBase.clone(),
Object.clone()
Copyright © 2007-2012 EDIT. All Rights Reserved.