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 CvTermgetRelationType()Getter for the fieldrelationType.EntitygetSource()getSource.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.EntitygetTarget()Getter for the fieldtarget.voidsetJAXBRelationType(XmlOpenCvTerm value)setJAXBRelationType.voidsetJAXBSourceParticipant(int ref)setJAXBSourceParticipant.voidsetJAXBTargetParticipant(int ref)setJAXBTargetParticipant.voidsetSourceLocation(PsiXmlLocator sourceLocator)setSourceLocation.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
XmlCausalRelationship
public XmlCausalRelationship()
Constructor for XmlCausalRelationship.
-
XmlCausalRelationship
public XmlCausalRelationship(CvTerm relationType, Participant target)
Constructor for XmlCausalRelationship.
- 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.
-
getSource
public Entity getSource()
getSource.
- Specified by:
getSourcein interfaceExtendedPsiXmlCausalRelationship- Returns:
- the participant source which cannot be null
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin 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:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
setSourceLocation
public void setSourceLocation(PsiXmlLocator sourceLocator)
setSourceLocation.
- Parameters:
sourceLocator- aPsiXmlLocatorobject.
-
setJAXBSourceParticipant
public void setJAXBSourceParticipant(int ref)
setJAXBSourceParticipant.
- Parameters:
ref- a int.
-
setJAXBRelationType
public void setJAXBRelationType(XmlOpenCvTerm value)
setJAXBRelationType.
- Parameters:
value- aXmlOpenCvTermobject.
-
setJAXBTargetParticipant
public void setJAXBTargetParticipant(int ref)
setJAXBTargetParticipant.
- Parameters:
ref- a int.
-
-