Class DefaultProtein
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultInteractor
-
- psidev.psi.mi.jami.model.impl.DefaultMolecule
-
- psidev.psi.mi.jami.model.impl.DefaultPolymer
-
- psidev.psi.mi.jami.model.impl.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)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.Polymer
POLYMER, POLYMER_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.Protein
PEPTIDE, PEPTIDE_MI, PROTEIN, PROTEIN_MI
-
-
Constructor Summary
Constructors Constructor Description DefaultProtein(String name)Constructor for DefaultProtein.DefaultProtein(String name, String fullName)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, CvTerm type)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, CvTerm type, Organism organism)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, CvTerm type, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, Organism organism)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, Organism organism, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, String fullName, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, CvTerm type)Constructor for DefaultProtein.DefaultProtein(String name, CvTerm type, Organism organism)Constructor for DefaultProtein.DefaultProtein(String name, CvTerm type, Organism organism, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, CvTerm type, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, Organism organism)Constructor for DefaultProtein.DefaultProtein(String name, Organism organism, Xref uniqueId)Constructor for DefaultProtein.DefaultProtein(String name, Xref uniqueId)Constructor for DefaultProtein.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearPropertiesLinkedToAliases()clearPropertiesLinkedToAliasesprotected voidclearPropertiesLinkedToChecksums()clearPropertiesLinkedToChecksumsprotected voidclearPropertiesLinkedToIdentifiers()clearPropertiesLinkedToIdentifiersStringgetGeneName()Getter for the fieldgeneName.XrefgetPreferredIdentifier()getPreferredIdentifierStringgetPreferredName()The preferred name is the name by which we want to refer the interactor on our web site.StringgetRefseq()Getter for the fieldrefseq.StringgetRogid()Getter for the fieldrogid.StringgetUniprotkb()Getter for the fielduniprotkb.protected voidinitialiseAliases()initialiseAliasesprotected voidinitialiseChecksums()initialiseChecksumsprotected voidinitialiseIdentifiers()initialiseIdentifiersprotected voidprocessAddedAliasEvent(Alias added)processAddedAliasEventprotected voidprocessAddedChecksumEvent(Checksum added)processAddedChecksumEventprotected voidprocessAddedIdentifierEvent(Xref added)processAddedIdentifierEventprotected voidprocessRemovedAliasEvent(Alias removed)processRemovedAliasEventprotected voidprocessRemovedChecksumEvent(Checksum removed)processRemovedChecksumEventprotected voidprocessRemovedIdentifierEvent(Xref removed)processRemovedIdentifierEventvoidsetGeneName(String name)Sets the gene name.voidsetInteractorType(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)voidsetRefseq(String ac)Sets the unique refseq identifier for this protein.voidsetRogid(String rogid)Sets the rogid.voidsetUniprotkb(String ac)Sets the uniprot accession for this protein.StringtoString()-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultPolymer
getSequence, setSequence
-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultInteractor
getAliases, getAnnotations, getChecksums, getFullName, getIdentifiers, getInteractorType, getOrganism, getShortName, getXrefs, initialiseAliasesWith, initialiseAnnotations, initialiseAnnotationsWith, initialiseChecksumsWith, initialiseIdentifiersWith, initialiseXrefs, initialiseXrefsWith, setFullName, setOrganism, setShortName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.model.Interactor
getAliases, getAnnotations, getChecksums, getFullName, getIdentifiers, getInteractorType, getOrganism, getShortName, getXrefs, setFullName, setOrganism, setShortName
-
Methods inherited from interface psidev.psi.mi.jami.model.Polymer
getSequence, setSequence
-
-
-
-
Constructor Detail
-
DefaultProtein
public DefaultProtein(String name, String fullName, CvTerm type)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, CvTerm type, Organism organism)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, String fullName, CvTerm type, Organism organism)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, CvTerm type, Xref uniqueId)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, String fullName, CvTerm type, Xref uniqueId)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, CvTerm type, Organism organism, Xref uniqueId)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name)
Constructor for DefaultProtein.
- Parameters:
name- aStringobject.
-
DefaultProtein
public DefaultProtein(String name, Organism organism)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, String fullName, Organism organism)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, String fullName, Xref uniqueId)
Constructor for DefaultProtein.
-
DefaultProtein
public DefaultProtein(String name, Organism organism, Xref uniqueId)
Constructor for DefaultProtein.
-
-
Method Detail
-
initialiseIdentifiers
protected void initialiseIdentifiers()
initialiseIdentifiers
- Overrides:
initialiseIdentifiersin classDefaultInteractor
-
initialiseChecksums
protected void initialiseChecksums()
initialiseChecksums
- Overrides:
initialiseChecksumsin classDefaultInteractor
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases
- Overrides:
initialiseAliasesin classDefaultInteractor
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
getPreferredIdentifier
- Specified by:
getPreferredIdentifierin interfaceInteractor- Overrides:
getPreferredIdentifierin classDefaultInteractor- Returns:
- the first identifier in the list of identifiers or null if the list is empty
-
getPreferredName
public String getPreferredName()
The preferred name is the name by which we want to refer the interactor on our web site.- Specified by:
getPreferredNamein interfaceInteractor- Overrides:
getPreferredNamein classDefaultInteractor- Returns:
- the preferred name
-
getUniprotkb
public String getUniprotkb()
Getter for the field
uniprotkb.- Specified by:
getUniprotkbin interfaceProtein- Returns:
- a
Stringobject.
-
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:
setUniprotkbin interfaceProtein- Parameters:
ac- : the uniprot accession
-
getRefseq
public String getRefseq()
Getter for the field
refseq.
-
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
-
getGeneName
public String getGeneName()
Getter for the field
geneName.- Specified by:
getGeneNamein interfaceProtein- Returns:
- a
Stringobject.
-
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:
setGeneNamein interfaceProtein- Parameters:
name- : gene name
-
getRogid
public String getRogid()
Getter for the field
rogid.
-
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
-
processAddedAliasEvent
protected void processAddedAliasEvent(Alias added)
processAddedAliasEvent
- Parameters:
added- aAliasobject.
-
processRemovedAliasEvent
protected void processRemovedAliasEvent(Alias removed)
processRemovedAliasEvent
- Parameters:
removed- aAliasobject.
-
clearPropertiesLinkedToAliases
protected void clearPropertiesLinkedToAliases()
clearPropertiesLinkedToAliases
-
processAddedChecksumEvent
protected void processAddedChecksumEvent(Checksum added)
processAddedChecksumEvent
- Parameters:
added- aChecksumobject.
-
processRemovedChecksumEvent
protected void processRemovedChecksumEvent(Checksum removed)
processRemovedChecksumEvent
- Parameters:
removed- aChecksumobject.
-
clearPropertiesLinkedToChecksums
protected void clearPropertiesLinkedToChecksums()
clearPropertiesLinkedToChecksums
-
processAddedIdentifierEvent
protected void processAddedIdentifierEvent(Xref added)
processAddedIdentifierEvent
- Parameters:
added- aXrefobject.
-
processRemovedIdentifierEvent
protected void processRemovedIdentifierEvent(Xref removed)
processRemovedIdentifierEvent
- Parameters:
removed- aXrefobject.
-
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:
setInteractorTypein interfaceInteractor- Overrides:
setInteractorTypein classDefaultPolymer- Parameters:
interactorType- : molecule type
-
toString
public String toString()
- Overrides:
toStringin classDefaultInteractor
-
-