Class MitabInteractorFactory
- java.lang.Object
-
- psidev.psi.mi.jami.factory.DefaultInteractorFactory
-
- psidev.psi.mi.jami.tab.extension.factory.MitabInteractorFactory
-
- All Implemented Interfaces:
InteractorFactory
public class MitabInteractorFactory extends DefaultInteractorFactory
The MITAB extension of the InteractorFactory- Since:
18/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MitabInteractorFactory()Constructor for MitabInteractorFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MitabBioactiveEntitycreateBioactiveEntity(String name, CvTerm type)Creates a new BioactiveEntity with the name and interactor typeMitabComplexcreateComplex(String name, CvTerm type)Creates a new Complex with the name and interactor typeMitabGenecreateGene(String name)Creates a new Gene with the nameMitabInteractorcreateInteractor(String name, CvTerm type)Creates a default interactor from the name and interactor typeInteractorcreateInteractorFromInteractorTypes(Collection<MitabCvTerm> types, String name)Return the proper instance of the interactor if at least one type is recognized (always take the first recognized type).MitabInteractorPoolcreateInteractorSet(String name, CvTerm type)Creates an interactor pool from the name and interactor typeMitabNucleicAcidcreateNucleicAcid(String name, CvTerm type)Creates a new NucleicAcid with the name and interactor typeMitabPolymercreatePolymer(String name, CvTerm type)Creates a new Polymer with the name and interactor typeMitabProteincreateProtein(String name, CvTerm type)Creates a new Protein with the name and interactor type-
Methods inherited from class psidev.psi.mi.jami.factory.DefaultInteractorFactory
createInteractorFromDatabase, createInteractorFromIdentityXrefs, createInteractorFromInteractorType, createInteractorFromRecognizedCategory, extractCvTermFromKey, initialiseDeterministicInteractorMaps, loadProperties
-
-
-
-
Method Detail
-
createProtein
public MitabProtein createProtein(String name, CvTerm type)
Creates a new Protein with the name and interactor type Creates a new Protein with the name and interactor type- Specified by:
createProteinin interfaceInteractorFactory- Overrides:
createProteinin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created protein
-
createNucleicAcid
public MitabNucleicAcid createNucleicAcid(String name, CvTerm type)
Creates a new NucleicAcid with the name and interactor type Creates a new NucleicAcid with the name and interactor type- Specified by:
createNucleicAcidin interfaceInteractorFactory- Overrides:
createNucleicAcidin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created nucleic acid
-
createGene
public MitabGene createGene(String name)
Creates a new Gene with the name Creates a new Gene with the name- Specified by:
createGenein interfaceInteractorFactory- Overrides:
createGenein classDefaultInteractorFactory- Parameters:
name- : name- Returns:
- created gene
-
createComplex
public MitabComplex createComplex(String name, CvTerm type)
Creates a new Complex with the name and interactor type Creates a new Complex with the name and interactor type- Specified by:
createComplexin interfaceInteractorFactory- Overrides:
createComplexin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created complex
-
createBioactiveEntity
public MitabBioactiveEntity createBioactiveEntity(String name, CvTerm type)
Creates a new BioactiveEntity with the name and interactor type Creates a new BioactiveEntity with the name and interactor type- Specified by:
createBioactiveEntityin interfaceInteractorFactory- Overrides:
createBioactiveEntityin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created bioactive entity
-
createPolymer
public MitabPolymer createPolymer(String name, CvTerm type)
Creates a new Polymer with the name and interactor type Creates a new Polymer with the name and interactor type- Specified by:
createPolymerin interfaceInteractorFactory- Overrides:
createPolymerin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created polymer
-
createInteractor
public MitabInteractor createInteractor(String name, CvTerm type)
Creates a default interactor from the name and interactor type Creates a default interactor from the name and interactor type- Specified by:
createInteractorin interfaceInteractorFactory- Overrides:
createInteractorin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created default interactor
-
createInteractorSet
public MitabInteractorPool createInteractorSet(String name, CvTerm type)
Creates an interactor pool from the name and interactor type Creates an interactor pool from the name and interactor type- Specified by:
createInteractorSetin interfaceInteractorFactory- Overrides:
createInteractorSetin classDefaultInteractorFactory- Parameters:
name- : short nametype- : interactor type- Returns:
- created interactor pool
-
createInteractorFromInteractorTypes
public Interactor createInteractorFromInteractorTypes(Collection<MitabCvTerm> types, String name)
Return the proper instance of the interactor if at least one type is recognized (always take the first recognized type). It returns null otherwise.- Parameters:
types- aCollectionobject.name- aStringobject.- Returns:
- the proper instance of the interactor if at least one type (always take the first recognized type) is recognized. It returns null otherwise.
-
-