Class XmlOrganism

    • 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 - a String object.
      • XmlOrganism

        public XmlOrganism​(int taxId,
                           String commonName,
                           String scientificName)

        Constructor for XmlOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
        scientificName - a String object.
      • XmlOrganism

        public XmlOrganism​(int taxId,
                           CvTerm cellType,
                           CvTerm tissue,
                           CvTerm compartment)

        Constructor for XmlOrganism.

        Parameters:
        taxId - a int.
        cellType - a CvTerm object.
        tissue - a CvTerm object.
        compartment - a CvTerm object.
      • XmlOrganism

        public XmlOrganism​(int taxId,
                           String commonName,
                           CvTerm cellType,
                           CvTerm tissue,
                           CvTerm compartment)

        Constructor for XmlOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
        cellType - a CvTerm object.
        tissue - a CvTerm object.
        compartment - a CvTerm object.
      • XmlOrganism

        public XmlOrganism​(int taxId,
                           String commonName,
                           String scientificName,
                           CvTerm cellType,
                           CvTerm tissue,
                           CvTerm compartment)

        Constructor for XmlOrganism.

        Parameters:
        taxId - a int.
        commonName - a String object.
        scientificName - a String object.
        cellType - a CvTerm object.
        tissue - a CvTerm object.
        compartment - a CvTerm object.
    • Method Detail

      • setCellType

        public void setCellType​(CvTerm cellType)
        Sets the cell type
        Specified by:
        setCellType in interface Organism
        Parameters:
        cellType - : cell type
      • setCompartment

        public void setCompartment​(CvTerm compartment)
        Sets the compartment.
        Specified by:
        setCompartment in interface Organism
        Parameters:
        compartment - : the compartment
      • setTissue

        public void setTissue​(CvTerm tissue)
        Sets the tissue
        Specified by:
        setTissue in interface Organism
        Parameters:
        tissue - : tissue
      • getTaxId

        public int getTaxId()

        Getter for the field taxId.

        Specified by:
        getTaxId in interface Organism
        Returns:
        a int.
      • 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)
        Specified by:
        setTaxId in interface Organism
        Parameters:
        id - a int.
      • setCommonName

        public void setCommonName​(String name)
        Set the common name
        Specified by:
        setCommonName in interface Organism
        Parameters:
        name - : common name or mnemonic (or scientific name if no common names/mnemonic)
      • setScientificName

        public void setScientificName​(String name)
        Set the scientific name
        Specified by:
        setScientificName in interface Organism
        Parameters:
        name - : scientific name
      • setJAXBNames

        public void setJAXBNames​(NamesContainer value)
        Sets the value of the names property.
        Parameters:
        value - allowed object is NamesContainer
      • setJAXBCellType

        public void setJAXBCellType​(XmlOpenCvTerm cellType)

        setJAXBCellType.

        Parameters:
        cellType - a XmlOpenCvTerm object.
      • setJAXBCompartment

        public void setJAXBCompartment​(XmlOpenCvTerm compartment)

        setJAXBCompartment.

        Parameters:
        compartment - a XmlOpenCvTerm object.
      • setJAXBTaxId

        public void setJAXBTaxId​(int id)

        setJAXBTaxId.

        Parameters:
        id - a int.
      • sourceLocation

        public Locator sourceLocation()
        Specified by:
        sourceLocation in interface com.sun.xml.bind.Locatable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()

        toString

        Specified by:
        toString in interface FileSourceContext
        Overrides:
        toString in class Object
        Returns:
        the file source context as a String. If the source locator is not null, it should give the source locator properties