Package psidev.psi.mi.jami.model.impl
Class DefaultCausalRelationship
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCausalRelationship
-
- All Implemented Interfaces:
CausalRelationship
- Direct Known Subclasses:
MitabCausalRelationship
public class DefaultCausalRelationship extends Object implements CausalRelationship
Default implementation for CausalRelationship Notes: The equals and hashcode methods have NOT been overridden because the CausalRelationship object is a complex object. To compare CausalRelationship objects, you can use some comparators provided by default: - DefaultCausalRelationshipComparator - UnambiguousCausalRelationshipComparator - DefaultExactCausalRelationshipComparator - UnambiguousExactCausalRelationshipComparator - CausalRelationshipComparator- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultCausalRelationship(CvTerm relationType, Participant target)Constructor for DefaultCausalRelationship.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CvTermgetRelationType()Getter for the fieldrelationType.EntitygetTarget()Getter for the fieldtarget.StringtoString()
-
-
-
Constructor Detail
-
DefaultCausalRelationship
public DefaultCausalRelationship(CvTerm relationType, Participant target)
Constructor for DefaultCausalRelationship.
- Parameters:
relationType- aCvTermobject.target- aParticipantobject.
-
-
Method Detail
-
getRelationType
public CvTerm getRelationType()
Getter for the field
relationType.- Specified by:
getRelationTypein interfaceCausalRelationship- Returns:
- a
CvTermobject.
-
getTarget
public Entity getTarget()
Getter for the field
target.- Specified by:
getTargetin interfaceCausalRelationship- Returns:
- a
Entityobject.
-
-