Class OrcidValidatorImpl

    • Constructor Detail

    • Method Detail

      • validate

        public List<OrcidValidationError> validate​(Object object)
        Description copied from interface: OrcidValidator
        Validate the given orcid object and returns the validation errors, if any.
        Specified by:
        validate in interface OrcidValidator
        Parameters:
        object - the ORCID object to validate
        Returns:
        the validation errors, if any
      • validateWork

        public List<OrcidValidationError> validateWork​(org.orcid.jaxb.model.v3.release.record.Work work)
        A work is valid if has title, type, a valid publication date and at least one external id.
        Specified by:
        validateWork in interface OrcidValidator
        Parameters:
        work - the work to validate
        Returns:
        the validation errors, if any
      • validateFunding

        public List<OrcidValidationError> validateFunding​(org.orcid.jaxb.model.v3.release.record.Funding funding)
        A funding is valid if has title, a valid funder organization and at least one external id. If it has an amount, the amount currency is required.
        Specified by:
        validateFunding in interface OrcidValidator
        Parameters:
        funding - the funding to validate
        Returns:
        the validation errors, if any