org.geotools.metadata.iso
Class IdentifierImpl

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

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 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Fields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEY, VERSION_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(java.lang.String code)
          Creates an identifier initialized to the given code.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this Identifier with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 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.
 int hashCode()
          Returns a hash code value for this address.
 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
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierImpl

public IdentifierImpl()
Construct an initially empty identifier.


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.

Specified by:
getVersion in interface org.opengis.metadata.Identifier
Returns:
The version, or 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 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.


freeze

protected void freeze()
Declare this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compare this Identifier with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this address. For performance reason, this method do not uses all attributes for computing the hash code. Instead, it uses the attributes that are the most likely to be unique.



Copyright © GeoTools. All Rights Reserved.