Class IdentifierImpl

  • All Implemented Interfaces:
    Serializable, Cloneable, Identifier

    public class IdentifierImpl
    extends MetadataEntity
    implements Identifier
    Value uniquely identifying an object within a namespace.
    Since:
    2.1
    Author:
    Martin Desruisseaux (IRD), Touraïvane
    See Also:
    Serialized Form
    • Constructor Detail

      • IdentifierImpl

        public IdentifierImpl()
        Construct an initially empty identifier.
      • IdentifierImpl

        public IdentifierImpl​(Identifier source)
        Constructs a metadata entity initialized with the values from the specified metadata.
        Since:
        2.4
      • IdentifierImpl

        public IdentifierImpl​(String code)
        Creates an identifier initialized to the given code.
      • IdentifierImpl

        public IdentifierImpl​(Citation authority,
                              String code)
        Creates an identifier initialized to the given authority and code.
        Since:
        2.2
    • Method Detail

      • getCode

        public String getCode()
        Alphanumeric value identifying an instance in the namespace.
        Specified by:
        getCode in interface Identifier
        Returns:
        The code.
      • setCode

        public void setCode​(String newValue)
        Set the alphanumeric value identifying an instance in the namespace.
      • getVersion

        public String getVersion()
        Identifier of the version of the associated code, as specified by the code space or code authority. This version is included only when the code uses versions. When appropriate, the edition is identified by the effective date, coded using ISO 8601 date format.
        Returns:
        The version, or null if not available.
      • setVersion

        public void setVersion​(String newValue)
        Set an identifier of the version of the associated code.
      • getAuthority

        public Citation getAuthority()
        Organization or party responsible for definition and maintenance of the code.
        Specified by:
        getAuthority in interface Identifier
        Returns:
        The authority, or null if not available.
      • setAuthority

        public void setAuthority​(Citation newValue)
        Set the organization or party responsible for definition and maintenance of the code.