Package org.geotools.metadata.iso
Class IdentifierImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- 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
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
Fields inherited from interface Identifier
AUTHORITY_KEY, CODE_KEY
-
-
Constructor Summary
Constructors Constructor Description IdentifierImpl()
Construct 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Citation
getAuthority()
Organization or party responsible for definition and maintenance of the code.String
getCode()
Alphanumeric value identifying an instance in the namespace.String
getVersion()
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
setCode(String newValue)
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 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.
-
-
Method Detail
-
getCode
public String getCode()
Alphanumeric value identifying an instance in the namespace.- Specified by:
getCode
in interfaceIdentifier
- 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 interfaceIdentifier
- Returns:
- The authority, or
null
if not available.
-
-