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 voidclearPropertiesLinkedToAnnotations()clearPropertiesLinkedToAnnotations.StringgetPostalAddress()Getter for the fieldpostalAddress.PublicationgetPublication()getPublication.StringgetUrl()Getter for the fieldurl.protected voidinitialiseAnnotations()initialiseAnnotationsprotected voidprocessAddedAnnotationEvent(Annotation added)processAddedAnnotationEvent.protected voidprocessRemovedAnnotationEvent(Annotation removed)processRemovedAnnotationEvent.voidsetPostalAddress(String address)Set the postal addressvoidsetPublication(Publication ref)Set the bibliographical referencevoidsetUrl(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:
initialiseAnnotationsin 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:
getPostalAddressin interfaceSource- Returns:
- a
Stringobject.
-
setPostalAddress
public void setPostalAddress(String address)
Set the postal address- Specified by:
setPostalAddressin interfaceSource- Parameters:
address- : postal Address
-
getPublication
public Publication getPublication()
getPublication.
- Specified by:
getPublicationin interfaceSource- Returns:
- a
Publicationobject.
-
setPublication
public void setPublication(Publication ref)
Set the bibliographical reference- Specified by:
setPublicationin interfaceSource- Parameters:
ref- : publication reference
-
processAddedAnnotationEvent
protected void processAddedAnnotationEvent(Annotation added)
processAddedAnnotationEvent.
- Parameters:
added- aAnnotationobject.
-
processRemovedAnnotationEvent
protected void processRemovedAnnotationEvent(Annotation removed)
processRemovedAnnotationEvent.
- Parameters:
removed- aAnnotationobject.
-
clearPropertiesLinkedToAnnotations
protected void clearPropertiesLinkedToAnnotations()
clearPropertiesLinkedToAnnotations.
-
-