Class AbstractInteractorRef
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
-
- psidev.psi.mi.jami.xml.model.reference.xml254.AbstractInteractorRef
-
- All Implemented Interfaces:
FileSourceContext
,Interactor
,ExtendedPsiXmlInteractor
,XmlIdReference
- Direct Known Subclasses:
AbstractComplexRef
public abstract class AbstractInteractorRef extends AbstractXmlIdReference implements ExtendedPsiXmlInteractor
An implementation of XmlIdReference for interactors- Since:
11/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
ref
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractInteractorRef(int ref)
Constructor for AbstractInteractorRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Alias>
getAliases()
getAliases.Collection<Annotation>
getAnnotations()
getAnnotations.Collection<Checksum>
getChecksums()
getChecksums.protected ExtendedPsiXmlInteractor
getDelegate()
Getter for the fielddelegate
.String
getFullName()
getFullName.int
getId()
getId.Collection<Xref>
getIdentifiers()
getIdentifiers.CvTerm
getInteractorType()
getInteractorType.Organism
getOrganism()
getOrganism.Xref
getPreferredIdentifier()
getPreferredIdentifier.String
getPreferredName()
getPreferredName.String
getShortName()
getShortName.Collection<Xref>
getXrefs()
getXrefs.protected void
initialiseInteractorDelegate()
initialiseInteractorDelegate.protected void
setDelegate(ExtendedPsiXmlInteractor delegate)
Setter for the fielddelegate
.void
setFullName(String name)
Sets the full name of the interactorvoid
setId(int id)
setId.void
setInteractorType(CvTerm type)
Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)void
setOrganism(Organism organism)
Sets the source organism of this interactorvoid
setShortName(String name)
Sets the short name of an interactorString
toString()
toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
getRef, registerForResolution
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.datasource.FileSourceContext
getSourceLocator, setSourceLocator
-
Methods inherited from interface psidev.psi.mi.jami.xml.model.reference.XmlIdReference
resolve
-
-
-
-
Method Detail
-
getShortName
public String getShortName()
getShortName.
- Specified by:
getShortName
in interfaceInteractor
- Returns:
- a
String
object.
-
setShortName
public void setShortName(String name)
Sets the short name of an interactor- Specified by:
setShortName
in interfaceInteractor
- Parameters:
name
- : short name
-
getFullName
public String getFullName()
getFullName.
- Specified by:
getFullName
in interfaceInteractor
- Returns:
- a
String
object.
-
setFullName
public void setFullName(String name)
Sets the full name of the interactor- Specified by:
setFullName
in interfaceInteractor
- Parameters:
name
- : full name
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiers
in interfaceInteractor
- Returns:
- a
Collection
object.
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
getPreferredIdentifier.
- Specified by:
getPreferredIdentifier
in interfaceInteractor
- Returns:
- a
Xref
object.
-
getPreferredName
public String getPreferredName()
getPreferredName.
- Specified by:
getPreferredName
in interfaceInteractor
- Returns:
- a String.
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksums
in interfaceInteractor
- Returns:
- a
Collection
object.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefs
in interfaceInteractor
- Returns:
- a
Collection
object.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotations
in interfaceInteractor
- Returns:
- a
Collection
object.
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliases
in interfaceInteractor
- Returns:
- a
Collection
object.
-
getOrganism
public Organism getOrganism()
getOrganism.
- Specified by:
getOrganism
in interfaceInteractor
- Returns:
- a
Organism
object.
-
setOrganism
public void setOrganism(Organism organism)
Sets the source organism of this interactor- Specified by:
setOrganism
in interfaceInteractor
- Parameters:
organism
- : source organism
-
getInteractorType
public CvTerm getInteractorType()
getInteractorType.
- Specified by:
getInteractorType
in interfaceInteractor
- Returns:
- a
CvTerm
object.
-
setInteractorType
public void setInteractorType(CvTerm type)
Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)- Specified by:
setInteractorType
in interfaceInteractor
- Parameters:
type
- : molecule type
-
setId
public void setId(int id)
setId.
- Specified by:
setId
in interfaceExtendedPsiXmlInteractor
- Parameters:
id
- a int.
-
getId
public int getId()
getId.
- Specified by:
getId
in interfaceExtendedPsiXmlInteractor
- Returns:
- a int.
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classAbstractXmlIdReference
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
initialiseInteractorDelegate
protected void initialiseInteractorDelegate()
initialiseInteractorDelegate.
-
getDelegate
protected ExtendedPsiXmlInteractor getDelegate()
Getter for the field
delegate
.- Returns:
- a
ExtendedPsiXmlInteractor
object.
-
setDelegate
protected void setDelegate(ExtendedPsiXmlInteractor delegate)
Setter for the field
delegate
.- Parameters:
delegate
- aExtendedPsiXmlInteractor
object.
-
-