Class PubmedLanguageMetadatumContributor<T>

java.lang.Object
org.dspace.importer.external.pubmed.metadatamapping.contributor.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 Details

    • PubmedLanguageMetadatumContributor

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

      public PubmedLanguageMetadatumContributor(MetadataFieldConfig field, MetadataContributor language)
      Initialize the PubmedLanguageMetadatumContributor class using a MetadataFieldConfig and a language -MetadataContributor
      Parameters:
      field - MetadataFieldConfig used in mapping
      language - the language.
  • Method Details

    • setMetadataFieldMapping

      public void setMetadataFieldMapping(MetadataFieldMapping<T,MetadataContributor<T>> metadataFieldMapping)
      Set the metadatafieldMapping used in the transforming of a record to actual metadata
      Specified by:
      setMetadataFieldMapping in interface MetadataContributor<T>
      Parameters:
      metadataFieldMapping - the new mapping.
    • 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