Package psidev.psi.mi.jami.factory
Interface InteractorFactory
-
- All Known Implementing Classes:
DefaultInteractorFactory
,MitabInteractorFactory
,XmlInteractorFactory
public interface InteractorFactory
Interface for factories allowing creation of a proper interactor depending on the type and xrefs- Since:
18/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BioactiveEntity
createBioactiveEntity(String name, CvTerm type)
Creates a new BioactiveEntity with the name and interactor typeComplex
createComplex(String name, CvTerm type)
Creates a new Complex with the name and interactor typeGene
createGene(String name)
Creates a new Gene with the nameInteractor
createInteractor(String name, CvTerm type)
Creates a default interactor from the name and interactor typeInteractor
createInteractorFromDatabase(CvTerm database, String name)
Return the proper instance of the interactor if the database is recognized.Interactor
createInteractorFromIdentityXrefs(Collection<? extends Xref> xrefs, String name)
Return the proper instance of the interactor if the database is recognized (the interactor will be returned on the first database which is recognized).Interactor
createInteractorFromInteractorType(CvTerm type, String name)
Return the proper instance of the interactor if the type is recognized and not null.InteractorPool
createInteractorSet(String name, CvTerm type)
Creates an interactor pool from the name and interactor typeNucleicAcid
createNucleicAcid(String name, CvTerm type)
Creates a new NucleicAcid with the name and interactor typePolymer
createPolymer(String name, CvTerm type)
Creates a new Polymer with the name and interactor typeProtein
createProtein(String name, CvTerm type)
Creates a new Protein with the name and interactor type
-
-
-
Method Detail
-
createInteractorFromInteractorType
Interactor createInteractorFromInteractorType(CvTerm type, String name)
Return the proper instance of the interactor if the type is recognized and not null. It returns null otherwise.- Parameters:
type
- : interactor typename
- : short name- Returns:
- the proper instance of the interactor if the type is recognized. It returns null otherwise.
-
createInteractorFromDatabase
Interactor createInteractorFromDatabase(CvTerm database, String name)
Return the proper instance of the interactor if the database is recognized. It returns null otherwise.- Parameters:
database
- : databasename
- :name- Returns:
- the proper instance of the interactor if the database is recognized. It returns null otherwise.
-
createInteractorFromIdentityXrefs
Interactor createInteractorFromIdentityXrefs(Collection<? extends Xref> xrefs, String name)
Return the proper instance of the interactor if the database is recognized (the interactor will be returned on the first database which is recognized). It returns null otherwise.- Parameters:
xrefs
- : identifiersname
- : name- Returns:
- the proper instance of the interactor if the database is recognized (the interactor will be returned on the first database which is recognized). It returns null otherwise.
-
createProtein
Protein createProtein(String name, CvTerm type)
Creates a new Protein with the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created protein
-
createNucleicAcid
NucleicAcid createNucleicAcid(String name, CvTerm type)
Creates a new NucleicAcid with the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created nucleic acid
-
createGene
Gene createGene(String name)
Creates a new Gene with the name- Parameters:
name
- : name- Returns:
- created gene
-
createComplex
Complex createComplex(String name, CvTerm type)
Creates a new Complex with the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created complex
-
createBioactiveEntity
BioactiveEntity createBioactiveEntity(String name, CvTerm type)
Creates a new BioactiveEntity with the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created bioactive entity
-
createPolymer
Polymer createPolymer(String name, CvTerm type)
Creates a new Polymer with the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created polymer
-
createInteractor
Interactor createInteractor(String name, CvTerm type)
Creates a default interactor from the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created default interactor
-
createInteractorSet
InteractorPool createInteractorSet(String name, CvTerm type)
Creates an interactor pool from the name and interactor type- Parameters:
name
- : short nametype
- : interactor type- Returns:
- created interactor pool
-
-