@Override public List<IContainer> findAllOccurrences(IKey key) throws NoResultException { String pathStr = findDictionary().getPath(key).toString(); Path path = new Path(NxsFactory.getInstance(), pathStr); path.removeUnsetParameters(); return findAllContainerByPath(path.getValue()); }
@Override public IContainer findContainer(String shortName) { IKey key = NxsFactory.getInstance().createKey(shortName); IContainer result; try { List<IContainer> list = findAllOccurrences(key); if (list.size() > 0) { result = list.get(0); } else { result = null; } } catch (NoResultException e) { result = null; } return result; }
@Override public IDictionary findDictionary() { IDictionary dictionary = null; if (mGroups.length > 0) { IFactory factory = NxsFactory.getInstance(); dictionary = new NxsDictionary(); try { dictionary.readEntries( Factory.getMappingDictionaryFolder(factory) + NxsDictionary.detectDictionaryFile((NxsDataset) getDataset())); } catch (FileAccessException e) { dictionary = null; e.printStackTrace(); } // dictionary = mGroups[0].findDictionary(); } return dictionary; }
@Override public IGroup findGroup(String keyName) { IKey key = NxsFactory.getInstance().createKey(keyName); return findGroup(key); }
@Override public IDataItem findDataItem(String keyName) { IKey key = NxsFactory.getInstance().createKey(keyName); return findDataItem(key); }