| Package | osid.dictionary |
|---|---|
| Title | Dictionary Open Service Interface Definitions |
| Version | 3.0.0 |
| Description |
The Dictionary OSID manages key/value pairs. A key and a value may be of an arbitrary type. Dictionaries may be used to support a Locale or Configuration OSID, or may be used to provide any dynamic translation or conversion. The Dictionary OSID is a powerful tool for abstracting and simplifying applications and other OSID implementations. Entries An Dictionary Basic Example:
EntryLookupSession lookupSession = mgr.getEntryLookupSession();
string definition = (string) lookupSession.getEntry("gambrel", strType, strType);
Federated Example:
DictionaryLookupSession dictLookupSession = mgr.getDictionaryLookupSession();
Dictionary dict = dictLookupSession.getDictionary(dict_id);
EntryLookupSession lookupSession = mgr.getEntryLookupSessionForDictionary(dict);
JpegImage jpg = lookupSession.getEntry(tiffImage, tiffType, jpegType);
|