Class DefaultOrganism

  • All Implemented Interfaces:
    Organism
    Direct Known Subclasses:
    MitabOrganism

    public class DefaultOrganism
    extends Object
    implements Organism
    Default implementation for organism Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousOrganismComparator
    Since:
    22/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultOrganism

        public DefaultOrganism​(int taxId)

        Constructor for DefaultOrganism.

        Parameters:
        taxId - a int.
      • DefaultOrganism

        public DefaultOrganism​(int taxId,
                               String commonName)

        Constructor for DefaultOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
      • DefaultOrganism

        public DefaultOrganism​(int taxId,
                               String commonName,
                               String scientificName)

        Constructor for DefaultOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
        scientificName - a String object.
      • DefaultOrganism

        public DefaultOrganism​(int taxId,
                               CvTerm cellType,
                               CvTerm tissue,
                               CvTerm compartment)

        Constructor for DefaultOrganism.

        Parameters:
        taxId - a int.
        cellType - a CvTerm object.
        tissue - a CvTerm object.
        compartment - a CvTerm object.
      • DefaultOrganism

        public DefaultOrganism​(int taxId,
                               String commonName,
                               CvTerm cellType,
                               CvTerm tissue,
                               CvTerm compartment)

        Constructor for DefaultOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
        cellType - a CvTerm object.
        tissue - a CvTerm object.
        compartment - a CvTerm object.
      • DefaultOrganism

        public DefaultOrganism​(int taxId,
                               String commonName,
                               String scientificName,
                               CvTerm cellType,
                               CvTerm tissue,
                               CvTerm compartment)

        Constructor for DefaultOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
        scientificName - a String object.
        cellType - a CvTerm object.
        tissue - a CvTerm object.
        compartment - a CvTerm object.
    • Method Detail

      • initialiseAliases

        protected void initialiseAliases()

        initialiseAliases

      • initialiseAliasesWith

        protected void initialiseAliasesWith​(Collection<Alias> aliases)

        initialiseAliasesWith

        Parameters:
        aliases - a Collection object.
      • setCommonName

        public void setCommonName​(String name)
        Set the common name
        Specified by:
        setCommonName in interface Organism
        Parameters:
        name - : common name or mnemonic (or scientific name if no common names/mnemonic)
      • setScientificName

        public void setScientificName​(String name)
        Set the scientific name
        Specified by:
        setScientificName in interface Organism
        Parameters:
        name - : scientific name
      • getTaxId

        public int getTaxId()

        Getter for the field taxId.

        Specified by:
        getTaxId in interface Organism
        Returns:
        a int.
      • setTaxId

        public void setTaxId​(int id)
        Sets the taxonomy identifier of the organism. It should be : - '-1' for 'in vitro' - '-2' for 'chemical synthesis' - '-3' for unknown - '-4' for in vivo - valid NCBI taxonomy identifier (Ex: 9606 for human)
        Specified by:
        setTaxId in interface Organism
        Parameters:
        id - a int.
      • setCellType

        public void setCellType​(CvTerm cellType)
        Sets the cell type
        Specified by:
        setCellType in interface Organism
        Parameters:
        cellType - : cell type
      • setCompartment

        public void setCompartment​(CvTerm compartment)
        Sets the compartment.
        Specified by:
        setCompartment in interface Organism
        Parameters:
        compartment - : the compartment
      • setTissue

        public void setTissue​(CvTerm tissue)
        Sets the tissue
        Specified by:
        setTissue in interface Organism
        Parameters:
        tissue - : tissue
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object