test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/configuration/TestDictionaryManager.java
test_class.identifier: TestDictionaryManager
test_class.superclass: extends AbstractTest
test_case.body: @Test
  	public void testLoadDictionaries() throws FileNotFoundException, WorkspaceSecurityException {
      	IDictionaryManager manager = SFLocalContext.getDefault().getDictionaryManager();
  		IDictionaryStructure dict = manager.getDictionary(SailfishURI.unsafeParse("Example"));
  
  		Assert.assertNotNull(dict);
  		Assert.assertEquals("example", dict.getNamespace());
  		dict = manager.getDictionary(SailfishURI.unsafeParse("TestAML"));
  		Assert.assertNotNull(dict);
  		Assert.assertEquals("TestAML", dict.getNamespace());
  	}
test_case.class_method_signature: TestDictionaryManager.testLoadDictionaries()
test_case.full_signature: @Test public void testLoadDictionaries()
test_case.identifier: testLoadDictionaries
test_case.invocations: getDictionaryManager getDefault getDictionary unsafeParse assertNotNull assertEquals getNamespace getDictionary unsafeParse assertNotNull assertEquals getNamespace
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLoadDictionaries()
focal_class.declarator: logger = LoggerFactory.getLogger(DictionaryManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(DictionaryManager.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: workspaceDispatcher
focal_class.modifier: private final
focal_class.original_string: private final IWorkspaceDispatcher workspaceDispatcher;
focal_class.type: IWorkspaceDispatcher
focal_class.var_name: workspaceDispatcher
focal_class.declarator: utilityManager
focal_class.modifier: private final
focal_class.original_string: private final UtilityManager utilityManager;
focal_class.type: UtilityManager
focal_class.var_name: utilityManager
focal_class.declarator: location = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<SailfishURI, String> location = new HashMap<>();
focal_class.type: Map<SailfishURI, String>
focal_class.var_name: location
focal_class.declarator: dictSettings = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<SailfishURI, DictionarySettings> dictSettings = new HashMap<>();
focal_class.type: Map<SailfishURI, DictionarySettings>
focal_class.var_name: dictSettings
focal_class.declarator: dicts = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<SailfishURI, IDictionaryStructure> dicts = new HashMap<>();
focal_class.type: Map<SailfishURI, IDictionaryStructure>
focal_class.var_name: dicts
focal_class.declarator: factories = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<SailfishURI, IMessageFactory> factories = new HashMap<>();
focal_class.type: Map<SailfishURI, IMessageFactory>
focal_class.var_name: factories
focal_class.declarator: pluginDictTitles = HashMultimap.create()
focal_class.modifier: private final
focal_class.original_string: private final SetMultimap<String, SailfishURI> pluginDictTitles = HashMultimap.create();
focal_class.type: SetMultimap<String, SailfishURI>
focal_class.var_name: pluginDictTitles
focal_class.declarator: dictLoadedCounter
focal_class.modifier: private
focal_class.original_string: private long dictLoadedCounter;
focal_class.type: long
focal_class.var_name: dictLoadedCounter
focal_class.declarator: dictionaryIds = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<SailfishURI, Long> dictionaryIds = new ConcurrentHashMap<>();
focal_class.type: Map<SailfishURI, Long>
focal_class.var_name: dictionaryIds
focal_class.declarator: eventListeners
focal_class.modifier: private final
focal_class.original_string: private final List<IDictionaryManagerListener> eventListeners;
focal_class.type: List<IDictionaryManagerListener>
focal_class.var_name: eventListeners
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/configuration/DictionaryManager.java
focal_class.identifier: DictionaryManager
focal_class.interfaces: implements IDictionaryManager, ILoadableManager
focal_class.class_method_signature: DictionaryManager.DictionaryManager(IWorkspaceDispatcher workspaceDispatcher, UtilityManager utilityManager)
focal_class.full_signature: public  DictionaryManager(IWorkspaceDispatcher workspaceDispatcher, UtilityManager utilityManager)
focal_class.identifier: DictionaryManager
focal_class.modifiers: public
focal_class.parameters: (IWorkspaceDispatcher workspaceDispatcher, UtilityManager utilityManager)
focal_class.signature:  DictionaryManager(IWorkspaceDispatcher workspaceDispatcher, UtilityManager utilityManager)
focal_class.class_method_signature: DictionaryManager.getDictionaryURIs()
focal_class.full_signature: @Override public synchronized Set<SailfishURI> getDictionaryURIs()
focal_class.identifier: getDictionaryURIs
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: Set<SailfishURI>
focal_class.signature: Set<SailfishURI> getDictionaryURIs()
focal_class.class_method_signature: DictionaryManager.getDictionaryURIs(String pluginAlias)
focal_class.full_signature: @Override public synchronized Set<SailfishURI> getDictionaryURIs(String pluginAlias)
focal_class.identifier: getDictionaryURIs
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (String pluginAlias)
focal_class.return: Set<SailfishURI>
focal_class.signature: Set<SailfishURI> getDictionaryURIs(String pluginAlias)
focal_class.class_method_signature: DictionaryManager.getCachedDictURIs()
focal_class.full_signature: @Override public synchronized List<SailfishURI> getCachedDictURIs()
focal_class.identifier: getCachedDictURIs
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: List<SailfishURI>
focal_class.signature: List<SailfishURI> getCachedDictURIs()
focal_class.class_method_signature: DictionaryManager.getDictionaryLocations()
focal_class.full_signature: @Override public synchronized Map<SailfishURI, String> getDictionaryLocations()
focal_class.identifier: getDictionaryLocations
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: Map<SailfishURI, String>
focal_class.signature: Map<SailfishURI, String> getDictionaryLocations()
focal_class.class_method_signature: DictionaryManager.load(ILoadableManagerContext context)
focal_class.full_signature: @Override public void load(ILoadableManagerContext context)
focal_class.identifier: load
focal_class.modifiers: @Override public
focal_class.parameters: (ILoadableManagerContext context)
focal_class.return: void
focal_class.signature: void load(ILoadableManagerContext context)
focal_class.class_method_signature: DictionaryManager.finalize(ILoadableManagerContext context)
focal_class.full_signature: @Override public void finalize(ILoadableManagerContext context)
focal_class.identifier: finalize
focal_class.modifiers: @Override public
focal_class.parameters: (ILoadableManagerContext context)
focal_class.return: void
focal_class.signature: void finalize(ILoadableManagerContext context)
focal_class.class_method_signature: DictionaryManager.getDictionary(SailfishURI uri)
focal_class.full_signature: @Override public synchronized IDictionaryStructure getDictionary(SailfishURI uri)
focal_class.identifier: getDictionary
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (SailfishURI uri)
focal_class.return: IDictionaryStructure
focal_class.signature: IDictionaryStructure getDictionary(SailfishURI uri)
focal_class.class_method_signature: DictionaryManager.getSettings(SailfishURI uri)
focal_class.full_signature: @Override public synchronized DictionarySettings getSettings(SailfishURI uri)
focal_class.identifier: getSettings
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (SailfishURI uri)
focal_class.return: DictionarySettings
focal_class.signature: DictionarySettings getSettings(SailfishURI uri)
focal_class.class_method_signature: DictionaryManager.getMessageFactory(SailfishURI uri)
focal_class.full_signature: @Override public synchronized IMessageFactory getMessageFactory(SailfishURI uri)
focal_class.identifier: getMessageFactory
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (SailfishURI uri)
focal_class.return: IMessageFactory
focal_class.signature: IMessageFactory getMessageFactory(SailfishURI uri)
focal_class.class_method_signature: DictionaryManager.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: DictionaryManager.invalidateDictionaries(SailfishURI ... uris)
focal_class.full_signature: @Override public synchronized void invalidateDictionaries(SailfishURI ... uris)
focal_class.identifier: invalidateDictionaries
focal_class.modifiers: @Override public synchronized
focal_class.parameters: (SailfishURI ... uris)
focal_class.return: void
focal_class.signature: void invalidateDictionaries(SailfishURI ... uris)
focal_class.class_method_signature: DictionaryManager.loadFactory(SailfishURI uri)
focal_class.full_signature: private IMessageFactory loadFactory(SailfishURI uri)
focal_class.identifier: loadFactory
focal_class.modifiers: private
focal_class.parameters: (SailfishURI uri)
focal_class.return: IMessageFactory
focal_class.signature: IMessageFactory loadFactory(SailfishURI uri)
focal_class.class_method_signature: DictionaryManager.createDictionary(String filename, DictionarySettings settings, boolean overwrite)
focal_class.full_signature: private synchronized void createDictionary(String filename, DictionarySettings settings, boolean overwrite)
focal_class.identifier: createDictionary
focal_class.modifiers: private synchronized
focal_class.parameters: (String filename, DictionarySettings settings, boolean overwrite)
focal_class.return: void
focal_class.signature: void createDictionary(String filename, DictionarySettings settings, boolean overwrite)
focal_class.class_method_signature: DictionaryManager.createMessageDictionary(String pathName)
focal_class.full_signature: @Override public IDictionaryStructure createMessageDictionary(String pathName)
focal_class.identifier: createMessageDictionary
focal_class.modifiers: @Override public
focal_class.parameters: (String pathName)
focal_class.return: IDictionaryStructure
focal_class.signature: IDictionaryStructure createMessageDictionary(String pathName)
focal_class.class_method_signature: DictionaryManager.createMessageFactory()
focal_class.full_signature: @Override public IMessageFactory createMessageFactory()
focal_class.identifier: createMessageFactory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: IMessageFactory
focal_class.signature: IMessageFactory createMessageFactory()
focal_class.class_method_signature: DictionaryManager.getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, Class<?>... argTypes)
focal_class.full_signature: @Override public UtilityInfo getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, Class<?>... argTypes)
focal_class.identifier: getUtilityInfo
focal_class.modifiers: @Override public
focal_class.parameters: (SailfishURI dictionaryURI, SailfishURI utilityURI, Class<?>... argTypes)
focal_class.return: UtilityInfo
focal_class.signature: UtilityInfo getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, Class<?>... argTypes)
focal_class.class_method_signature: DictionaryManager.getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, long line, long uid, String column, AlertCollector alertCollector, Class<?>... argTypes)
focal_class.full_signature: @Override public UtilityInfo getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, long line, long uid, String column, AlertCollector alertCollector, Class<?>... argTypes)
focal_class.identifier: getUtilityInfo
focal_class.modifiers: @Override public
focal_class.parameters: (SailfishURI dictionaryURI, SailfishURI utilityURI, long line, long uid, String column, AlertCollector alertCollector, Class<?>... argTypes)
focal_class.return: UtilityInfo
focal_class.signature: UtilityInfo getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, long line, long uid, String column, AlertCollector alertCollector, Class<?>... argTypes)
focal_class.class_method_signature: DictionaryManager.getUtilityURIs(SailfishURI dictionaryURI)
focal_class.full_signature: @Override public Set<SailfishURI> getUtilityURIs(SailfishURI dictionaryURI)
focal_class.identifier: getUtilityURIs
focal_class.modifiers: @Override public
focal_class.parameters: (SailfishURI dictionaryURI)
focal_class.return: Set<SailfishURI>
focal_class.signature: Set<SailfishURI> getUtilityURIs(SailfishURI dictionaryURI)
focal_class.class_method_signature: DictionaryManager.getDictionaryId(SailfishURI uri)
focal_class.full_signature: @Override public long getDictionaryId(SailfishURI uri)
focal_class.identifier: getDictionaryId
focal_class.modifiers: @Override public
focal_class.parameters: (SailfishURI uri)
focal_class.return: long
focal_class.signature: long getDictionaryId(SailfishURI uri)
focal_class.class_method_signature: DictionaryManager.subscribeForEvents(IDictionaryManagerListener listener)
focal_class.full_signature: @Override public void subscribeForEvents(IDictionaryManagerListener listener)
focal_class.identifier: subscribeForEvents
focal_class.modifiers: @Override public
focal_class.parameters: (IDictionaryManagerListener listener)
focal_class.return: void
focal_class.signature: void subscribeForEvents(IDictionaryManagerListener listener)
focal_class.class_method_signature: DictionaryManager.unSubscribeForEvents(IDictionaryManagerListener listener)
focal_class.full_signature: @Override public void unSubscribeForEvents(IDictionaryManagerListener listener)
focal_class.identifier: unSubscribeForEvents
focal_class.modifiers: @Override public
focal_class.parameters: (IDictionaryManagerListener listener)
focal_class.return: void
focal_class.signature: void unSubscribeForEvents(IDictionaryManagerListener listener)
focal_class.class_method_signature: DictionaryManager.invalidateEvent(Set<SailfishURI> uris)
focal_class.full_signature: public void invalidateEvent(Set<SailfishURI> uris)
focal_class.identifier: invalidateEvent
focal_class.modifiers: public
focal_class.parameters: (Set<SailfishURI> uris)
focal_class.return: void
focal_class.signature: void invalidateEvent(Set<SailfishURI> uris)
focal_class.class_method_signature: DictionaryManager.createEvent(SailfishURI uri)
focal_class.full_signature: public void createEvent(SailfishURI uri)
focal_class.identifier: createEvent
focal_class.modifiers: public
focal_class.parameters: (SailfishURI uri)
focal_class.return: void
focal_class.signature: void createEvent(SailfishURI uri)
focal_class.class_method_signature: DictionaryManager.registerDictionary(String title, boolean overwrite)
focal_class.full_signature: @Override public IDictionaryRegistrator registerDictionary(String title, boolean overwrite)
focal_class.identifier: registerDictionary
focal_class.modifiers: @Override public
focal_class.parameters: (String title, boolean overwrite)
focal_class.return: IDictionaryRegistrator
focal_class.signature: IDictionaryRegistrator registerDictionary(String title, boolean overwrite)
focal_class.class_method_signature: DictionaryManager.createStructureLoader(String pathName)
focal_class.full_signature: private IDictionaryStructureLoader createStructureLoader(String pathName)
focal_class.identifier: createStructureLoader
focal_class.modifiers: private
focal_class.parameters: (String pathName)
focal_class.return: IDictionaryStructureLoader
focal_class.signature: IDictionaryStructureLoader createStructureLoader(String pathName)
focal_method.body: @Override
  	public synchronized IDictionaryStructure getDictionary(SailfishURI uri) throws RuntimeException {
          IDictionaryStructure dict = SailfishURIUtils.getMatchingValue(uri, dicts, SailfishURIRule.REQUIRE_RESOURCE);
  
  		if (dict == null) {
  
  			this.dictLoadedCounter++;
              dictionaryIds.put(uri, dictLoadedCounter);
  
              String resource = SailfishURIUtils.getMatchingValue(uri, location, SailfishURIRule.REQUIRE_RESOURCE);
  
  			if (resource == null) {
  				throw new RuntimeException("No dictionary found for URI: " + uri);
  			}
  
              dict = createMessageDictionary(resource);
  
  			if (dict == null) {
  				throw new RuntimeException("Can not create dictionary for URI: " + uri +", resource = "+resource);
  			}
  
              dicts.put(uri, dict);
  
  			logger.info("Dictionary {} was loaded", uri);
  		}
  
  		return dict;
  	}
focal_method.class_method_signature: DictionaryManager.getDictionary(SailfishURI uri)
focal_method.full_signature: @Override public synchronized IDictionaryStructure getDictionary(SailfishURI uri)
focal_method.identifier: getDictionary
focal_method.invocations: getMatchingValue put getMatchingValue createMessageDictionary put info
focal_method.modifiers: @Override public synchronized
focal_method.parameters: (SailfishURI uri)
focal_method.return: IDictionaryStructure
focal_method.signature: IDictionaryStructure getDictionary(SailfishURI uri)