Package psidev.psi.mi.jami.factory
Interface InteractorFactory
-
- All Known Implementing Classes:
DefaultInteractorFactory,MitabInteractorFactory,XmlInteractorFactory
public interface InteractorFactoryInterface 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 BioactiveEntitycreateBioactiveEntity(String name, CvTerm type)Creates a new BioactiveEntity with the name and interactor typeComplexcreateComplex(String name, CvTerm type)Creates a new Complex with the name and interactor typeGenecreateGene(String name)Creates a new Gene with the nameInteractorcreateInteractor(String name, CvTerm type)Creates a default interactor from the name and interactor typeInteractorcreateInteractorFromDatabase(CvTerm database, String name)Return the proper instance of the interactor if the database is recognized.InteractorcreateInteractorFromIdentityXrefs(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).InteractorcreateInteractorFromInteractorType(CvTerm type, String name)Return the proper instance of the interactor if the type is recognized and not null.InteractorPoolcreateInteractorSet(String name, CvTerm type)Creates an interactor pool from the name and interactor typeNucleicAcidcreateNucleicAcid(String name, CvTerm type)Creates a new NucleicAcid with the name and interactor typePolymercreatePolymer(String name, CvTerm type)Creates a new Polymer with the name and interactor typeProteincreateProtein(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
-
-