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 MitabBioactiveEntity
createBioactiveEntity(String name, CvTerm type)
Creates a new BioactiveEntity with the name and interactor typeMitabComplex
createComplex(String name, CvTerm type)
Creates a new Complex with the name and interactor typeMitabGene
createGene(String name)
Creates a new Gene with the nameMitabInteractor
createInteractor(String name, CvTerm type)
Creates a default interactor from the name and interactor typeInteractor
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).MitabInteractorPool
createInteractorSet(String name, CvTerm type)
Creates an interactor pool from the name and interactor typeMitabNucleicAcid
createNucleicAcid(String name, CvTerm type)
Creates a new NucleicAcid with the name and interactor typeMitabPolymer
createPolymer(String name, CvTerm type)
Creates a new Polymer with the name and interactor typeMitabProtein
createProtein(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:
createProtein
in interfaceInteractorFactory
- Overrides:
createProtein
in 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:
createNucleicAcid
in interfaceInteractorFactory
- Overrides:
createNucleicAcid
in 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:
createGene
in interfaceInteractorFactory
- Overrides:
createGene
in 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:
createComplex
in interfaceInteractorFactory
- Overrides:
createComplex
in 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:
createBioactiveEntity
in interfaceInteractorFactory
- Overrides:
createBioactiveEntity
in 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:
createPolymer
in interfaceInteractorFactory
- Overrides:
createPolymer
in 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:
createInteractor
in interfaceInteractorFactory
- Overrides:
createInteractor
in 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:
createInteractorSet
in interfaceInteractorFactory
- Overrides:
createInteractorSet
in 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
- aCollection
object.name
- aString
object.- Returns:
- the proper instance of the interactor if at least one type (always take the first recognized type) is recognized. It returns null otherwise.
-
-