Interface MetadataFieldMapping<RecordType,​QueryType>

  • All Known Implementing Classes:
    AbstractMetadataFieldMapping, PubmedFieldMapping

    public interface MetadataFieldMapping<RecordType,​QueryType>
    Represents an interface for the mapping of the metadatum fields
    Author:
    Roeland Dillen (roeland at atmire dot com)
    • Method Detail

      • toDCValue

        MetadatumDTO toDCValue​(MetadataFieldConfig field,
                               String value)
        Parameters:
        field - MetadataFieldConfig representing what to map the value to
        value - The value to map to a MetadatumDTO
        Returns:
        A metadatumDTO created from the field and value
      • resultToDCValueMapping

        Collection<MetadatumDTO> resultToDCValueMapping​(RecordType record)
        Create a collection of MetadatumDTO retrieved from a given RecordType
        Parameters:
        record - Used to retrieve the MetadatumDTO
        Returns:
        Collection of MetadatumDTO