Class LazySource

  • All Implemented Interfaces:
    CvTerm, Source

    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)
    • Field Detail

      • log

        protected final Logger log
    • Constructor Detail

      • LazySource

        public LazySource​(uk.ac.ebi.pride.utilities.ols.web.service.client.OLSClient olsClient,
                          String fullName,
                          Xref identityRef,
                          String ontologyName)

        Constructor for LazySource.

        Parameters:
        olsClient - a OLSClient object.
        fullName - a String object.
        identityRef - a Xref object.
        ontologyName - a String object.
    • Method Detail

      • getUrl

        public String getUrl()

        Getter for the field url.

        Specified by:
        getUrl in interface Source
        Returns:
        a String object.
      • setUrl

        public void setUrl​(String url)
        Set the URL
        Specified by:
        setUrl in interface Source
        Parameters:
        url - : URL
      • setPostalAddress

        public void setPostalAddress​(String address)
        Set the postal address
        Specified by:
        setPostalAddress in interface Source
        Parameters:
        address - : postal Address
      • setPublication

        public void setPublication​(Publication ref)
        Set the bibliographical reference
        Specified by:
        setPublication in interface Source
        Parameters:
        ref - : publication reference
      • processAddedAnnotationEvent

        protected void processAddedAnnotationEvent​(Annotation added)

        processAddedAnnotationEvent.

        Parameters:
        added - a Annotation object.
      • processRemovedAnnotationEvent

        protected void processRemovedAnnotationEvent​(Annotation removed)

        processRemovedAnnotationEvent.

        Parameters:
        removed - a Annotation object.
      • clearPropertiesLinkedToAnnotations

        protected void clearPropertiesLinkedToAnnotations()

        clearPropertiesLinkedToAnnotations.