Interface OrcidCommonObjectFactory

All Known Implementing Classes:
OrcidCommonObjectFactoryImpl

public interface OrcidCommonObjectFactory
Interface for factory classes that creates common ORCID objects.
Author:
Luca Giamminonni (luca.giamminonni at 4science.it)
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.orcid.jaxb.model.v3.release.common.Contributor>
    createContributor(Context context, MetadataValue metadataValue, org.orcid.jaxb.model.common.ContributorRole role)
    Creates an instance of Contributor from the given metadata value.
    Optional<org.orcid.jaxb.model.v3.release.common.Country>
    createCountry(Context context, MetadataValue metadataValue)
    Creates an instance of Country from the given metadata value.
    Optional<org.orcid.jaxb.model.v3.release.record.FundingContributor>
    createFundingContributor(Context context, MetadataValue metadataValue, org.orcid.jaxb.model.common.FundingContributorRole role)
    Creates an instance of FundingContributor from the given metadata value.
    Optional<org.orcid.jaxb.model.v3.release.common.FuzzyDate>
    Creates an instance of FuzzyDate if the given metadata value represent a date with a supported format.
    Optional<org.orcid.jaxb.model.v3.release.common.Organization>
    createOrganization(Context context, Item orgUnit)
    Creates an instance of Organization from the given orgUnit item.
    Optional<org.orcid.jaxb.model.v3.release.common.Url>
    createUrl(Context context, Item item)
    Creates an instance of Url from the given item.
  • Method Details

    • createFuzzyDate

      Optional<org.orcid.jaxb.model.v3.release.common.FuzzyDate> createFuzzyDate(MetadataValue metadataValue)
      Creates an instance of FuzzyDate if the given metadata value represent a date with a supported format.
      Parameters:
      metadataValue - the metadata value
      Returns:
      the FuzzyDate instance, if any
    • createOrganization

      Optional<org.orcid.jaxb.model.v3.release.common.Organization> createOrganization(Context context, Item orgUnit)
      Creates an instance of Organization from the given orgUnit item.
      Parameters:
      context - the DSpace context
      orgUnit - the orgUnit item
      Returns:
      the created Organization's instance, if any
    • createContributor

      Optional<org.orcid.jaxb.model.v3.release.common.Contributor> createContributor(Context context, MetadataValue metadataValue, org.orcid.jaxb.model.common.ContributorRole role)
      Creates an instance of Contributor from the given metadata value.
      Parameters:
      context - the DSpace context
      metadataValue - the metadata value
      role - the contributor role
      Returns:
      the created Contributor instance, if any
    • createFundingContributor

      Optional<org.orcid.jaxb.model.v3.release.record.FundingContributor> createFundingContributor(Context context, MetadataValue metadataValue, org.orcid.jaxb.model.common.FundingContributorRole role)
      Creates an instance of FundingContributor from the given metadata value.
      Parameters:
      context - the DSpace context
      metadataValue - the metadata value
      role - the contributor role
      Returns:
      the created FundingContributor instance, if any
    • createUrl

      Optional<org.orcid.jaxb.model.v3.release.common.Url> createUrl(Context context, Item item)
      Creates an instance of Url from the given item.
      Parameters:
      context - the DSpace context
      item - the item
      Returns:
      the created Url instance, if any
    • createCountry

      Optional<org.orcid.jaxb.model.v3.release.common.Country> createCountry(Context context, MetadataValue metadataValue) throws OrcidValidationException
      Creates an instance of Country from the given metadata value.
      Parameters:
      context - the DSpace context
      metadataValue - the metadata value
      Returns:
      the created Country instance, if any
      Throws:
      OrcidValidationException - if the given metadata value is not a valid ISO 3611 country