Interface InteractorFactory

    • 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 type
        name - : 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 - : database
        name - :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 - : identifiers
        name - : 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 name
        type - : 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 name
        type - : 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 name
        type - : 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 name
        type - : 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 name
        type - : 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 name
        type - : 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 name
        type - : interactor type
        Returns:
        created interactor pool