test_class.declarator: manager
test_class.modifier: private
test_class.original_string: private TopicMapSourceManager manager;
test_class.type: TopicMapSourceManager
test_class.var_name: manager
test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/entry/TopicMapSourceManagerTest.java
test_class.identifier: TopicMapSourceManagerTest
test_case.body: @Test
    public void testEmpty() {
      verifyEmptyManager("");
      manager.refresh();
      verifyEmptyManager(" after refresh");
    }
test_case.class_method_signature: TopicMapSourceManagerTest.testEmpty()
test_case.full_signature: @Test public void testEmpty()
test_case.identifier: testEmpty
test_case.invocations: verifyEmptyManager refresh verifyEmptyManager
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEmpty()
focal_class.declarator: log = LoggerFactory.getLogger(TopicMapSourceManager.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(TopicMapSourceManager.class.getName());
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: sources = new CompactHashSet<TopicMapSourceIF>()
focal_class.modifier: protected
focal_class.original_string: protected Set<TopicMapSourceIF> sources = new CompactHashSet<TopicMapSourceIF>();
focal_class.type: Set<TopicMapSourceIF>
focal_class.var_name: sources
focal_class.declarator: smap = new HashMap<String, TopicMapSourceIF>()
focal_class.modifier: protected
focal_class.original_string: protected Map<String, TopicMapSourceIF> smap = new HashMap<String, TopicMapSourceIF>();
focal_class.type: Map<String, TopicMapSourceIF>
focal_class.var_name: smap
focal_class.declarator: refreshed = false
focal_class.modifier: protected
focal_class.original_string: protected boolean refreshed = false;
focal_class.type: boolean
focal_class.var_name: refreshed
focal_class.declarator: keyrefs = new HashMap<String, TopicMapReferenceIF>()
focal_class.modifier: protected
focal_class.original_string: protected Map<String, TopicMapReferenceIF> keyrefs = new HashMap<String, TopicMapReferenceIF>();
focal_class.type: Map<String, TopicMapReferenceIF>
focal_class.var_name: keyrefs
focal_class.declarator: refkeys = new HashMap<TopicMapReferenceIF, String>()
focal_class.modifier: protected
focal_class.original_string: protected Map<TopicMapReferenceIF, String> refkeys = new HashMap<TopicMapReferenceIF, String>();
focal_class.type: Map<TopicMapReferenceIF, String>
focal_class.var_name: refkeys
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/entry/TopicMapSourceManager.java
focal_class.identifier: TopicMapSourceManager
focal_class.interfaces: implements TopicMapRepositoryIF
focal_class.class_method_signature: TopicMapSourceManager.TopicMapSourceManager()
focal_class.full_signature: public  TopicMapSourceManager()
focal_class.identifier: TopicMapSourceManager
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  TopicMapSourceManager()
focal_class.class_method_signature: TopicMapSourceManager.TopicMapSourceManager(TopicMapSourceIF source)
focal_class.full_signature: public  TopicMapSourceManager(TopicMapSourceIF source)
focal_class.identifier: TopicMapSourceManager
focal_class.modifiers: public
focal_class.parameters: (TopicMapSourceIF source)
focal_class.signature:  TopicMapSourceManager(TopicMapSourceIF source)
focal_class.class_method_signature: TopicMapSourceManager.TopicMapSourceManager(Collection<TopicMapSourceIF> sources)
focal_class.full_signature: public  TopicMapSourceManager(Collection<TopicMapSourceIF> sources)
focal_class.identifier: TopicMapSourceManager
focal_class.modifiers: public
focal_class.parameters: (Collection<TopicMapSourceIF> sources)
focal_class.signature:  TopicMapSourceManager(Collection<TopicMapSourceIF> sources)
focal_class.class_method_signature: TopicMapSourceManager.getReferences()
focal_class.full_signature: @Override public synchronized Collection<TopicMapReferenceIF> getReferences()
focal_class.identifier: getReferences
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: Collection<TopicMapReferenceIF>
focal_class.signature: Collection<TopicMapReferenceIF> getReferences()
focal_class.class_method_signature: TopicMapSourceManager.getReferenceKeys()
focal_class.full_signature: @Override public synchronized Collection<String> getReferenceKeys()
focal_class.identifier: getReferenceKeys
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getReferenceKeys()
focal_class.class_method_signature: TopicMapSourceManager.getReferenceByKey(String key)
focal_class.full_signature: @Override public synchronized TopicMapReferenceIF getReferenceByKey(String key)
focal_class.identifier: getReferenceByKey
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (String key)
focal_class.return: TopicMapReferenceIF
focal_class.signature: TopicMapReferenceIF getReferenceByKey(String key)
focal_class.class_method_signature: TopicMapSourceManager.getReferenceKey(TopicMapReferenceIF ref)
focal_class.full_signature: @Override public synchronized String getReferenceKey(TopicMapReferenceIF ref)
focal_class.identifier: getReferenceKey
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (TopicMapReferenceIF ref)
focal_class.return: String
focal_class.signature: String getReferenceKey(TopicMapReferenceIF ref)
focal_class.class_method_signature: TopicMapSourceManager.createStore(String refkey, boolean readonly)
focal_class.full_signature: @Override public TopicMapStoreIF createStore(String refkey, boolean readonly)
focal_class.identifier: createStore
focal_class.modifiers: @Override public
focal_class.parameters: (String refkey, boolean readonly)
focal_class.return: TopicMapStoreIF
focal_class.signature: TopicMapStoreIF createStore(String refkey, boolean readonly)
focal_class.class_method_signature: TopicMapSourceManager.getSourceById(String source_id)
focal_class.full_signature: @Override public synchronized TopicMapSourceIF getSourceById(String source_id)
focal_class.identifier: getSourceById
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (String source_id)
focal_class.return: TopicMapSourceIF
focal_class.signature: TopicMapSourceIF getSourceById(String source_id)
focal_class.class_method_signature: TopicMapSourceManager.getSources()
focal_class.full_signature: @Override public synchronized Collection<TopicMapSourceIF> getSources()
focal_class.identifier: getSources
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: Collection<TopicMapSourceIF>
focal_class.signature: Collection<TopicMapSourceIF> getSources()
focal_class.class_method_signature: TopicMapSourceManager.addSource(TopicMapSourceIF source)
focal_class.full_signature: @Override public synchronized void addSource(TopicMapSourceIF source)
focal_class.identifier: addSource
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (TopicMapSourceIF source)
focal_class.return: void
focal_class.signature: void addSource(TopicMapSourceIF source)
focal_class.class_method_signature: TopicMapSourceManager.removeSource(TopicMapSourceIF source)
focal_class.full_signature: @Override public synchronized void removeSource(TopicMapSourceIF source)
focal_class.identifier: removeSource
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (TopicMapSourceIF source)
focal_class.return: void
focal_class.signature: void removeSource(TopicMapSourceIF source)
focal_class.class_method_signature: TopicMapSourceManager.refresh()
focal_class.full_signature: @Override public synchronized void refresh()
focal_class.identifier: refresh
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void refresh()
focal_class.class_method_signature: TopicMapSourceManager.createReferenceKey(TopicMapReferenceIF ref)
focal_class.full_signature: protected String createReferenceKey(TopicMapReferenceIF ref)
focal_class.identifier: createReferenceKey
focal_class.modifiers: protected
focal_class.parameters: (TopicMapReferenceIF ref)
focal_class.return: String
focal_class.signature: String createReferenceKey(TopicMapReferenceIF ref)
focal_class.class_method_signature: TopicMapSourceManager.close()
focal_class.full_signature: @Override public synchronized void close()
focal_class.identifier: close
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: TopicMapSourceManager.getReferenceById(String reference_id)
focal_class.full_signature: @Deprecated public TopicMapReferenceIF getReferenceById(String reference_id)
focal_class.identifier: getReferenceById
focal_class.modifiers: @Deprecated public
focal_class.parameters: (String reference_id)
focal_class.return: TopicMapReferenceIF
focal_class.signature: TopicMapReferenceIF getReferenceById(String reference_id)
focal_class.class_method_signature: TopicMapSourceManager.hasId(String reference_id)
focal_class.full_signature: @Deprecated public boolean hasId(String reference_id)
focal_class.identifier: hasId
focal_class.modifiers: @Deprecated public
focal_class.parameters: (String reference_id)
focal_class.return: boolean
focal_class.signature: boolean hasId(String reference_id)
focal_class.class_method_signature: TopicMapSourceManager.getIds()
focal_class.full_signature: @Deprecated public Collection<String> getIds()
focal_class.identifier: getIds
focal_class.modifiers: @Deprecated public
focal_class.parameters: ()
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getIds()
focal_method.body: @Override
    public synchronized void refresh() {
      // Clear reference map
      refreshed = false;
      keyrefs.clear();
      refkeys.clear();
  
      // Refresh sources and rebuild reference map
      Iterator<TopicMapSourceIF> siter = sources.iterator();
      while (siter.hasNext()) {
        TopicMapSourceIF source = siter.next();
        try {
          // Refresh source
          source.refresh();
          Iterator<TopicMapReferenceIF> riter = source.getReferences().iterator();
          while (riter.hasNext()) {
            TopicMapReferenceIF ref = riter.next();
            // Create reference key and update reference map
            String refkey = createReferenceKey(ref);
            // ! System.out.println("KEY: " + refkey + " <= " + ref);
            keyrefs.put(refkey, ref);
            refkeys.put(ref, refkey);
          }
        } catch (Throwable t) {
          log.error("Could not refresh topic map source " + source + ". Ignoring.", t);
        }
      }
      refreshed = true;
    }
focal_method.class_method_signature: TopicMapSourceManager.refresh()
focal_method.full_signature: @Override public synchronized void refresh()
focal_method.identifier: refresh
focal_method.invocations: clear clear iterator hasNext next refresh iterator getReferences hasNext next createReferenceKey put put error
focal_method.modifiers: @Override public synchronized
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void refresh()