Class EML2DataCiteFactory
java.lang.Object
edu.ucsb.nceas.metacat.doi.datacite.DataCiteMetadataFactory
edu.ucsb.nceas.metacat.doi.datacite.EML2DataCiteFactory
A factory to generate data cite meta data for the scientific meta data standards - eml-2.*
- Author:
- tao
-
Field Summary
Fields inherited from class edu.ucsb.nceas.metacat.doi.datacite.DataCiteMetadataFactory
ABSTRACT, CREATOR, CREATORNAME, CREATORS, DESCRIPTIONS, DOI, EN, FORMATS, INVALIDCODE, NAMESPACE, RESOURCE, SCHEMALOCATION, SUBJECTS, TITLES, XML_LANG, xpath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProcess
(String namespace) Determine if the given name space can be handled by this factorygenerateMetadata
(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v2.SystemMetadata sysmeta) Method to generate the data cite xml documentMethods inherited from class edu.ucsb.nceas.metacat.doi.datacite.DataCiteMetadataFactory
addIdentifier, addLanguage, addPublicationYear, addPublisher, addResourceType, appendCreator, appendDescription, appendFormat, appendSubject, appendTitle, generateROOTDoc, lookupFormat, removeIdSchemePrefix, serializeDoc
-
Constructor Details
-
EML2DataCiteFactory
public EML2DataCiteFactory()
-
-
Method Details
-
canProcess
Determine if the given name space can be handled by this factory- Specified by:
canProcess
in classDataCiteMetadataFactory
- Parameters:
namespace
- the name space of the metadata- Returns:
- true if this factory can process it; false otherwise.
-
generateMetadata
public String generateMetadata(org.dataone.service.types.v1.Identifier identifier, org.dataone.service.types.v2.SystemMetadata sysmeta) throws org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.ServiceFailure Method to generate the data cite xml document- Specified by:
generateMetadata
in classDataCiteMetadataFactory
sysmeta
- the system metadata information of a given object- Returns:
- the xml string of the datacite metadata.
- Throws:
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.ServiceFailure
-