Class XmlOrganism
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml254.XmlOrganism
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Organism
- Direct Known Subclasses:
HostOrganism
public class XmlOrganism extends Object implements Organism, FileSourceContext, com.sun.xml.bind.Locatable
Xml implementation of an organism- Since:
22/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlOrganism()Constructor for XmlOrganism.XmlOrganism(int taxId)Constructor for XmlOrganism.XmlOrganism(int taxId, String commonName)Constructor for XmlOrganism.XmlOrganism(int taxId, String commonName, String scientificName)Constructor for XmlOrganism.XmlOrganism(int taxId, String commonName, String scientificName, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for XmlOrganism.XmlOrganism(int taxId, String commonName, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for XmlOrganism.XmlOrganism(int taxId, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for XmlOrganism.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Collection<Alias>getAliases()getAliases.CvTermgetCellType()Getter for the fieldcellType.StringgetCommonName()getCommonName.CvTermgetCompartment()Getter for the fieldcompartment.StringgetScientificName()getScientificName.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.intgetTaxId()Getter for the fieldtaxId.CvTermgetTissue()Getter for the fieldtissue.inthashCode()voidsetCellType(CvTerm cellType)Sets the cell typevoidsetCommonName(String name)Set the common namevoidsetCompartment(CvTerm compartment)Sets the compartment.voidsetJAXBCellType(XmlOpenCvTerm cellType)setJAXBCellType.voidsetJAXBCompartment(XmlOpenCvTerm compartment)setJAXBCompartment.voidsetJAXBNames(NamesContainer value)Sets the value of the names property.voidsetJAXBTaxId(int id)setJAXBTaxId.voidsetJAXBTissue(XmlOpenCvTerm tissue)setJAXBTissue.voidsetScientificName(String name)Set the scientific namevoidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetTaxId(int id)Sets the taxonomy identifier of the organism.voidsetTissue(CvTerm tissue)Sets the tissueLocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
XmlOrganism
public XmlOrganism()
Constructor for XmlOrganism.
-
XmlOrganism
public XmlOrganism(int taxId)
Constructor for XmlOrganism.
- Parameters:
taxId- a int.
-
XmlOrganism
public XmlOrganism(int taxId, String commonName)Constructor for XmlOrganism.
- Parameters:
taxId- a int.commonName- aStringobject.
-
XmlOrganism
public XmlOrganism(int taxId, String commonName, String scientificName)Constructor for XmlOrganism.
-
XmlOrganism
public XmlOrganism(int taxId, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for XmlOrganism.
-
XmlOrganism
public XmlOrganism(int taxId, String commonName, CvTerm cellType, CvTerm tissue, CvTerm compartment)Constructor for XmlOrganism.
-
-
Method Detail
-
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
-
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)
-
getCommonName
public String getCommonName()
getCommonName.
- 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()
getScientificName.
- 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
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliasesin interfaceOrganism- Returns:
- a
Collectionobject.
-
setJAXBNames
public void setJAXBNames(NamesContainer value)
Sets the value of the names property.- Parameters:
value- allowed object isNamesContainer
-
setJAXBCellType
public void setJAXBCellType(XmlOpenCvTerm cellType)
setJAXBCellType.
- Parameters:
cellType- aXmlOpenCvTermobject.
-
setJAXBCompartment
public void setJAXBCompartment(XmlOpenCvTerm compartment)
setJAXBCompartment.
- Parameters:
compartment- aXmlOpenCvTermobject.
-
setJAXBTissue
public void setJAXBTissue(XmlOpenCvTerm tissue)
setJAXBTissue.
- Parameters:
tissue- aXmlOpenCvTermobject.
-
setJAXBTaxId
public void setJAXBTaxId(int id)
setJAXBTaxId.
- Parameters:
id- a int.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-