gov.nasa.pds.ltdt.gui
Class KeywordMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap
gov.nasa.pds.ltdt.gui.KeywordMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, java.util.SortedMap
public class KeywordMap
- extends java.util.TreeMap
A TreeMap (sorted Map) structure to hold generalized properties of object/elements
of dictionaries in one place. The key is sorted by combining keyword:namespace
This structure also supports expansion of dictionary keywords such as object, elements
The standard representation of namespace:keyword is swapped intentionally in this class
in order to support the requirement that the keyword list to be grouped and sorted
by keyword names
- Author:
- jwang
- See Also:
- Serialized Form
Methods inherited from class java.util.TreeMap |
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, isEmpty, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode, isEmpty |
KeywordMap
public KeywordMap()
addDictionaries
public void addDictionaries(java.util.Properties props,
MainWindow window,
java.lang.String dList)
- Given a list of dictionaries and insert all keywords to the keyword map
- Parameters:
props
- window
- dList
- A string of dictionary paths with : as delimeter
- Throws:
java.net.MalformedURLException
addSingleDictionary
public int addSingleDictionary(java.util.Properties props,
MainWindow window,
java.lang.String dictionaryString)
- Add keywords from an entire dictionary to the keyword map
- Parameters:
props
- window
- dictionaryString
-
- Returns:
- SUCCESS, WARNING
addSingleDictionary
public int addSingleDictionary(java.util.Properties props,
MainWindow window,
java.net.URL dictionaryURL)
getTreeEntryIDList
public java.util.ArrayList getTreeEntryIDList()
Copyright © 2005-2008 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.