org.geotools.metadata.iso
Class IdentifierImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by 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
Module:
modules/library/metadata (gt-metadata.jar)

Field Summary
 
Fields inherited from class AbstractMetadata
LOGGER
 
Fields inherited from interface Identifier
AUTHORITY_KEY, CODE_KEY
 
Constructor Summary
IdentifierImpl()
          Construct an initially empty identifier.
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.
IdentifierImpl(String code)
          Creates an identifier initialized to the given code.
 
Method Summary
 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
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.



Copyright © 1996-2009 Geotools. All Rights Reserved.