View Javadoc
1 package net.sf.flock.tree; 2 3 import java.util.Iterator; 4 5 import net.sf.flock.SubscriptionInfoI; 6 7 public class PathTreeUtil { 8 9 private PathTreeUtil() { 10 } 11 12 public static ITreeNode getHierarchy(Iterator subscriptionInfos) { 13 BaseTreeNode root = new BaseTreeNode(""); 14 while (subscriptionInfos.hasNext()) { 15 SubscriptionInfoI sub = (SubscriptionInfoI) subscriptionInfos.next(); 16 root.getChild( sub.getMetaData().get("path"), true); 17 } 18 return root; 19 } 20 21 }

This page was automatically generated by Maven