Class PubmedLanguageMetadatumContributor<T>
java.lang.Object
org.dspace.importer.external.pubmed.metadatamapping.contributor.PubmedLanguageMetadatumContributor<T>
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionInitialize 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
Modifier and TypeMethodDescriptionImplementations have the responsibility to process/map their own type of metadata based on a given record and return a collection of the generalised MetadatumDTO objectsgetField()Return the MetadataFieldConfig used while retrieving MetadatumDTOReturn 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 Details
-
PubmedLanguageMetadatumContributor
public PubmedLanguageMetadatumContributor()Initialize PubmedLanguageMetadatumContributor and create the iso3toiso2 mapping used in the transforming of language codes -
PubmedLanguageMetadatumContributor
Initialize the PubmedLanguageMetadatumContributor class using aMetadataFieldConfigand a language -MetadataContributor- Parameters:
field-MetadataFieldConfigused in mappinglanguage- 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:
setMetadataFieldMappingin interfaceMetadataContributor<T>- Parameters:
metadataFieldMapping- the new mapping.
-
contributeMetadata
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
Return the MetadataContributor used while retrieving MetadatumDTO- Returns:
- MetadataContributor
-
setLanguage
Setting the MetadataContributor- Parameters:
language- MetadataContributor used while retrieving MetadatumDTO
-
getField
Return the MetadataFieldConfig used while retrieving MetadatumDTO- Returns:
- MetadataFieldConfig
-
setField
Setting the MetadataFieldConfig- Parameters:
field- MetadataFieldConfig used while retrieving MetadatumDTO
-