org.geotools.metadata.iso.citation
Class CitationDateImpl

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

public class CitationDateImpl
extends MetadataEntity
implements org.opengis.metadata.citation.CitationDate

Reference date and event used to describe it.

Since:
2.1
Version:
$Id: CitationDateImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
CitationDateImpl()
          Constructs an initially empty citation date.
CitationDateImpl(java.util.Date date, org.opengis.metadata.citation.DateType dateType)
          Constructs a citation date initialized to the given date.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares this citation with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 java.util.Date getDate()
          Returns the reference date for the cited resource.
 org.opengis.metadata.citation.DateType getDateType()
          Returns the event used for reference date.
 int hashCode()
          Returns a hash code value for this citation.
 void setDate(java.util.Date newValue)
          Set the reference date for the cited resource.
 void setDateType(org.opengis.metadata.citation.DateType newValue)
          Set the event used for reference date.
 java.lang.String toString()
          Returns a string representation of this citation.
 
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, wait, wait, wait
 

Constructor Detail

CitationDateImpl

public CitationDateImpl()
Constructs an initially empty citation date.


CitationDateImpl

public CitationDateImpl(java.util.Date date,
                        org.opengis.metadata.citation.DateType dateType)
Constructs a citation date initialized to the given date.

Method Detail

getDate

public java.util.Date getDate()
Returns the reference date for the cited resource.

Specified by:
getDate in interface org.opengis.metadata.citation.CitationDate

setDate

public void setDate(java.util.Date newValue)
Set the reference date for the cited resource.


getDateType

public org.opengis.metadata.citation.DateType getDateType()
Returns the event used for reference date.

Specified by:
getDateType in interface org.opengis.metadata.citation.CitationDate

setDateType

public void setDateType(org.opengis.metadata.citation.DateType newValue)
Set the event used for reference date.


freeze

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

Overrides:
freeze in class MetadataEntity

equals

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


hashCode

public int hashCode()
Returns a hash code value for this citation. 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.


toString

public java.lang.String toString()
Returns a string representation of this citation.

To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.