Package org.gumtree.data.gdm.core

Examples of org.gumtree.data.gdm.core.DataItem


   * @return the dictionary of curGroup descending nodes
   */
  public static Map<String, String> createDictionary(final Group curGroup)
  {
    HashMap<String, String> dico = new HashMap<String, String>();
    DataItem item;
    List<?> dataItems;
    List<?> groups;
    Group group;

    // Get all data nodes (means NeXus dataset) sons of currently opened node
    dataItems = curGroup.getDataItems();

    // Add each node to the dictionary
    String key, path;
    for (Object name : dataItems) {
      item = (DataItem) name;

      // Fill the map: "unique_node_name" => "path/to/reach/node"
      key  = item.getName().replace("/", "_");
      path = "/" + item.getName();
      dico.put(key, path);
    }

    // Get all groups directly belonging to the current node
    groups = curGroup.getGroups();
View Full Code Here


        n.printStackTrace();
      }

      // Get the group node corresponding to the current key
      group = dataset.getRootGroup();
      DataItem toto = (DataItem) group.getObjectByPath(container.getPathResolver()
          .resolvePath(key));
      group = toto.getParentGroup();

      // Scan node's attribute
      List<?> list_attr = group.getAttributes();
      for (Object name : list_attr) {
        Attribute attr = (Attribute) name;
View Full Code Here

TOP

Related Classes of org.gumtree.data.gdm.core.DataItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.