Package psidev.psi.mi.jami.model.impl
Class DefaultCvTerm
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCvTerm
-
- All Implemented Interfaces:
CvTerm
- Direct Known Subclasses:
DefaultOntologyTerm
,DefaultSource
,LazyCvTerm
,MitabCvTerm
public class DefaultCvTerm extends Object implements CvTerm
Default implementation for CvTerm Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousCvTermComparator- Since:
21/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultCvTerm(String shortName)
Constructor for DefaultCvTerm.DefaultCvTerm(String shortName, String miIdentifier)
Constructor for DefaultCvTerm.DefaultCvTerm(String shortName, String fullName, String miIdentifier)
Constructor for DefaultCvTerm.DefaultCvTerm(String shortName, String fullName, Xref ontologyId)
Constructor for DefaultCvTerm.DefaultCvTerm(String shortName, Xref ontologyId)
Constructor for DefaultCvTerm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearPropertiesLinkedToIdentifiers()
clearPropertiesLinkedToIdentifiersboolean
equals(Object o)
Collection<Annotation>
getAnnotations()
Getter for the fieldannotations
.String
getFullName()
Getter for the fieldfullName
.Collection<Xref>
getIdentifiers()
Getter for the fieldidentifiers
.String
getMIIdentifier()
getMIIdentifierString
getMODIdentifier()
getMODIdentifierString
getPARIdentifier()
getPARIdentifierString
getShortName()
Getter for the fieldshortName
.Collection<Alias>
getSynonyms()
Getter for the fieldsynonyms
.Collection<Xref>
getXrefs()
Getter for the fieldxrefs
.int
hashCode()
protected void
initialiseAnnotations()
initialiseAnnotationsprotected void
initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWithprotected void
initialiseIdentifiers()
initialiseIdentifiersprotected void
initialiseIdentifiersWith(Collection<Xref> identifiers)
initialiseIdentifiersWithprotected void
initialiseSynonyms()
initialiseSynonymsprotected void
initialiseSynonymsWith(Collection<Alias> aliases)
initialiseSynonymsWithprotected void
initialiseXrefs()
initialiseXrefsprotected void
initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWithprotected void
processAddedIdentifierEvent(Xref added)
processAddedIdentifierEventprotected void
processRemovedIdentifierEvent(Xref removed)
processRemovedIdentifierEventvoid
setFullName(String name)
Set the full namevoid
setMIIdentifier(String mi)
Sets the PSI-MI identifier.void
setMODIdentifier(String mod)
Sets the PSI-MOD identifier.void
setPARIdentifier(String par)
Sets the PSI-PAR identifier.void
setShortName(String name)
Set the short nameString
toString()
-
-
-
Constructor Detail
-
DefaultCvTerm
public DefaultCvTerm(String shortName)
Constructor for DefaultCvTerm.
- Parameters:
shortName
- aString
object.
-
DefaultCvTerm
public DefaultCvTerm(String shortName, String miIdentifier)
Constructor for DefaultCvTerm.
-
DefaultCvTerm
public DefaultCvTerm(String shortName, String fullName, String miIdentifier)
Constructor for DefaultCvTerm.
-
DefaultCvTerm
public DefaultCvTerm(String shortName, Xref ontologyId)
Constructor for DefaultCvTerm.
-
-
Method Detail
-
getShortName
public String getShortName()
Getter for the field
shortName
.- Specified by:
getShortName
in interfaceCvTerm
- Returns:
- a
String
object.
-
setShortName
public void setShortName(String name)
Set the short name- Specified by:
setShortName
in interfaceCvTerm
- Parameters:
name
- : short name
-
getFullName
public String getFullName()
Getter for the field
fullName
.- Specified by:
getFullName
in interfaceCvTerm
- Returns:
- a
String
object.
-
setFullName
public void setFullName(String name)
Set the full name- Specified by:
setFullName
in interfaceCvTerm
- Parameters:
name
- : full name
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs
-
initialiseAnnotations
protected void initialiseAnnotations()
initialiseAnnotations
-
initialiseSynonyms
protected void initialiseSynonyms()
initialiseSynonyms
-
initialiseIdentifiers
protected void initialiseIdentifiers()
initialiseIdentifiers
-
initialiseXrefsWith
protected void initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWith
- Parameters:
xrefs
- aCollection
object.
-
initialiseAnnotationsWith
protected void initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWith
- Parameters:
annotations
- aCollection
object.
-
initialiseSynonymsWith
protected void initialiseSynonymsWith(Collection<Alias> aliases)
initialiseSynonymsWith
- Parameters:
aliases
- aCollection
object.
-
initialiseIdentifiersWith
protected void initialiseIdentifiersWith(Collection<Xref> identifiers)
initialiseIdentifiersWith
- Parameters:
identifiers
- aCollection
object.
-
getIdentifiers
public Collection<Xref> getIdentifiers()
Getter for the field
identifiers
.- Specified by:
getIdentifiers
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
getMIIdentifier
public String getMIIdentifier()
getMIIdentifier
- Specified by:
getMIIdentifier
in interfaceCvTerm
- Returns:
- a
String
object.
-
getMODIdentifier
public String getMODIdentifier()
getMODIdentifier
- Specified by:
getMODIdentifier
in interfaceCvTerm
- Returns:
- a
String
object.
-
getPARIdentifier
public String getPARIdentifier()
getPARIdentifier
- Specified by:
getPARIdentifier
in interfaceCvTerm
- Returns:
- a
String
object.
-
setMIIdentifier
public void setMIIdentifier(String mi)
Sets the PSI-MI identifier. It will remove the previous PSI-MI identifier from the collection of identifiers, and add the new one in the collection of identifiers with qualifier identity. If mi is null, it will remove all the psi-mi identifiers from the collection of identifiers.- Specified by:
setMIIdentifier
in interfaceCvTerm
- Parameters:
mi
- : mi identifier
-
setMODIdentifier
public void setMODIdentifier(String mod)
Sets the PSI-MOD identifier. It will remove the previous PSI-MOD identifier from the collection of xrefs, and add the new one in the collection of identifiers with qualifier identity. If mod is null, it will remove all the psi-mod identifiers from the collection of identifiers.- Specified by:
setMODIdentifier
in interfaceCvTerm
- Parameters:
mod
- : mod identifier
-
setPARIdentifier
public void setPARIdentifier(String par)
Sets the PSI-PAR identifier. It will remove the previous PSI-PAR identifier from the collection of xrefs, and add the new one in the collection of identifiers with qualifier identity. If par is null, it will remove all the psi-par identifiers from the collection of identifiers.- Specified by:
setPARIdentifier
in interfaceCvTerm
- Parameters:
par
- : par identifier
-
getXrefs
public Collection<Xref> getXrefs()
Getter for the field
xrefs
.- Specified by:
getXrefs
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
getAnnotations
public Collection<Annotation> getAnnotations()
Getter for the field
annotations
.- Specified by:
getAnnotations
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
getSynonyms
public Collection<Alias> getSynonyms()
Getter for the field
synonyms
.- Specified by:
getSynonyms
in interfaceCvTerm
- Returns:
- a
Collection
object.
-
processAddedIdentifierEvent
protected void processAddedIdentifierEvent(Xref added)
processAddedIdentifierEvent
- Parameters:
added
- aXref
object.
-
processRemovedIdentifierEvent
protected void processRemovedIdentifierEvent(Xref removed)
processRemovedIdentifierEvent
- Parameters:
removed
- aXref
object.
-
clearPropertiesLinkedToIdentifiers
protected void clearPropertiesLinkedToIdentifiers()
clearPropertiesLinkedToIdentifiers
-
-