public class DataCiteJson extends Object implements IDocument
| Constructor and Description |
|---|
DataCiteJson(String sourceId)
Constructor that sets up the GeRDI extension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlternateIdentifiers(Collection<AlternateIdentifier> alternateIdentifiers)
Changes identifiers other than the primary Identifier applied to the resource
being registered.
|
void |
addContributors(Collection<Contributor> contributors)
Changes the institutions or persons responsible for collecting, managing,
distributing, or otherwise contributing to the development of the resource.
|
void |
addCreators(Collection<Creator> creators)
Sets the main researchers involved in producing the data, or the authors of
the publication, sorted by priority (most important as first element).
|
void |
addDates(Collection<AbstractDate> dates)
Changes dates relevant to the work.
|
void |
addDescriptions(Collection<Description> descriptions)
Changes all additional information that does not fit in any of the other
categories.
|
void |
addExtension(IDataCiteExtension extension)
Adds an IDataCiteExtension to the metadata.
|
void |
addFormats(Collection<String> formats)
Changes technical format of the resource.
|
void |
addFundingReferences(Collection<FundingReference> fundingReferences)
Changes information about financial support (funding) for the resource being
registered.
|
void |
addGeoLocations(Collection<GeoLocation> geoLocations)
Changes the spatial regions or named places where the data was gathered or
about which the data is focused.
|
void |
addRelatedIdentifiers(Collection<RelatedIdentifier> relatedIdentifiers)
Changes the identifiers of related resources.
|
void |
addResearchData(Collection<ResearchData> researchDataList)
Changes the downloadable source data files.
|
void |
addResearchDisciplines(Collection<AbstractResearch> researchDisciplines)
Changes the set of human readable names of the research disciplines, meaning
the topics or domains that this document covers.
|
void |
addRights(Collection<Rights> rightsList)
Changes rights information for this resource.
|
void |
addSizes(Collection<String> sizes)
Changes the unstructured size information about the resource.
|
void |
addSubjects(Collection<Subject> subjects)
Changes the subjects, keywords, classification codes, and key phrases
describing the resource.
|
void |
addTitles(Collection<Title> titles)
Changes names or titles by which the resource is known.
|
void |
addWebLinks(Collection<WebLink> webLinks)
Changes the links to the data provider's website.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Set<AlternateIdentifier> |
getAlternateIdentifiers()
Retrieves the identifiers other than the primary Identifier applied to the
resource being registered.
|
Set<Contributor> |
getContributors()
Retrieves institutions or persons responsible for collecting, managing,
distributing, or otherwise contributing to the development of the resource.
|
List<Creator> |
getCreators()
Retrieves the main researchers involved in producing the data, or the authors of the
publication, in priority order.
|
Set<AbstractDate> |
getDates()
Retrieves the different dates relevant to the work.
|
Set<Description> |
getDescriptions()
Retrieves all additional information that does not fit in any of the other categories.
|
DataCiteExtensions |
getExtensions()
Retrieves discipline specific metadata extensions.
|
Set<String> |
getFormats()
Retrieves the technical format of the resource.
|
Set<FundingReference> |
getFundingReferences()
Retrieves information about financial support (funding) for the resource being
registered.
|
Set<GeoLocation> |
getGeoLocations()
Retrieves spatial regions or named places where the data was gathered or about which
the data is focused.
|
Identifier |
getIdentifier()
Retrieves the unique string that identifies the resource.
|
String |
getLanguage()
Retrieves the primary language of the resource.
|
Integer |
getPublicationYear()
Retrieves the year when the data was or will be made publicly available.
|
Publisher |
getPublisher()
Retrieves the name of the entity that holds, archives, publishes prints, distributes,
releases, issues, or produces the resource.
|
Set<RelatedIdentifier> |
getRelatedIdentifiers()
Retrieves identifiers of related resources.
|
String |
getRepositoryIdentifier()
Retrieves a unique, human readable name of the repository.
|
Set<ResearchData> |
getResearchDataList()
Retrieves references to downloadable research data.
|
Set<AbstractResearch> |
getResearchDisciplines()
Retrieves a set of human readable names of the research disciplines,
i.e.
|
ResourceType |
getResourceType()
Retrieves the description of the resource.
|
Set<Rights> |
getRightsList()
Retrieves rights information for this resource.
|
Set<String> |
getSizes()
Retrieves unstructured information about the resource size, duration, or extent.
|
@NonNull String |
getSourceId()
Retrieves the identifier of the source of the document.
|
Set<Subject> |
getSubjects()
Retrieves subjects, keywords, classification codes, or key phrases describing the
resource.
|
Set<Title> |
getTitles()
Retrieves the names or title by which the resource is known.
|
String |
getVersion()
Retrieves the version number of the resource.
|
Set<WebLink> |
getWebLinks()
Retrieves weblinks related to the resource.
|
int |
hashCode() |
void |
setIdentifier(Identifier identifier)
Sets the unique string that identifies the resource.
|
void |
setLanguage(String language)
Sets the primary language of the resource.
|
void |
setPublicationYear(Integer publicationYear)
Sets the year when the data was or will be made publicly available.
|
void |
setPublisher(Publisher publisher)
Sets the entity that holds, archives, publishes prints, distributes,
releases, issues, or produces the resource.
|
void |
setPublisher(String publisherName)
|
void |
setRepositoryIdentifier(String repositoryIdentifier)
Changes the unique but human readable name of the repository.
|
void |
setResourceType(ResourceType resourceType)
Sets the description of the resource.
|
void |
setVersion(String version)
Sets the version number of the resource.
|
String |
toJson()
Returns a JSON representation of the document.
|
String |
toString() |
public DataCiteJson(String sourceId) throws IllegalArgumentException
sourceId - a unique identifier of the source from which the document was
retrievedIllegalArgumentExceptionpublic void addSizes(Collection<String> sizes)
sizes - unstructured size information about the resourcepublic void addFormats(Collection<String> formats)
formats - technical format of the resourcepublic void addCreators(Collection<Creator> creators)
creators - the main researchers and/or the authors of the publicationpublic void addTitles(Collection<Title> titles)
titles - names or titles by which the resource is knownpublic void addDescriptions(Collection<Description> descriptions)
descriptions - all additional informationpublic void addSubjects(Collection<Subject> subjects)
subjects - subjects, keywords, classification codes, or key phrases
describing the resourcepublic void addContributors(Collection<Contributor> contributors)
contributors - institutions or persons responsible for contributing to
the development of the resourcepublic void addDates(Collection<AbstractDate> dates)
dates - dates relevant to the workpublic void addGeoLocations(Collection<GeoLocation> geoLocations)
geoLocations - spatial regions and/or named placespublic void addRelatedIdentifiers(Collection<RelatedIdentifier> relatedIdentifiers)
relatedIdentifiers - identifiers of related resourcespublic void addAlternateIdentifiers(Collection<AlternateIdentifier> alternateIdentifiers)
alternateIdentifiers - identifiers other than the primary Identifierpublic void addRights(Collection<Rights> rightsList)
rightsList - rights information for this resourcepublic void addFundingReferences(Collection<FundingReference> fundingReferences)
fundingReferences - information about financial supportpublic void addWebLinks(Collection<WebLink> webLinks)
webLinks - links to the data provider's websitepublic void addResearchData(Collection<ResearchData> researchDataList)
researchDataList - downloadable filespublic void addResearchDisciplines(Collection<AbstractResearch> researchDisciplines)
researchDisciplines - a collection of human readable names of the research
disciplinespublic void setRepositoryIdentifier(String repositoryIdentifier)
repositoryIdentifier - a unique but human readable name of the
repositorypublic void addExtension(IDataCiteExtension extension)
extension - the extension to be addedpublic void setPublisher(Publisher publisher)
publisher - the publisher@Deprecated public void setPublisher(String publisherName)
publisherName - the name of the publisherpublic String toJson()
IDocument@NonNull public @NonNull String getSourceId()
getSourceId in interface IDocumentpublic Identifier getIdentifier()
public List<Creator> getCreators()
public Set<Title> getTitles()
public Publisher getPublisher()
public Integer getPublicationYear()
public ResourceType getResourceType()
public Set<Subject> getSubjects()
public Set<Contributor> getContributors()
public Set<AbstractDate> getDates()
public String getLanguage()
public Set<AlternateIdentifier> getAlternateIdentifiers()
public Set<RelatedIdentifier> getRelatedIdentifiers()
public Set<String> getSizes()
public Set<String> getFormats()
public String getVersion()
public Set<Rights> getRightsList()
public Set<Description> getDescriptions()
public Set<GeoLocation> getGeoLocations()
public Set<FundingReference> getFundingReferences()
public String getRepositoryIdentifier()
public Set<WebLink> getWebLinks()
public Set<ResearchData> getResearchDataList()
public Set<AbstractResearch> getResearchDisciplines()
public DataCiteExtensions getExtensions()
public void setIdentifier(Identifier identifier)
identifier - the unique string that identifies the resourcepublic void setPublicationYear(Integer publicationYear)
publicationYear - the year when the data was or will be made publicly availablepublic void setResourceType(ResourceType resourceType)
resourceType - the description of the resourcepublic void setLanguage(String language)
language - the primary language of the resourcepublic void setVersion(String version)
version - the version number of the resourceprotected boolean canEqual(Object other)
Copyright © 2017–2019. All rights reserved.