org.geotools.metadata.iso.citation
Class CitationDateImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by CitationDateImpl
All Implemented Interfaces:
Serializable, Cloneable, CitationDate

public class CitationDateImpl
extends MetadataEntity
implements CitationDate

Reference date and event used to describe it.

Since:
2.1
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form
Module:

Field Summary
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
CitationDateImpl()
          Constructs an initially empty citation date.
CitationDateImpl(CitationDate source)
          Constructs a metadata entity initialized with the values from the specified metadata.
CitationDateImpl(Date date, DateType dateType)
          Constructs a citation date initialized to the given date.
 
Method Summary
 Date getDate()
          Returns the reference date for the cited resource.
 DateType getDateType()
          Returns the event used for reference date.
 void setDate(Date newValue)
          Set the reference date for the cited resource.
 void setDateType(DateType newValue)
          Set the event used for reference date.
 
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

CitationDateImpl

public CitationDateImpl()
Constructs an initially empty citation date.


CitationDateImpl

public CitationDateImpl(CitationDate source)
Constructs a metadata entity initialized with the values from the specified metadata.

Since:
2.4

CitationDateImpl

public CitationDateImpl(Date date,
                        DateType dateType)
Constructs a citation date initialized to the given date.

Method Detail

getDate

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

Specified by:
getDate in interface CitationDate

setDate

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


getDateType

public DateType getDateType()
Returns the event used for reference date.

Specified by:
getDateType in interface CitationDate

setDateType

public void setDateType(DateType newValue)
Set the event used for reference date.



Copyright © 1996-2009 Geotools. All Rights Reserved.