|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MetadataVocabTracker
Interface for creation of controlled vocabulary system Ids, tracking changes in metadata names and UI labels, and ensuring consistency of all three. Implementations should follow these rules:
| Method Summary | |
|---|---|
String |
assignNewSystemId(String metadataFieldId,
String metadataValue)
Assign a unique system Id for a new vocabulary value. |
void |
closeConnection()
If a relational database is being used, this should be used to close its connection once the vocabulary has been loaded |
String |
getId(String metadataFieldId,
String metadataValue)
Does the current fieldId/value pair already exist in the database? If so, return the Id, if not, return "" (empty string). |
boolean |
isUsingDatabase()
Is the system using this tracker connected to a database? If not, no error checking will be performed, no new encoded system Ids can be assigned, and changes in UI labels will not be registered. |
void |
registerUiLabels(HashMap uiSystems,
HashMap uiLabelOfSystemIds)
Register the current state of UI labels in the database |
| Method Detail |
|---|
boolean isUsingDatabase()
String assignNewSystemId(String metadataFieldId,
String metadataValue)
metadataFieldId - encoded field IdmetadataValue - metadata value name
String getId(String metadataFieldId,
String metadataValue)
metadataFieldId - encoded field IdmetadataValue - metadata value name
void registerUiLabels(HashMap uiSystems,
HashMap uiLabelOfSystemIds)
uiSystems - map whose keys indicate all the current ui_label
"system" attributesuiLabelOfSystemIds - map encoded Ids to UI labelsvoid closeConnection()
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||