Class DefaultInteractor
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultInteractor
-
- All Implemented Interfaces:
Interactor
- Direct Known Subclasses:
DefaultComplex,DefaultInteractorPool,DefaultMolecule,MitabInteractor
public class DefaultInteractor extends Object implements Interactor
Default implementation for Interactor Notes: The equals and hashcode methods have NOT been overridden because the Interactor object is a complex object. To compare Interactor objects, you can use some comparators provided by default: - DefaultInteractorBaseComparator - UnambiguousInteractorBaseComparator - DefaultExactInteractorBaseComparator - UnambiguousExactInteractorBaseComparator - DefaultInteractorComparator - UnambiguousInteractorComparator - DefaultExactInteractorComparator - UnambiguousExactInteractorComparator - AbstractInteractorBaseComparator- Since:
22/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
-
Constructor Summary
Constructors Constructor Description DefaultInteractor(String name)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, CvTerm type)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, CvTerm type, Organism organism)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, CvTerm type, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, Organism organism)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, Organism organism, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, String fullName, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, CvTerm type)Constructor for DefaultInteractor.DefaultInteractor(String name, CvTerm type, Organism organism)Constructor for DefaultInteractor.DefaultInteractor(String name, CvTerm type, Organism organism, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, CvTerm type, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, Organism organism)Constructor for DefaultInteractor.DefaultInteractor(String name, Organism organism, Xref uniqueId)Constructor for DefaultInteractor.DefaultInteractor(String name, Xref uniqueId)Constructor for DefaultInteractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Alias>getAliases()Getter for the fieldaliases.Collection<Annotation>getAnnotations()Getter for the fieldannotations.Collection<Checksum>getChecksums()Getter for the fieldchecksums.StringgetFullName()Getter for the fieldfullName.Collection<Xref>getIdentifiers()Getter for the fieldidentifiers.CvTermgetInteractorType()Getter for the fieldinteractorType.OrganismgetOrganism()Getter for the fieldorganism.XrefgetPreferredIdentifier()getPreferredIdentifierStringgetPreferredName()The preferred name is the name by which we want to refer the interactor on our web site.StringgetShortName()Getter for the fieldshortName.Collection<Xref>getXrefs()Getter for the fieldxrefs.protected voidinitialiseAliases()initialiseAliasesprotected voidinitialiseAliasesWith(Collection<Alias> aliases)initialiseAliasesWithprotected voidinitialiseAnnotations()initialiseAnnotationsprotected voidinitialiseAnnotationsWith(Collection<Annotation> annotations)initialiseAnnotationsWithprotected voidinitialiseChecksums()initialiseChecksumsprotected voidinitialiseChecksumsWith(Collection<Checksum> checksums)initialiseChecksumsWithprotected voidinitialiseIdentifiers()initialiseIdentifiersprotected voidinitialiseIdentifiersWith(Collection<Xref> identifiers)initialiseIdentifiersWithprotected voidinitialiseXrefs()initialiseXrefsprotected voidinitialiseXrefsWith(Collection<Xref> xrefs)initialiseXrefsWithvoidsetFullName(String name)Sets the full name of the interactorvoidsetInteractorType(CvTerm interactorType)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()
-
-
-
Constructor Detail
-
DefaultInteractor
public DefaultInteractor(String name, CvTerm type)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName, CvTerm type)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, CvTerm type, Organism organism)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName, CvTerm type, Organism organism)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, CvTerm type, Xref uniqueId)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName, CvTerm type, Xref uniqueId)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, CvTerm type, Organism organism, Xref uniqueId)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name)
Constructor for DefaultInteractor.
- Parameters:
name- aStringobject.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, Organism organism)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName, Organism organism)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, Xref uniqueId)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, String fullName, Xref uniqueId)
Constructor for DefaultInteractor.
-
DefaultInteractor
public DefaultInteractor(String name, Organism organism, Xref uniqueId)
Constructor for DefaultInteractor.
-
-
Method Detail
-
initialiseAnnotations
protected void initialiseAnnotations()
initialiseAnnotations
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases
-
initialiseIdentifiers
protected void initialiseIdentifiers()
initialiseIdentifiers
-
initialiseChecksums
protected void initialiseChecksums()
initialiseChecksums
-
initialiseAnnotationsWith
protected void initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWith
- Parameters:
annotations- aCollectionobject.
-
initialiseXrefsWith
protected void initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWith
- Parameters:
xrefs- aCollectionobject.
-
initialiseAliasesWith
protected void initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWith
- Parameters:
aliases- aCollectionobject.
-
initialiseIdentifiersWith
protected void initialiseIdentifiersWith(Collection<Xref> identifiers)
initialiseIdentifiersWith
- Parameters:
identifiers- aCollectionobject.
-
initialiseChecksumsWith
protected void initialiseChecksumsWith(Collection<Checksum> checksums)
initialiseChecksumsWith
- Parameters:
checksums- aCollectionobject.
-
getShortName
public String getShortName()
Getter for the field
shortName.- 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()
Getter for the field
fullName.- 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()
Getter for the field
identifiers.- Specified by:
getIdentifiersin interfaceInteractor- Returns:
- a
Collectionobject.
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
getPreferredIdentifier
- Specified by:
getPreferredIdentifierin interfaceInteractor- Returns:
- the first identifier in the list of identifiers or null if the list is empty
-
getPreferredName
public String getPreferredName()
Description copied from interface:InteractorThe preferred name is the name by which we want to refer the interactor on our web site.- Specified by:
getPreferredNamein interfaceInteractor- Returns:
- the preferred name
-
getChecksums
public Collection<Checksum> getChecksums()
Getter for the field
checksums.- Specified by:
getChecksumsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
Getter for the field
xrefs.- Specified by:
getXrefsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
Getter for the field
annotations.- Specified by:
getAnnotationsin interfaceInteractor- Returns:
- a
Collectionobject.
-
getAliases
public Collection<Alias> getAliases()
Getter for the field
aliases.- Specified by:
getAliasesin interfaceInteractor- Returns:
- a
Collectionobject.
-
getOrganism
public Organism getOrganism()
Getter for the field
organism.- 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()
Getter for the field
interactorType.- Specified by:
getInteractorTypein interfaceInteractor- Returns:
- a
CvTermobject.
-
setInteractorType
public void setInteractorType(CvTerm interactorType)
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:
interactorType- : molecule type
-
-