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 SummaryConstructors 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 SummaryAll 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- 
DefaultOrganismpublic DefaultOrganism(int taxId) Constructor for DefaultOrganism. - Parameters:
- taxId- a int.
 
 - 
DefaultOrganismpublic DefaultOrganism(int taxId, String commonName)Constructor for DefaultOrganism. - Parameters:
- taxId- a int.
- commonName- a- Stringobject.
 
 - 
DefaultOrganismpublic DefaultOrganism(int taxId, String commonName, String scientificName)Constructor for DefaultOrganism. 
 - 
DefaultOrganismpublic DefaultOrganism(int taxId, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for DefaultOrganism. 
 - 
DefaultOrganismpublic DefaultOrganism(int taxId, String commonName, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for DefaultOrganism. 
 
- 
 - 
Method Detail- 
initialiseAliasesprotected void initialiseAliases() initialiseAliases 
 - 
initialiseAliasesWithprotected void initialiseAliasesWith(Collection<Alias> aliases) initialiseAliasesWith - Parameters:
- aliases- a- Collectionobject.
 
 - 
getCommonNamepublic String getCommonName() Getter for the field commonName.- Specified by:
- getCommonNamein interface- Organism
- Returns:
- a Stringobject.
 
 - 
setCommonNamepublic void setCommonName(String name) Set the common name- Specified by:
- setCommonNamein interface- Organism
- Parameters:
- name- : common name or mnemonic (or scientific name if no common names/mnemonic)
 
 - 
getScientificNamepublic String getScientificName() Getter for the field scientificName.- Specified by:
- getScientificNamein interface- Organism
- Returns:
- a Stringobject.
 
 - 
setScientificNamepublic void setScientificName(String name) Set the scientific name- Specified by:
- setScientificNamein interface- Organism
- Parameters:
- name- : scientific name
 
 - 
getTaxIdpublic int getTaxId() Getter for the field taxId.
 - 
setTaxIdpublic 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)
 - 
getAliasespublic Collection<Alias> getAliases() Getter for the field aliases.- Specified by:
- getAliasesin interface- Organism
- Returns:
- a Collectionobject.
 
 - 
getCellTypepublic CvTerm getCellType() Getter for the field cellType.- Specified by:
- getCellTypein interface- Organism
- Returns:
- a CvTermobject.
 
 - 
setCellTypepublic void setCellType(CvTerm cellType) Sets the cell type- Specified by:
- setCellTypein interface- Organism
- Parameters:
- cellType- : cell type
 
 - 
getCompartmentpublic CvTerm getCompartment() Getter for the field compartment.- Specified by:
- getCompartmentin interface- Organism
- Returns:
- a CvTermobject.
 
 - 
setCompartmentpublic void setCompartment(CvTerm compartment) Sets the compartment.- Specified by:
- setCompartmentin interface- Organism
- Parameters:
- compartment- : the compartment
 
 - 
getTissuepublic CvTerm getTissue() Getter for the field tissue.
 - 
setTissuepublic void setTissue(CvTerm tissue) Sets the tissue
 
- 
 
-