Class ObjectFormatService

java.lang.Object
edu.ucsb.nceas.metacat.dataone.ObjectFormatService

public class ObjectFormatService extends Object
Implements a subset of the DataONE CNCore services in Metacat.
Author:
jones, leinfelder
  • Field Details

  • Method Details

    • getInstance

      public static ObjectFormatService getInstance()
    • getFormat

      public org.dataone.service.types.v2.ObjectFormat getFormat(org.dataone.service.types.v1.ObjectFormatIdentifier fmtid) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
      Return the object format based on the given object format identifier
      Parameters:
      fmtid - - the object format identifier to look up
      Returns:
      objectFormat - the desired object format
      Throws:
      org.dataone.service.exceptions.ServiceFailure
      org.dataone.service.exceptions.NotFound
      org.dataone.service.exceptions.NotImplemented
    • listFormats

      public org.dataone.service.types.v2.ObjectFormatList listFormats() throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotImplemented
      Return the list of object formats registered from the Coordinating Node.
      Returns:
      objectFormatList - the list of object formats
      Throws:
      org.dataone.service.exceptions.ServiceFailure
      org.dataone.service.exceptions.NotImplemented