Class DefaultInteractor

  • All Implemented Interfaces:
    Interactor
    Direct Known Subclasses:
    DefaultComplex, DefaultInteractorPool, DefaultMolecule, MitabInteractor

    public class DefaultInteractor
    extends Object
    implements Interactor
    Default implementation for Interactor Notes: The equals and hashcode methods have NOT been overridden because the Interactor object is a complex object. To compare Interactor objects, you can use some comparators provided by default: - DefaultInteractorBaseComparator - UnambiguousInteractorBaseComparator - DefaultExactInteractorBaseComparator - UnambiguousExactInteractorBaseComparator - DefaultInteractorComparator - UnambiguousInteractorComparator - DefaultExactInteractorComparator - UnambiguousExactInteractorComparator - AbstractInteractorBaseComparator
    Since:
    22/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 CvTerm type)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        type - a CvTerm object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 CvTerm type)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 CvTerm type,
                                 Organism organism)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        type - a CvTerm object.
        organism - a Organism object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 CvTerm type,
                                 Organism organism)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
        organism - a Organism object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 CvTerm type,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        type - a CvTerm object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 CvTerm type,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 CvTerm type,
                                 Organism organism,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        type - a CvTerm object.
        organism - a Organism object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 CvTerm type,
                                 Organism organism,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
        organism - a Organism object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 Organism organism)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        organism - a Organism object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 Organism organism)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        organism - a Organism object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 Organism organism,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        organism - a Organism object.
        uniqueId - a Xref object.
      • DefaultInteractor

        public DefaultInteractor​(String name,
                                 String fullName,
                                 Organism organism,
                                 Xref uniqueId)

        Constructor for DefaultInteractor.

        Parameters:
        name - a String object.
        fullName - a String object.
        organism - a Organism object.
        uniqueId - a Xref object.
    • Method Detail

      • initialiseAnnotations

        protected void initialiseAnnotations()

        initialiseAnnotations

      • initialiseXrefs

        protected void initialiseXrefs()

        initialiseXrefs

      • initialiseAliases

        protected void initialiseAliases()

        initialiseAliases

      • initialiseIdentifiers

        protected void initialiseIdentifiers()

        initialiseIdentifiers

      • initialiseChecksums

        protected void initialiseChecksums()

        initialiseChecksums

      • initialiseAnnotationsWith

        protected void initialiseAnnotationsWith​(Collection<Annotation> annotations)

        initialiseAnnotationsWith

        Parameters:
        annotations - a Collection object.
      • initialiseXrefsWith

        protected void initialiseXrefsWith​(Collection<Xref> xrefs)

        initialiseXrefsWith

        Parameters:
        xrefs - a Collection object.
      • initialiseAliasesWith

        protected void initialiseAliasesWith​(Collection<Alias> aliases)

        initialiseAliasesWith

        Parameters:
        aliases - a Collection object.
      • initialiseIdentifiersWith

        protected void initialiseIdentifiersWith​(Collection<Xref> identifiers)

        initialiseIdentifiersWith

        Parameters:
        identifiers - a Collection object.
      • initialiseChecksumsWith

        protected void initialiseChecksumsWith​(Collection<Checksum> checksums)

        initialiseChecksumsWith

        Parameters:
        checksums - a Collection object.
      • setShortName

        public void setShortName​(String name)
        Sets the short name of an interactor
        Specified by:
        setShortName in interface Interactor
        Parameters:
        name - : short name
      • setFullName

        public void setFullName​(String name)
        Sets the full name of the interactor
        Specified by:
        setFullName in interface Interactor
        Parameters:
        name - : full name
      • getPreferredIdentifier

        public Xref getPreferredIdentifier()

        getPreferredIdentifier

        Specified by:
        getPreferredIdentifier in interface Interactor
        Returns:
        the first identifier in the list of identifiers or null if the list is empty
      • getPreferredName

        public String getPreferredName()
        Description copied from interface: Interactor
        The preferred name is the name by which we want to refer the interactor on our web site.
        Specified by:
        getPreferredName in interface Interactor
        Returns:
        the preferred name
      • setOrganism

        public void setOrganism​(Organism organism)
        Sets the source organism of this interactor
        Specified by:
        setOrganism in interface Interactor
        Parameters:
        organism - : source organism
      • setInteractorType

        public void setInteractorType​(CvTerm interactorType)
        Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)
        Specified by:
        setInteractorType in interface Interactor
        Parameters:
        interactorType - : molecule type