public class DefaultCitation extends ISOMetadata implements Citation
getIdentifiers()
, except at XML marshalling time (for ISO 19139 compliance).Defined in the sis-metadata module
identifiers, LOGGER
Constructor and Description |
---|
DefaultCitation()
Constructs an initially empty citation.
|
DefaultCitation(CharSequence title)
Constructs a citation with the specified title.
|
DefaultCitation(Citation object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultCitation(ResponsibleParty party)
Constructs a citation with the specified responsible party.
|
Modifier and Type | Method and Description |
---|---|
static DefaultCitation |
castOrCopy(Citation object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Collection<InternationalString> |
getAlternateTitles()
Returns the short name or other language name by which the cited information is known.
|
Collection<ResponsibleParty> |
getCitedResponsibleParties()
Returns the name and position information for an individual or organization that is
responsible for the resource.
|
InternationalString |
getCollectiveTitle()
Returns the common title with holdings note.
|
Collection<CitationDate> |
getDates()
Returns the reference date for the cited resource.
|
InternationalString |
getEdition()
Returns the version of the cited resource.
|
Date |
getEditionDate()
Returns the date of the edition.
|
Collection<Identifier> |
getIdentifiers()
Returns the unique identifier for the resource.
|
String |
getISBN()
Returns the International Standard Book Number.
|
String |
getISSN()
Returns the International Standard Serial Number.
|
InternationalString |
getOtherCitationDetails()
Returns other information required to complete the citation that is not recorded elsewhere.
|
Collection<PresentationForm> |
getPresentationForms()
Returns the mode in which the resource is represented.
|
Series |
getSeries()
Returns the information about the series, or aggregate dataset, of which the dataset is a part.
|
InternationalString |
getTitle()
Returns the name by which the cited resource is known.
|
void |
setAlternateTitles(Collection<? extends InternationalString> newValues)
Sets the short name or other language name by which the cited information is known.
|
void |
setCitedResponsibleParties(Collection<? extends ResponsibleParty> newValues)
Sets the name and position information for an individual or organization that is responsible
for the resource.
|
void |
setCollectiveTitle(InternationalString newValue)
Sets the common title with holdings note.
|
void |
setDates(Collection<? extends CitationDate> newValues)
Sets the reference date for the cited resource.
|
void |
setEdition(InternationalString newValue)
Sets the version of the cited resource.
|
void |
setEditionDate(Date newValue)
Sets the date of the edition.
|
void |
setIdentifiers(Collection<? extends Identifier> newValues)
Sets the unique identifier for the resource.
|
void |
setISBN(String newValue)
Sets the International Standard Book Number.
|
void |
setISSN(String newValue)
Sets the International Standard Serial Number.
|
void |
setOtherCitationDetails(InternationalString newValue)
Sets other information required to complete the citation that is not recorded elsewhere.
|
void |
setPresentationForms(Collection<? extends PresentationForm> newValues)
Sets the mode in which the resource is represented.
|
void |
setSeries(Series newValue)
Sets the information about the series, or aggregate dataset, of which the dataset is a part.
|
void |
setTitle(InternationalString newValue)
Sets the name by which the cited resource is known.
|
getIdentifierMap, 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 DefaultCitation()
public DefaultCitation(CharSequence title)
title
- The title as a String
or an InternationalString
object,
or null
if none.public DefaultCitation(ResponsibleParty party)
party
- The name and position information for an individual or organization that is
responsible for the resource, or null
if none.public DefaultCitation(Citation object)
object
- The metadata to copy values from, or null
if none.castOrCopy(Citation)
public static DefaultCitation castOrCopy(Citation object)
null
, then this method returns null
.DefaultCitation
, then it is returned unchanged.DefaultCitation
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 InternationalString getTitle()
public void setTitle(InternationalString newValue)
newValue
- The new title, or null
if none.public Collection<InternationalString> getAlternateTitles()
getAlternateTitles
in interface Citation
public void setAlternateTitles(Collection<? extends InternationalString> newValues)
newValues
- The new alternate titles, or null
if none.public Collection<CitationDate> getDates()
public void setDates(Collection<? extends CitationDate> newValues)
newValues
- The new dates, or null
if none.public InternationalString getEdition()
getEdition
in interface Citation
null
if none.public void setEdition(InternationalString newValue)
newValue
- The new edition, or null
if none.public Date getEditionDate()
getEditionDate
in interface Citation
null
if none.public void setEditionDate(Date newValue)
newValue
- The new edition date, or null
if none.public Collection<Identifier> getIdentifiers()
Note:
The <:gmd:identifier>
element marshalled to XML will exclude
all the above cited identifiers, for ISO 19139 compliance. Those identifiers
will appear in other XML elements or attributes.
getIdentifiers
in interface IdentifiedObject
getIdentifiers
in interface Citation
getIdentifiers
in class ISOMetadata
getISBN()
,
getISSN()
,
ISOMetadata.getIdentifierMap()
public void setIdentifiers(Collection<? extends Identifier> newValues)
This method overwrites all previous identifiers with the given new values, except the XML identifiers (ID, UUID, etc.), ISBN and ISSN codes, if any. We do not overwrite the XML identifiers because they are usually associated to object identity, and we do not overwrite ISBN/ISSN codes because they have dedicated setters for compliance with the ISO 19115 model.
newValues
- The new identifiers, or null
if none.setISBN(String)
,
setISSN(String)
public Collection<ResponsibleParty> getCitedResponsibleParties()
getCitedResponsibleParties
in interface Citation
public void setCitedResponsibleParties(Collection<? extends ResponsibleParty> newValues)
newValues
- The new cited responsible parties, or null
if none.public Collection<PresentationForm> getPresentationForms()
getPresentationForms
in interface Citation
public void setPresentationForms(Collection<? extends PresentationForm> newValues)
newValues
- The new presentation form, or null
if none.public Series getSeries()
public void setSeries(Series newValue)
newValue
- The new series.public InternationalString getOtherCitationDetails()
getOtherCitationDetails
in interface Citation
null
if none.public void setOtherCitationDetails(InternationalString newValue)
newValue
- Other citations details, or null
if none.public InternationalString getCollectiveTitle()
getCollectiveTitle
in interface Citation
null
if none.public void setCollectiveTitle(InternationalString newValue)
newValue
- The new collective title, or null
if none.public String getISBN()
return getIdentifierMap().getSpecialized(Citations.ISBN);
getISBN
in interface Citation
null
if none.getIdentifiers()
,
Citations.ISBN
public void setISBN(String newValue)
getIdentifierMap().putSpecialized(Citations.ISBN, newValue);
newValue
- The new ISBN, or null
if none.setIdentifiers(Collection)
,
Citations.ISBN
public String getISSN()
return getIdentifierMap().getSpecialized(Citations.ISSN);
getISSN
in interface Citation
null
if none.getIdentifiers()
,
Citations.ISSN
public void setISSN(String newValue)
getIdentifierMap().putSpecialized(Citations.ISSN, newValue);
newValue
- The new ISSN.setIdentifiers(Collection)
,
Citations.ISSN
Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.