Class DefaultNucleicAcid

  • All Implemented Interfaces:
    Interactor, Molecule, NucleicAcid, Polymer
    Direct Known Subclasses:
    MitabNucleicAcid, XmlNucleicAcid, XmlNucleicAcid, XmlNucleicAcid

    public class DefaultNucleicAcid
    extends DefaultPolymer
    implements NucleicAcid
    Default implementation for NucleicAcid.

    Notes: The equals and hashcode methods have NOT been overridden because the NucleicAcid object is a complex object. To compare NucleicAcid objects, you can use some comparators provided by default: - DefaultNucleicAcidComparator - UnambiguousNucleicAcidComparator - DefaultExactNucleicAcidComparator - UnambiguousExactNucleicAcidComparator - NucleicAcidComparator

    Since:
    01/02/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  CvTerm type)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        type - a CvTerm object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  CvTerm type)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  CvTerm type,
                                  Organism organism)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        type - a CvTerm object.
        organism - a Organism object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  CvTerm type,
                                  Organism organism)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
        organism - a Organism object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  CvTerm type,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        type - a CvTerm object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  CvTerm type,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  CvTerm type,
                                  Organism organism,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        type - a CvTerm object.
        organism - a Organism object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  CvTerm type,
                                  Organism organism,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        type - a CvTerm object.
        organism - a Organism object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  Organism organism)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        organism - a Organism object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  Organism organism)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        organism - a Organism object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  Organism organism,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        organism - a Organism object.
        uniqueId - a Xref object.
      • DefaultNucleicAcid

        public DefaultNucleicAcid​(String name,
                                  String fullName,
                                  Organism organism,
                                  Xref uniqueId)

        Constructor for DefaultNucleicAcid.

        Parameters:
        name - a String object.
        fullName - a String object.
        organism - a Organism object.
        uniqueId - a Xref object.
    • Method Detail

      • setDdbjEmblGenbank

        public void setDdbjEmblGenbank​(String id)
        Sets the DDBJ/EMBL/GemBank identifier. It will remove the old DDBJ/EMBL/GemBank identifier from the collection of identifiers and replace it with the new DDBJ/EMBL/GemBank identifier. If the new DDBJ/EMBL/GemBank identifier is null, all the existing DDBJ/EMBL/GemBank identifiers will be removed from the collection of identifiers
        Specified by:
        setDdbjEmblGenbank in interface NucleicAcid
        Parameters:
        id - : DDBJ/EMBL/GemBank identifier
      • setRefseq

        public void setRefseq​(String id)
        Sets the Refseq identifier. It will remove the old refseq identifier from the collection of identifiers and replace it with the new refseq identifier. If the new refseq identifier is null, all the existing refseq identifiers will be removed from the collection of identifiers
        Specified by:
        setRefseq in interface NucleicAcid
        Parameters:
        id - : Refseq identifier
      • processAddedIdentifiersEvent

        protected void processAddedIdentifiersEvent​(Xref added)

        processAddedIdentifiersEvent

        Parameters:
        added - a Xref object.
      • processRemovedIdentifierEvent

        protected void processRemovedIdentifierEvent​(Xref removed)

        processRemovedIdentifierEvent

        Parameters:
        removed - a Xref object.
      • clearPropertiesLinkedToIdentifiers

        protected void clearPropertiesLinkedToIdentifiers()
      • setInteractorType

        public void setInteractorType​(CvTerm interactorType)
        Sets the interactor type of this NucleicAcid. If the interactor type is null, it will set the interactor type to nucleic acid (MI:0318)
        Specified by:
        setInteractorType in interface Interactor
        Overrides:
        setInteractorType in class DefaultPolymer
        Parameters:
        interactorType - : molecule type