Class DefaultSource

  • All Implemented Interfaces:
    CvTerm, Source
    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 Detail

      • DefaultSource

        public DefaultSource​(String shortName)

        Constructor for DefaultSource.

        Parameters:
        shortName - a String object.
      • DefaultSource

        public DefaultSource​(String shortName,
                             Xref ontologyId)

        Constructor for DefaultSource.

        Parameters:
        shortName - a String object.
        ontologyId - a Xref object.
      • DefaultSource

        public DefaultSource​(String shortName,
                             String fullName,
                             Xref ontologyId)

        Constructor for DefaultSource.

        Parameters:
        shortName - a String object.
        fullName - a String object.
        ontologyId - a Xref object.
      • DefaultSource

        public DefaultSource​(String shortName,
                             String miId)

        Constructor for DefaultSource.

        Parameters:
        shortName - a String object.
        miId - a String object.
      • DefaultSource

        public DefaultSource​(String shortName,
                             String fullName,
                             String miId)

        Constructor for DefaultSource.

        Parameters:
        shortName - a String object.
        fullName - a String object.
        miId - 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