Class AbstractInteractorRef
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
-
- psidev.psi.mi.jami.xml.model.reference.xml300.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 ExtendedPsiXmlInteractorgetDelegate()Getter for the fielddelegate.StringgetFullName()getFullName.intgetId()getId.Collection<Xref>getIdentifiers()getIdentifiers.CvTermgetInteractorType()getInteractorType.OrganismgetOrganism()getOrganism.XrefgetPreferredIdentifier()getPreferredIdentifier.StringgetPreferredName()getPreferredName.StringgetShortName()getShortName.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseInteractorDelegate()initialiseInteractorDelegate.protected voidsetDelegate(ExtendedPsiXmlInteractor delegate)Setter for the fielddelegate.voidsetFullName(String name)Sets the full name of the interactorvoidsetId(int id)setId.voidsetInteractorType(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)voidsetOrganism(Organism organism)Sets the source organism of this interactorvoidsetShortName(String name)Sets the short name of an interactorStringtoString()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:
getShortNamein interfaceInteractor- Returns:
- a
Stringobject.
-
setShortName
public void setShortName(String name)
Sets the short name of an interactor- Specified by:
setShortNamein interfaceInteractor- Parameters:
name- : short name
-
getFullName
public String getFullName()
getFullName.
- Specified by:
getFullNamein interfaceInteractor- Returns:
- a
Stringobject.
-
setFullName
public void setFullName(String name)
Sets the full name of the interactor- Specified by:
setFullNamein interfaceInteractor- Parameters:
name- : full name
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfaceInteractor- Returns:
- a
Collectionobject.
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
getPreferredIdentifier.
- Specified by:
getPreferredIdentifierin interfaceInteractor- Returns:
- a
Xrefobject.
-
getPreferredName
public String getPreferredName()
getPreferredName.
- Specified by:
getPreferredNamein interfaceInteractor- Returns:
- a String.
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksumsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliasesin interfaceInteractor- Returns:
- a
Collectionobject.
-
getOrganism
public Organism getOrganism()
getOrganism.
- Specified by:
getOrganismin interfaceInteractor- Returns:
- a
Organismobject.
-
setOrganism
public void setOrganism(Organism organism)
Sets the source organism of this interactor- Specified by:
setOrganismin interfaceInteractor- Parameters:
organism- : source organism
-
getInteractorType
public CvTerm getInteractorType()
getInteractorType.
- Specified by:
getInteractorTypein interfaceInteractor- Returns:
- a
CvTermobject.
-
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:
setInteractorTypein interfaceInteractor- Parameters:
type- : molecule type
-
setId
public void setId(int id)
setId.
- Specified by:
setIdin interfaceExtendedPsiXmlInteractor- Parameters:
id- a int.
-
getId
public int getId()
getId.
- Specified by:
getIdin interfaceExtendedPsiXmlInteractor- Returns:
- a int.
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin 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
ExtendedPsiXmlInteractorobject.
-
setDelegate
protected void setDelegate(ExtendedPsiXmlInteractor delegate)
Setter for the field
delegate.- Parameters:
delegate- aExtendedPsiXmlInteractorobject.
-
-