org.geotools.metadata.iso.citation
Class CitationDateImpl

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.citation.CitationDateImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.opengis.metadata.citation.CitationDate

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 31557 2008-09-19 20:02:35Z desruisseaux $
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.AbstractMetadata
LOGGER
 
Constructor Summary
CitationDateImpl()
          Constructs an initially empty citation date.
CitationDateImpl(org.opengis.metadata.citation.CitationDate source)
          Constructs a metadata entity initialized with the values from the specified metadata.
CitationDateImpl(java.util.Date date, org.opengis.metadata.citation.DateType dateType)
          Constructs a citation date initialized to the given date.
 
Method Summary
 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.
 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.
 
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

CitationDateImpl

public CitationDateImpl()
Constructs an initially empty citation date.


CitationDateImpl

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

Since:
2.4

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.



Copyright © 1996-2010 Geotools. All Rights Reserved.