Package edu.ucsb.nceas.metacat.dataone
Class ObjectFormatService
java.lang.Object
edu.ucsb.nceas.metacat.dataone.ObjectFormatService
Implements a subset of the DataONE CNCore services in Metacat.
- Author:
- jones, leinfelder
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.dataone.service.types.v2.ObjectFormat
getFormat
(org.dataone.service.types.v1.ObjectFormatIdentifier fmtid) Return the object format based on the given object format identifierstatic ObjectFormatService
org.dataone.service.types.v2.ObjectFormatList
Return the list of object formats registered from the Coordinating Node.
-
Field Details
-
OBJECT_FORMAT_PID_PREFIX
- See Also:
-
-
Method Details
-
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.NotImplementedReturn 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
-