Story #582
Implement an object format registry
100%
Description
As processor (MN, CN) of DataONE content, I need to discover if a particular object format should be treated as science metadata.
Create a registry of object formats
Each entry of the registry should indicate what roles a particular object format can have.
Using a registry will help avoid creating large lists of hard coded values and ugly case statements such as:
boolean scimeta = false;
switch (sysmeta.getObjectFormat()) {
case EML_2_1_0: scimeta = true; break;
case EML_2_0_1: scimeta = true; break;
case EML_2_0_0: scimeta = true; break;
case FGDC_STD_001_1_1999: scimeta = true; break;
case FGDC_STD_001_1998: scimeta = true; break;
case NCML_2_2: scimeta = true; break;
}
Suggest a data model something like:
objectFormatList
format*
objectFormatNamespace
objectClass+ [data/metadata/fooClass]
and a method such as
ObjectClass[] getObjectClass(objectFormatNamespace)
to indicate the roles of a particular object format.
Should be implemented as part of the CN functionality.
Subtasks
Related issues
History
#1 Updated by Dave Vieglais about 14 years ago
- Target version deleted (
CCI-1.0) - Milestone set to CCI-1.0
#2 Updated by Matthew Jones about 14 years ago
- Position set to 15
#3 Updated by Dave Vieglais about 14 years ago
- Position deleted (
20) - Position set to 4
- Target version set to Sprint-2010.42
#4 Updated by Dave Vieglais about 14 years ago
- Target version deleted (
Sprint-2010.42) - Position deleted (
19) - Position set to 2
#5 Updated by Dave Vieglais about 14 years ago
- Position set to 40
- Position deleted (
17)
#6 Updated by Dave Vieglais about 13 years ago
- Position deleted (
200) - Position set to 38
#7 Updated by Dave Vieglais about 13 years ago
- Milestone changed from CCI-1.0 to None
- Status changed from New to Closed