org.geotools.metadata.iso
Class IdentifierImpl

java.lang.Object
  extended by org.geotools.metadata.AbstractMetadata
      extended by org.geotools.metadata.ModifiableMetadata
          extended by org.geotools.metadata.iso.MetadataEntity
              extended by org.geotools.metadata.iso.IdentifierImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.opengis.metadata.Identifier

public class IdentifierImpl
extends MetadataEntity
implements org.opengis.metadata.Identifier

Value uniquely identifying an object within a namespace.

Since:
2.1
Version:
$Id: IdentifierImpl.java 31557 2008-09-19 20:02:35Z desruisseaux $
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.AbstractMetadata
LOGGER
 
Fields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEY
 
Constructor Summary
IdentifierImpl()
          Construct an initially empty identifier.
IdentifierImpl(org.opengis.metadata.citation.Citation authority, java.lang.String code)
          Creates an identifier initialized to the given authority and code.
IdentifierImpl(org.opengis.metadata.Identifier source)
          Constructs a metadata entity initialized with the values from the specified metadata.
IdentifierImpl(java.lang.String code)
          Creates an identifier initialized to the given code.
 
Method Summary
 org.opengis.metadata.citation.Citation getAuthority()
          Organization or party responsible for definition and maintenance of the code.
 java.lang.String getCode()
          Alphanumeric value identifying an instance in the namespace.
 java.lang.String getVersion()
          Identifier of the version of the associated code, as specified by the code space or code authority.
 void setAuthority(org.opengis.metadata.citation.Citation newValue)
          Set the organization or party responsible for definition and maintenance of the code.
 void setCode(java.lang.String newValue)
          Set the alphanumeric value identifying an instance in the namespace.
 void setVersion(java.lang.String newValue)
          Set an identifier of the version of the associated code.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
ensureNonNull, getStandard
 
Methods inherited from class org.geotools.metadata.ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
 
Methods inherited from class org.geotools.metadata.AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentifierImpl

public IdentifierImpl()
Construct an initially empty identifier.


IdentifierImpl

public IdentifierImpl(org.opengis.metadata.Identifier source)
Constructs a metadata entity initialized with the values from the specified metadata.

Since:
2.4

IdentifierImpl

public IdentifierImpl(java.lang.String code)
Creates an identifier initialized to the given code.


IdentifierImpl

public IdentifierImpl(org.opengis.metadata.citation.Citation authority,
                      java.lang.String code)
Creates an identifier initialized to the given authority and code.

Since:
2.2
Method Detail

getCode

public java.lang.String getCode()
Alphanumeric value identifying an instance in the namespace.

Specified by:
getCode in interface org.opengis.metadata.Identifier
Returns:
The code.

setCode

public void setCode(java.lang.String newValue)
Set the alphanumeric value identifying an instance in the namespace.


getVersion

public java.lang.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(java.lang.String newValue)
Set an identifier of the version of the associated code.


getAuthority

public org.opengis.metadata.citation.Citation getAuthority()
Organization or party responsible for definition and maintenance of the code.

Specified by:
getAuthority in interface org.opengis.metadata.Identifier
Returns:
The authority, or null if not available.

setAuthority

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



Copyright © 1996-2010 Geotools. All Rights Reserved.