Exemplo n.º 1
0
 public NxsGroup(IGroup parent, PathNexus path, NxsDataset dataset) {
   try {
     List<IContainer> list = dataset.getRootGroup().findAllContainerByPath(path.getValue());
     List<IGroup> groups = new ArrayList<IGroup>();
     for (IContainer container : list) {
       if (container.getModelType() == ModelType.Group) {
         groups.add((IGroup) container);
       }
     }
     IGroup[] array = new IGroup[groups.size()];
     mGroups = groups.toArray(array);
   } catch (NoResultException e) {
   }
   mParent = parent;
   mDataset = dataset;
   mChildren = null;
   mIsChildUpdate = false;
 }