Class PubmedLanguageMetadatumContributor<T>

  • All Implemented Interfaces:
    MetadataContributor<T>

    public class PubmedLanguageMetadatumContributor<T>
    extends Object
    implements MetadataContributor<T>
    Pubmed specific implementation of MetadataContributor Responsible for generating a set of Language metadata from the retrieved document.
    Author:
    Philip Vissenaekens (philip at atmire dot com)
    • Constructor Detail

      • PubmedLanguageMetadatumContributor

        public PubmedLanguageMetadatumContributor()
        Initialize PubmedLanguageMetadatumContributor and create the iso3toiso2 mapping used in the transforming of language codes
    • Method Detail

      • contributeMetadata

        public Collection<MetadatumDTO> contributeMetadata​(T t)
        Description copied from interface: MetadataContributor
        Implementations have the responsibility to process/map their own type of metadata based on a given record and return a collection of the generalised MetadatumDTO objects
        Specified by:
        contributeMetadata in interface MetadataContributor<T>
        Parameters:
        t - A class to retrieve metadata from.
        Returns:
        a collection of import records. Only the identifier of the found records may be put in the record.
      • getLanguage

        public MetadataContributor getLanguage()
        Return the MetadataContributor used while retrieving MetadatumDTO
        Returns:
        MetadataContributor
      • setLanguage

        public void setLanguage​(MetadataContributor language)
        Setting the MetadataContributor
        Parameters:
        language - MetadataContributor used while retrieving MetadatumDTO
      • getField

        public MetadataFieldConfig getField()
        Return the MetadataFieldConfig used while retrieving MetadatumDTO
        Returns:
        MetadataFieldConfig
      • setField

        public void setField​(MetadataFieldConfig field)
        Setting the MetadataFieldConfig
        Parameters:
        field - MetadataFieldConfig used while retrieving MetadatumDTO