Class Identifier


  • public class Identifier
    extends Object
    Identifier (Authority)
    Author:
    osbornb
    • Constructor Detail

      • Identifier

        public Identifier()
        Constructor
      • Identifier

        public Identifier​(String name,
                          String uniqueIdentifier)
        Constructor
        Parameters:
        name - authority name
        uniqueIdentifier - authority unique identifier
    • Method Detail

      • getName

        public String getName()
        Get the authority name
        Returns:
        authority name
      • setName

        public void setName​(String name)
        Set the authority name
        Parameters:
        name - authority name
      • getUniqueIdentifier

        public String getUniqueIdentifier()
        Get the authority unique identifier
        Returns:
        authority unique identifier
      • setUniqueIdentifier

        public void setUniqueIdentifier​(String uniqueIdentifier)
        Set the authority unique identifier
        Parameters:
        uniqueIdentifier - authority unique identifier
      • getNameAndUniqueIdentifier

        public String getNameAndUniqueIdentifier()
        Get the name and unique identifier separated by a colon
        Returns:
        name and unique identifier
      • getNameAndUniqueIdentifier

        public String getNameAndUniqueIdentifier​(String delimiter)
        Get the name and unique identifier separated by the delimiter
        Parameters:
        delimiter - delimiter
        Returns:
        name and unique identifier
      • getVersion

        public String getVersion()
        Get the version
        Returns:
        version
      • hasVersion

        public boolean hasVersion()
        Has a version
        Returns:
        true if has version
      • setVersion

        public void setVersion​(String version)
        Set the version
        Parameters:
        version - version
      • getCitation

        public String getCitation()
        Get the authority citation
        Returns:
        authority citation
      • hasCitation

        public boolean hasCitation()
        Has an authority citation
        Returns:
        true if has authority citation
      • setCitation

        public void setCitation​(String citation)
        Set the authority citation
        Parameters:
        citation - authority citation
      • getUri

        public String getUri()
        Get the id uri
        Returns:
        id uri
      • hasUri

        public boolean hasUri()
        Has an id uri
        Returns:
        true if has id uri
      • setUri

        public void setUri​(String uri)
        Set the id uri
        Parameters:
        uri - id uri
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object