Class DefaultDataCiteFactory

java.lang.Object
edu.ucsb.nceas.metacat.doi.datacite.DataCiteMetadataFactory
edu.ucsb.nceas.metacat.doi.datacite.DefaultDataCiteFactory

public class DefaultDataCiteFactory extends DataCiteMetadataFactory
Default factory to generate a simple datacite metadata xml string
Author:
tao
  • Constructor Details

    • DefaultDataCiteFactory

      public DefaultDataCiteFactory()
  • Method Details

    • 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 class DataCiteMetadataFactory
      sysmeta - the system meta data information of an given object
      Returns:
      the xml string of the datacite meta data.
      Throws:
      org.dataone.service.exceptions.InvalidRequest
      org.dataone.service.exceptions.ServiceFailure
    • canProcess

      public boolean canProcess(String namespace)
      It can handle all namespace
      Specified by:
      canProcess in class DataCiteMetadataFactory
      Parameters:
      namespace - the name space of the meta data
      Returns:
      true if this factory can process it; false otherwise.