Class ImmutableIdentifier

    • Constructor Detail

      • ImmutableIdentifier

        public ImmutableIdentifier​(ReferenceIdentifier identifier)
        Deprecated.
        Creates a new identifier from the specified one. This is a copy constructor which get the code, codespace, authority and version from the given identifier.
        Parameters:
        identifier - the identifier to copy.
        See Also:
        cast­Or­Copy(Reference­Identifier)
      • ImmutableIdentifier

        public ImmutableIdentifier​(Citation authority,
                                   String codeSpace,
                                   String code)
        Deprecated.
        Creates a new identifier from the specified code and authority.
        Parameters:
        authority - the person or party responsible for maintenance of the namespace, or null if not available.
        code­Space - identifier or namespace in which the code is valid, or null if not available. This is often an abbreviation of the authority name.
        code - alphanumeric value identifying an instance in the namespace. The code can not be null.
      • ImmutableIdentifier

        public ImmutableIdentifier​(Citation authority,
                                   String codeSpace,
                                   String code,
                                   String version,
                                   InternationalString description)
        Deprecated.
        Creates a new identifier from the specified code and authority, with an optional version number and description.
        Parameters:
        authority - the person or party responsible for maintenance of the namespace, or null if not available.
        code­Space - identifier or namespace in which the code is valid, or null if not available. This is often an abbreviation of the authority name.
        code - alphanumeric value identifying an instance in the namespace. The code can not be null.
        version - the version identifier for the namespace as specified by the code authority, or null if none.
        description - natural language description of the meaning of the code value, or null if none.
    • Method Detail

      • castOrCopy

        public static ImmutableIdentifier castOrCopy​(ReferenceIdentifier object)
        Deprecated.
        Returns a SIS identifier implementation with the values of the given arbitrary implementation. This method performs the first applicable action in the following choices:
        • If the given object is null, then this method returns null.
        • Otherwise if the given object is already an instance of Immutable­Identifier, then it is returned unchanged.
        • Otherwise a new Immutable­Identifier instance is created using the copy constructor and returned. Note that this is a shallow copy operation, since the other metadata contained in the given object are not recursively copied.
        Parameters:
        object - the object to get as a SIS implementation, or null if none.
        Returns:
        a SIS implementation containing the values of the given object (may be the given object itself), or null if the argument was null.