Package psidev.psi.mi.jami.bridges.ols
Class LazySource
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultCvTerm
-
- psidev.psi.mi.jami.bridges.ols.LazyCvTerm
-
- psidev.psi.mi.jami.bridges.ols.LazySource
-
public class LazySource extends LazyCvTerm implements Source
A lazy cvTerm which will only fetch metadata when required.- Since:
- 14/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description LazySource(uk.ac.ebi.pride.utilities.ols.web.service.client.OLSClient olsClient, String fullName, Xref identityRef, String ontologyName)
Constructor for LazySource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearPropertiesLinkedToAnnotations()
clearPropertiesLinkedToAnnotations.String
getPostalAddress()
Getter for the fieldpostalAddress
.Publication
getPublication()
getPublication.String
getUrl()
Getter for the fieldurl
.protected void
initialiseAnnotations()
initialiseAnnotationsprotected void
processAddedAnnotationEvent(Annotation added)
processAddedAnnotationEvent.protected void
processRemovedAnnotationEvent(Annotation removed)
processRemovedAnnotationEvent.void
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.bridges.ols.LazyCvTerm
getAnnotations, getOlsClient, getOntologyName, getOriginalXref, getShortName, getSynonyms, getXrefs, hasLoadedMetadata, hasLoadedXrefs, initialiseDefinition, initialiseMetaData, setShortName, toString
-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultCvTerm
clearPropertiesLinkedToIdentifiers, equals, getFullName, getIdentifiers, getMIIdentifier, getMODIdentifier, getPARIdentifier, hashCode, initialiseAnnotationsWith, initialiseIdentifiers, initialiseIdentifiersWith, initialiseSynonyms, initialiseSynonymsWith, initialiseXrefs, initialiseXrefsWith, processAddedIdentifierEvent, processRemovedIdentifierEvent, setFullName, setMIIdentifier, setMODIdentifier, setPARIdentifier
-
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
-
-
-
-
Field Detail
-
log
protected final Logger log
-
-
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.
-
-