Class XmlOrganism
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.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 boolean
equals(Object o)
Collection<Alias>
getAliases()
getAliases.CvTerm
getCellType()
Getter for the fieldcellType
.String
getCommonName()
getCommonName.CvTerm
getCompartment()
Getter for the fieldcompartment
.String
getScientificName()
getScientificName.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.int
getTaxId()
Getter for the fieldtaxId
.CvTerm
getTissue()
Getter for the fieldtissue
.int
hashCode()
void
setCellType(CvTerm cellType)
Sets the cell typevoid
setCommonName(String name)
Set the common namevoid
setCompartment(CvTerm compartment)
Sets the compartment.void
setJAXBCellType(XmlOpenCvTerm cellType)
setJAXBCellType.void
setJAXBCompartment(XmlOpenCvTerm compartment)
setJAXBCompartment.void
setJAXBNames(NamesContainer value)
Sets the value of the names property.void
setJAXBTaxId(int id)
setJAXBTaxId.void
setJAXBTissue(XmlOpenCvTerm tissue)
setJAXBTissue.void
setScientificName(String name)
Set the scientific namevoid
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorvoid
setTaxId(int id)
Sets the taxonomy identifier of the organism.void
setTissue(CvTerm tissue)
Sets the tissueLocator
sourceLocation()
String
toString()
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
- aString
object.
-
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:
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
-
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:
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()
getScientificName.
- 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
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliases
in interfaceOrganism
- Returns:
- a
Collection
object.
-
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
- aXmlOpenCvTerm
object.
-
setJAXBCompartment
public void setJAXBCompartment(XmlOpenCvTerm compartment)
setJAXBCompartment.
- Parameters:
compartment
- aXmlOpenCvTerm
object.
-
setJAXBTissue
public void setJAXBTissue(XmlOpenCvTerm tissue)
setJAXBTissue.
- Parameters:
tissue
- aXmlOpenCvTerm
object.
-
setJAXBTaxId
public void setJAXBTaxId(int id)
setJAXBTaxId.
- Parameters:
id
- a int.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-