Package org.geotools.metadata.iso
Class IdentifierImpl
Object
AbstractMetadata
ModifiableMetadata
MetadataEntity
IdentifierImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,Identifier
Value uniquely identifying an object within a namespace.
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
-
Field Summary
Fields inherited from class AbstractMetadata
LOGGER
Fields inherited from interface Identifier
AUTHORITY_KEY, CODE_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an initially empty identifier.IdentifierImpl
(String code) Creates an identifier initialized to the given code.IdentifierImpl
(Citation authority, String code) Creates an identifier initialized to the given authority and code.IdentifierImpl
(Identifier source) Constructs a metadata entity initialized with the values from the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionOrganization or party responsible for definition and maintenance of the code.getCode()
Alphanumeric value identifying an instance in the namespace.Identifier of the version of the associated code, as specified by the code space or code authority.void
setAuthority
(Citation newValue) Set the organization or party responsible for definition and maintenance of the code.void
Set the alphanumeric value identifying an instance in the namespace.void
setVersion
(String newValue) Set an identifier of the version of the associated code.Methods inherited from class MetadataEntity
ensureNonNull, getStandard
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
Constructor Details
-
IdentifierImpl
public IdentifierImpl()Construct an initially empty identifier. -
IdentifierImpl
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
IdentifierImpl
Creates an identifier initialized to the given code. -
IdentifierImpl
Creates an identifier initialized to the given authority and code.- Since:
- 2.2
-
-
Method Details
-
getCode
Alphanumeric value identifying an instance in the namespace.- Specified by:
getCode
in interfaceIdentifier
- Returns:
- The code.
-
setCode
Set the alphanumeric value identifying an instance in the namespace. -
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
Set an identifier of the version of the associated code. -
getAuthority
Organization or party responsible for definition and maintenance of the code.- Specified by:
getAuthority
in interfaceIdentifier
- Returns:
- The authority, or
null
if not available.
-
setAuthority
Set the organization or party responsible for definition and maintenance of the code.
-