public class DefaultCitationDate extends ISOMetadata implements CitationDate
Limitations:
XML
instead.Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultCitationDate()
Constructs an initially empty citation date.
|
DefaultCitationDate(CitationDate object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultCitationDate(Date date,
DateType dateType)
Constructs a citation date initialized to the given date.
|
Modifier and Type | Method and Description |
---|---|
static DefaultCitationDate |
castOrCopy(CitationDate object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Date |
getDate()
Returns the reference date for the cited resource.
|
DateType |
getDateType()
Returns the event used for reference date.
|
void |
setDate(Date newValue)
Sets the reference date for the cited resource.
|
void |
setDateType(DateType newValue)
Sets the event used for reference date.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultCitationDate()
public DefaultCitationDate(Date date, DateType dateType)
date
- The reference date for the cited resource.dateType
- The event used for reference date.public DefaultCitationDate(CitationDate object)
object
- The metadata to copy values from, or null
if none.castOrCopy(CitationDate)
public static DefaultCitationDate castOrCopy(CitationDate object)
null
, then this method returns null
.DefaultCitationDate
, then it is returned unchanged.DefaultCitationDate
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public Date getDate()
getDate
in interface CitationDate
null
.public void setDate(Date newValue)
newValue
- The new date.public DateType getDateType()
getDateType
in interface CitationDate
null
.public void setDateType(DateType newValue)
newValue
- The new event.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.