Class XmlCausalRelationship
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.XmlCausalRelationship
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable
,FileSourceContext
,CausalRelationship
,ExtendedPsiXmlCausalRelationship
public class XmlCausalRelationship extends Object implements ExtendedPsiXmlCausalRelationship, FileSourceContext, com.sun.xml.bind.Locatable
XML 3.0 implementation of causal relationship- Since:
30/05/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlCausalRelationship()
Constructor for XmlCausalRelationship.XmlCausalRelationship(CvTerm relationType, Participant target)
Constructor for XmlCausalRelationship.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CvTerm
getRelationType()
Getter for the fieldrelationType
.Entity
getSource()
getSource.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.Entity
getTarget()
Getter for the fieldtarget
.void
setJAXBRelationType(XmlOpenCvTerm value)
setJAXBRelationType.void
setJAXBSourceParticipant(int ref)
setJAXBSourceParticipant.void
setJAXBTargetParticipant(int ref)
setJAXBTargetParticipant.void
setSourceLocation(PsiXmlLocator sourceLocator)
setSourceLocation.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorLocator
sourceLocation()
String
toString()
toString
-
-
-
Constructor Detail
-
XmlCausalRelationship
public XmlCausalRelationship()
Constructor for XmlCausalRelationship.
-
XmlCausalRelationship
public XmlCausalRelationship(CvTerm relationType, Participant target)
Constructor for XmlCausalRelationship.
- Parameters:
relationType
- aCvTerm
object.target
- aParticipant
object.
-
-
Method Detail
-
getRelationType
public CvTerm getRelationType()
Getter for the field
relationType
.- Specified by:
getRelationType
in interfaceCausalRelationship
- Returns:
- a
CvTerm
object.
-
getTarget
public Entity getTarget()
Getter for the field
target
.- Specified by:
getTarget
in interfaceCausalRelationship
- Returns:
- a
Entity
object.
-
getSource
public Entity getSource()
getSource.
- Specified by:
getSource
in interfaceExtendedPsiXmlCausalRelationship
- Returns:
- the participant source which cannot be null
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
setSourceLocation
public void setSourceLocation(PsiXmlLocator sourceLocator)
setSourceLocation.
- Parameters:
sourceLocator
- aPsiXmlLocator
object.
-
setJAXBSourceParticipant
public void setJAXBSourceParticipant(int ref)
setJAXBSourceParticipant.
- Parameters:
ref
- a int.
-
setJAXBRelationType
public void setJAXBRelationType(XmlOpenCvTerm value)
setJAXBRelationType.
- Parameters:
value
- aXmlOpenCvTerm
object.
-
setJAXBTargetParticipant
public void setJAXBTargetParticipant(int ref)
setJAXBTargetParticipant.
- Parameters:
ref
- a int.
-
-