Package psidev.psi.mi.jami.model.impl
Class DefaultOrganism
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.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 Summary
Constructors Constructor Description DefaultOrganism(int taxId)
Constructor for DefaultOrganism.DefaultOrganism(int taxId, String commonName)
Constructor for DefaultOrganism.DefaultOrganism(int taxId, String commonName, String scientificName)
Constructor for DefaultOrganism.DefaultOrganism(int taxId, String commonName, String scientificName, CvTerm cellType, CvTerm tissue, CvTerm compartment)
Constructor for DefaultOrganism.DefaultOrganism(int taxId, String commonName, CvTerm cellType, CvTerm tissue, CvTerm compartment)
Constructor for DefaultOrganism.DefaultOrganism(int taxId, CvTerm cellType, CvTerm tissue, CvTerm compartment)
Constructor for DefaultOrganism.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Collection<Alias>
getAliases()
Getter for the fieldaliases
.CvTerm
getCellType()
Getter for the fieldcellType
.String
getCommonName()
Getter for the fieldcommonName
.CvTerm
getCompartment()
Getter for the fieldcompartment
.String
getScientificName()
Getter for the fieldscientificName
.int
getTaxId()
Getter for the fieldtaxId
.CvTerm
getTissue()
Getter for the fieldtissue
.int
hashCode()
protected void
initialiseAliases()
initialiseAliasesprotected void
initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWithvoid
setCellType(CvTerm cellType)
Sets the cell typevoid
setCommonName(String name)
Set the common namevoid
setCompartment(CvTerm compartment)
Sets the compartment.void
setScientificName(String name)
Set the scientific namevoid
setTaxId(int id)
Sets the taxonomy identifier of the organism.void
setTissue(CvTerm tissue)
Sets the tissueString
toString()
-
-
-
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
- aString
object.
-
DefaultOrganism
public DefaultOrganism(int taxId, String commonName, String scientificName)
Constructor for DefaultOrganism.
-
DefaultOrganism
public DefaultOrganism(int taxId, CvTerm cellType, CvTerm tissue, CvTerm compartment)
Constructor for DefaultOrganism.
-
DefaultOrganism
public DefaultOrganism(int taxId, String commonName, CvTerm cellType, CvTerm tissue, CvTerm compartment)
Constructor for DefaultOrganism.
-
-
Method Detail
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases
-
initialiseAliasesWith
protected void initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWith
- Parameters:
aliases
- aCollection
object.
-
getCommonName
public String getCommonName()
Getter for the field
commonName
.- Specified by:
getCommonName
in interfaceOrganism
- Returns:
- a
String
object.
-
setCommonName
public void setCommonName(String name)
Set the common name- Specified by:
setCommonName
in interfaceOrganism
- Parameters:
name
- : common name or mnemonic (or scientific name if no common names/mnemonic)
-
getScientificName
public String getScientificName()
Getter for the field
scientificName
.- Specified by:
getScientificName
in interfaceOrganism
- Returns:
- a
String
object.
-
setScientificName
public void setScientificName(String name)
Set the scientific name- Specified by:
setScientificName
in interfaceOrganism
- Parameters:
name
- : scientific name
-
getTaxId
public int getTaxId()
Getter for the field
taxId
.
-
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)
-
getAliases
public Collection<Alias> getAliases()
Getter for the field
aliases
.- Specified by:
getAliases
in interfaceOrganism
- Returns:
- a
Collection
object.
-
getCellType
public CvTerm getCellType()
Getter for the field
cellType
.- Specified by:
getCellType
in interfaceOrganism
- Returns:
- a
CvTerm
object.
-
setCellType
public void setCellType(CvTerm cellType)
Sets the cell type- Specified by:
setCellType
in interfaceOrganism
- Parameters:
cellType
- : cell type
-
getCompartment
public CvTerm getCompartment()
Getter for the field
compartment
.- Specified by:
getCompartment
in interfaceOrganism
- Returns:
- a
CvTerm
object.
-
setCompartment
public void setCompartment(CvTerm compartment)
Sets the compartment.- Specified by:
setCompartment
in interfaceOrganism
- Parameters:
compartment
- : the compartment
-
getTissue
public CvTerm getTissue()
Getter for the field
tissue
.
-
setTissue
public void setTissue(CvTerm tissue)
Sets the tissue
-
-