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 booleanequals(Object o)Collection<Alias>getAliases()Getter for the fieldaliases.CvTermgetCellType()Getter for the fieldcellType.StringgetCommonName()Getter for the fieldcommonName.CvTermgetCompartment()Getter for the fieldcompartment.StringgetScientificName()Getter for the fieldscientificName.intgetTaxId()Getter for the fieldtaxId.CvTermgetTissue()Getter for the fieldtissue.inthashCode()protected voidinitialiseAliases()initialiseAliasesprotected voidinitialiseAliasesWith(Collection<Alias> aliases)initialiseAliasesWithvoidsetCellType(CvTerm cellType)Sets the cell typevoidsetCommonName(String name)Set the common namevoidsetCompartment(CvTerm compartment)Sets the compartment.voidsetScientificName(String name)Set the scientific namevoidsetTaxId(int id)Sets the taxonomy identifier of the organism.voidsetTissue(CvTerm tissue)Sets the tissueStringtoString()
-
-
-
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- aStringobject.
-
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- aCollectionobject.
-
getCommonName
public String getCommonName()
Getter for the field
commonName.- Specified by:
getCommonNamein interfaceOrganism- Returns:
- a
Stringobject.
-
setCommonName
public void setCommonName(String name)
Set the common name- Specified by:
setCommonNamein 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:
getScientificNamein interfaceOrganism- Returns:
- a
Stringobject.
-
setScientificName
public void setScientificName(String name)
Set the scientific name- Specified by:
setScientificNamein 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:
getAliasesin interfaceOrganism- Returns:
- a
Collectionobject.
-
getCellType
public CvTerm getCellType()
Getter for the field
cellType.- Specified by:
getCellTypein interfaceOrganism- Returns:
- a
CvTermobject.
-
setCellType
public void setCellType(CvTerm cellType)
Sets the cell type- Specified by:
setCellTypein interfaceOrganism- Parameters:
cellType- : cell type
-
getCompartment
public CvTerm getCompartment()
Getter for the field
compartment.- Specified by:
getCompartmentin interfaceOrganism- Returns:
- a
CvTermobject.
-
setCompartment
public void setCompartment(CvTerm compartment)
Sets the compartment.- Specified by:
setCompartmentin interfaceOrganism- Parameters:
compartment- : the compartment
-
getTissue
public CvTerm getTissue()
Getter for the field
tissue.
-
setTissue
public void setTissue(CvTerm tissue)
Sets the tissue
-
-