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 ofMetadataContributorResponsible for generating a set of Language metadata from the retrieved document.- Author:
- Philip Vissenaekens (philip at atmire dot com)
-
-
Constructor Summary
Constructors Constructor Description PubmedLanguageMetadatumContributor()Initialize PubmedLanguageMetadatumContributor and create the iso3toiso2 mapping used in the transforming of language codesPubmedLanguageMetadatumContributor(MetadataFieldConfig field, MetadataContributor language)Initialize the PubmedLanguageMetadatumContributor class using aMetadataFieldConfigand a language -MetadataContributor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<MetadatumDTO>contributeMetadata(T t)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 objectsMetadataFieldConfiggetField()Return the MetadataFieldConfig used while retrieving MetadatumDTOMetadataContributorgetLanguage()Return the MetadataContributor used while retrieving MetadatumDTOvoidsetField(MetadataFieldConfig field)Setting the MetadataFieldConfigvoidsetLanguage(MetadataContributor language)Setting the MetadataContributorvoidsetMetadataFieldMapping(MetadataFieldMapping<T,MetadataContributor<T>> metadataFieldMapping)Set the metadatafieldMapping used in the transforming of a record to actual metadata
-
-
-
Constructor Detail
-
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 aMetadataFieldConfigand a language -MetadataContributor- Parameters:
field-MetadataFieldConfigused in mappinglanguage- the language.
-
-
Method Detail
-
setMetadataFieldMapping
public void setMetadataFieldMapping(MetadataFieldMapping<T,MetadataContributor<T>> metadataFieldMapping)
Set the metadatafieldMapping used in the transforming of a record to actual metadata- Specified by:
setMetadataFieldMappingin interfaceMetadataContributor<T>- Parameters:
metadataFieldMapping- the new mapping.
-
contributeMetadata
public Collection<MetadatumDTO> contributeMetadata(T t)
Description copied from interface:MetadataContributorImplementations 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:
contributeMetadatain interfaceMetadataContributor<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
-
-