Class XmlInteractorFactory
- java.lang.Object
-
- psidev.psi.mi.jami.factory.DefaultInteractorFactory
-
- psidev.psi.mi.jami.xml.model.extension.factory.XmlInteractorFactory
-
- All Implemented Interfaces:
InteractorFactory
public class XmlInteractorFactory extends DefaultInteractorFactory
Interactor factory for XML interactors- Since:
24/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlInteractorFactory()
Constructor for XmlInteractorFactory.XmlInteractorFactory(InteractorFactory delegate)
Constructor for XmlInteractorFactory.
-
Method Summary
All Methods Instance Methods Concrete 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
createInteractorFromXmlInteractorInstance(AbstractBaseXmlInteractor source)
createInteractorFromXmlInteractorInstance.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-
Methods inherited from class psidev.psi.mi.jami.factory.DefaultInteractorFactory
createInteractorFromDatabase, createInteractorFromIdentityXrefs, createInteractorFromInteractorType, createInteractorFromRecognizedCategory, extractCvTermFromKey, initialiseDeterministicInteractorMaps, loadProperties
-
-
-
-
Constructor Detail
-
XmlInteractorFactory
public XmlInteractorFactory()
Constructor for XmlInteractorFactory.
-
XmlInteractorFactory
public XmlInteractorFactory(InteractorFactory delegate)
Constructor for XmlInteractorFactory.
- Parameters:
delegate
- aInteractorFactory
object.
-
-
Method Detail
-
createProtein
public Protein 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 NucleicAcid 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 Gene 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 Complex 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 BioactiveEntity 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 Polymer 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 Interactor 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 InteractorPool 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
-
createInteractorFromXmlInteractorInstance
public Interactor createInteractorFromXmlInteractorInstance(AbstractBaseXmlInteractor source)
createInteractorFromXmlInteractorInstance.
- Parameters:
source
- aAbstractXmlInteractor
object.- Returns:
- a
Interactor
object.
-
-