Package psidev.psi.mi.jami.model.impl
Class DefaultSource
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCvTerm
-
- psidev.psi.mi.jami.model.impl.DefaultSource
-
- Direct Known Subclasses:
MitabSource
public class DefaultSource extends DefaultCvTerm implements Source
Default implementation for Source Notes: The equals and hashcode methods have been overridden to be consistent with UnambiguousCvTermComparator- Since:
22/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultSource(String shortName)
Constructor for DefaultSource.DefaultSource(String shortName, String miId)
Constructor for DefaultSource.DefaultSource(String shortName, String fullName, String miId)
Constructor for DefaultSource.DefaultSource(String shortName, String fullName, String miId, String url, String address, Publication bibRef)
Constructor for DefaultSource.DefaultSource(String shortName, String miId, String url, String address, Publication bibRef)
Constructor for DefaultSource.DefaultSource(String shortName, String url, String address, Publication bibRef)
Constructor for DefaultSource.DefaultSource(String shortName, String fullName, Xref ontologyId)
Constructor for DefaultSource.DefaultSource(String shortName, String fullName, Xref ontologyId, String url, String address, Publication bibRef)
Constructor for DefaultSource.DefaultSource(String shortName, Xref ontologyId)
Constructor for DefaultSource.DefaultSource(String shortName, Xref ontologyId, String url, String address, Publication bibRef)
Constructor for DefaultSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearPropertiesLinkedToAnnotations()
clearPropertiesLinkedToAnnotationsString
getPostalAddress()
Getter for the fieldpostalAddress
.Publication
getPublication()
getPublicationString
getUrl()
Getter for the fieldurl
.protected void
initialiseAnnotations()
initialiseAnnotationsprotected void
processAddedAnnotationEvent(Annotation added)
processAddedAnnotationEventprotected void
processRemovedAnnotationEvent(Annotation removed)
processRemovedAnnotationEventvoid
setPostalAddress(String address)
Set the postal addressvoid
setPublication(Publication ref)
Set the bibliographical referencevoid
setUrl(String url)
Set the URL-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultCvTerm
clearPropertiesLinkedToIdentifiers, equals, getAnnotations, getFullName, getIdentifiers, getMIIdentifier, getMODIdentifier, getPARIdentifier, getShortName, getSynonyms, getXrefs, hashCode, initialiseAnnotationsWith, initialiseIdentifiers, initialiseIdentifiersWith, initialiseSynonyms, initialiseSynonymsWith, initialiseXrefs, initialiseXrefsWith, processAddedIdentifierEvent, processRemovedIdentifierEvent, setFullName, setMIIdentifier, setMODIdentifier, setPARIdentifier, setShortName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.model.CvTerm
getAnnotations, getFullName, getIdentifiers, getMIIdentifier, getMODIdentifier, getPARIdentifier, getShortName, getSynonyms, getXrefs, setFullName, setMIIdentifier, setMODIdentifier, setPARIdentifier, setShortName
-
-
-
-
Constructor Detail
-
DefaultSource
public DefaultSource(String shortName)
Constructor for DefaultSource.
- Parameters:
shortName
- aString
object.
-
DefaultSource
public DefaultSource(String shortName, Xref ontologyId)
Constructor for DefaultSource.
-
DefaultSource
public DefaultSource(String shortName, String fullName, Xref ontologyId)
Constructor for DefaultSource.
-
DefaultSource
public DefaultSource(String shortName, String url, String address, Publication bibRef)
Constructor for DefaultSource.
- Parameters:
shortName
- aString
object.url
- aString
object.address
- aString
object.bibRef
- aPublication
object.
-
DefaultSource
public DefaultSource(String shortName, Xref ontologyId, String url, String address, Publication bibRef)
Constructor for DefaultSource.
- Parameters:
shortName
- aString
object.ontologyId
- aXref
object.url
- aString
object.address
- aString
object.bibRef
- aPublication
object.
-
DefaultSource
public DefaultSource(String shortName, String fullName, Xref ontologyId, String url, String address, Publication bibRef)
Constructor for DefaultSource.
-
DefaultSource
public DefaultSource(String shortName, String fullName, String miId)
Constructor for DefaultSource.
-
DefaultSource
public DefaultSource(String shortName, String miId, String url, String address, Publication bibRef)
Constructor for DefaultSource.
- Parameters:
shortName
- aString
object.miId
- aString
object.url
- aString
object.address
- aString
object.bibRef
- aPublication
object.
-
-
Method Detail
-
initialiseAnnotations
protected void initialiseAnnotations()
initialiseAnnotations
- Overrides:
initialiseAnnotations
in classDefaultCvTerm
-
getUrl
public String getUrl()
Getter for the field
url
.
-
setUrl
public void setUrl(String url)
Set the URL
-
getPostalAddress
public String getPostalAddress()
Getter for the field
postalAddress
.- Specified by:
getPostalAddress
in interfaceSource
- Returns:
- a
String
object.
-
setPostalAddress
public void setPostalAddress(String address)
Set the postal address- Specified by:
setPostalAddress
in interfaceSource
- Parameters:
address
- : postal Address
-
getPublication
public Publication getPublication()
getPublication
- Specified by:
getPublication
in interfaceSource
- Returns:
- a
Publication
object.
-
setPublication
public void setPublication(Publication ref)
Set the bibliographical reference- Specified by:
setPublication
in interfaceSource
- Parameters:
ref
- : publication reference
-
processAddedAnnotationEvent
protected void processAddedAnnotationEvent(Annotation added)
processAddedAnnotationEvent
- Parameters:
added
- aAnnotation
object.
-
processRemovedAnnotationEvent
protected void processRemovedAnnotationEvent(Annotation removed)
processRemovedAnnotationEvent
- Parameters:
removed
- aAnnotation
object.
-
clearPropertiesLinkedToAnnotations
protected void clearPropertiesLinkedToAnnotations()
clearPropertiesLinkedToAnnotations
-
-