Class DefaultProtein

  • All Implemented Interfaces:
    Interactor, Molecule, Polymer, Protein
    Direct Known Subclasses:
    CsvProtein, MitabProtein, XmlProtein, XmlProtein, XmlProtein

    public class DefaultProtein
    extends DefaultPolymer
    implements Protein
    Default implementation for proteins and peptides Notes: The equals and hashcode methods have NOT been overridden because the Protein object is a complex object. To compare Protein objects, you can use some comparators provided by default: - DefaultProteinComparator - UnambiguousProteinComparator - DefaultExactProteinComparator - UnambiguousExactProteinComparator - AvbstractProteinComparator
    Since:
    01/02/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultProtein

        public DefaultProtein​(String name,
                              CvTerm type)

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

        public DefaultProtein​(String name)

        Constructor for DefaultProtein.

        Parameters:
        name - a String object.
      • DefaultProtein

        public DefaultProtein​(String name,
                              String fullName)

        Constructor for DefaultProtein.

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

        public DefaultProtein​(String name,
                              Organism organism)

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

        public DefaultProtein​(String name,
                              Xref uniqueId)

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

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

        Constructor for DefaultProtein.

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

      • setUniprotkb

        public void setUniprotkb​(String ac)
        Sets the uniprot accession for this protein. It will remove the old uniprotkb identifier from the collection of identifiers and replace it with the new uniprokb identifier. If the new uniprotkb identifier is null, all the existing uniprotkb identifiers will be removed from the collection of identifiers
        Specified by:
        setUniprotkb in interface Protein
        Parameters:
        ac - : the uniprot accession
      • getRefseq

        public String getRefseq()

        Getter for the field refseq.

        Specified by:
        getRefseq in interface Protein
        Returns:
        a String object.
      • setRefseq

        public void setRefseq​(String ac)
        Sets the unique refseq identifier for this protein. 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 Protein
        Parameters:
        ac - : refseq identifier
      • setGeneName

        public void setGeneName​(String name)
        Sets the gene name. It will remove the old gene name from the collection of aliases and replace it with the new gene name. If the new gene name is null, all the existing gene names will be removed from the collection of aliases
        Specified by:
        setGeneName in interface Protein
        Parameters:
        name - : gene name
      • getRogid

        public String getRogid()

        Getter for the field rogid.

        Specified by:
        getRogid in interface Protein
        Returns:
        a String object.
      • setRogid

        public void setRogid​(String rogid)
        Sets the rogid. It will remove the old rogid from the collection of checksums and replace it with the new rogid. If the new rogid is null, all the existing rogid will be removed from the collection of checksums
        Specified by:
        setRogid in interface Protein
        Parameters:
        rogid - : rogid
      • processAddedAliasEvent

        protected void processAddedAliasEvent​(Alias added)

        processAddedAliasEvent

        Parameters:
        added - a Alias object.
      • processRemovedAliasEvent

        protected void processRemovedAliasEvent​(Alias removed)

        processRemovedAliasEvent

        Parameters:
        removed - a Alias object.
      • clearPropertiesLinkedToAliases

        protected void clearPropertiesLinkedToAliases()

        clearPropertiesLinkedToAliases

      • processAddedChecksumEvent

        protected void processAddedChecksumEvent​(Checksum added)

        processAddedChecksumEvent

        Parameters:
        added - a Checksum object.
      • processRemovedChecksumEvent

        protected void processRemovedChecksumEvent​(Checksum removed)

        processRemovedChecksumEvent

        Parameters:
        removed - a Checksum object.
      • clearPropertiesLinkedToChecksums

        protected void clearPropertiesLinkedToChecksums()

        clearPropertiesLinkedToChecksums

      • processAddedIdentifierEvent

        protected void processAddedIdentifierEvent​(Xref added)

        processAddedIdentifierEvent

        Parameters:
        added - a Xref object.
      • processRemovedIdentifierEvent

        protected void processRemovedIdentifierEvent​(Xref removed)

        processRemovedIdentifierEvent

        Parameters:
        removed - a Xref object.
      • clearPropertiesLinkedToIdentifiers

        protected void clearPropertiesLinkedToIdentifiers()

        clearPropertiesLinkedToIdentifiers

      • setInteractorType

        public void setInteractorType​(CvTerm interactorType)
        Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329) Sets the interactor type of this polymer. If the given interactorType is null, it sets the interactorType to 'biopolymer'(MI:0383) Sets the interactor type of this protein. If the given interactorType is null, it will set the interactor type to 'protein' (MI:0326)
        Specified by:
        setInteractorType in interface Interactor
        Overrides:
        setInteractorType in class DefaultPolymer
        Parameters:
        interactorType - : molecule type