Ejemplo n.º 1
0
 @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());
 }
Ejemplo n.º 2
0
  @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;
  }
Ejemplo n.º 3
0
 @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;
 }
Ejemplo n.º 4
0
  @Override
  public IGroup findGroup(String keyName) {
    IKey key = NxsFactory.getInstance().createKey(keyName);

    return findGroup(key);
  }
Ejemplo n.º 5
0
  @Override
  public IDataItem findDataItem(String keyName) {
    IKey key = NxsFactory.getInstance().createKey(keyName);

    return findDataItem(key);
  }