Class IdentifierRest

    • Constructor Detail

      • IdentifierRest

        public IdentifierRest()
      • IdentifierRest

        public IdentifierRest​(String value,
                              String identifierType,
                              String identifierStatus)
        Constructor that takes a value, type and status for an identifier
        Parameters:
        value - the identifier value eg. https://doi.org/123/234
        identifierType - identifier type eg. doi
        identifierStatus - identifier status eg. TO_BE_REGISTERED
    • Method Detail

      • getType

        public String getType()
        Return name for getType() - this is the section name and not the type of identifier, see: identifierType string
        Specified by:
        getType in interface RestModel
        Returns:
      • getValue

        public String getValue()
        Get the identifier value eg full DOI URL
        Returns:
        identifier value eg. https://doi.org/123/234
      • setValue

        public void setValue​(String value)
        Set the identifier value
        Parameters:
        value - identifier value, eg. https://doi.org/123/234
      • getIdentifierType

        public String getIdentifierType()
        Get type of identifier eg 'doi' or 'handle'
        Returns:
        type string
      • setIdentifierType

        public void setIdentifierType​(String identifierType)
        Set type of identifier
        Parameters:
        identifierType - type string eg 'doi'
      • getIdentifierStatus

        public String getIdentifierStatus()
        Get status of identifier, if relevant
        Returns:
        identifierStatus eg. null or TO_BE_REGISTERED
      • setIdentifierStatus

        public void setIdentifierStatus​(String identifierStatus)
        Set status of identifier, if relevant
        Parameters:
        identifierStatus - eg. null or TO_BE_REGISTERED