|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public boolean isUsingDatabase()
public String assignNewSystemId(String metadataFieldId, String metadataValue)
metadataFieldId
- encoded field IdmetadataValue
- metadata value name
public String getId(String metadataFieldId, String metadataValue)
metadataFieldId
- encoded field IdmetadataValue
- metadata value namepublic void registerUiLabels(HashMap uiSystems, HashMap uiLabelOfSystemIds)
uiSystems
- map whose keys indicate all the current ui_label
"system" attributesuiLabelOfSystemIds
- map encoded Ids to UI labelspublic void closeConnection()
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |