1 46 package net.jforum.util; 47 48 import java.util.ArrayList ; 49 50 61 public class GroupNode 62 { 63 private String name; 64 private int id; 65 66 69 private ArrayList extraNodes; 70 71 74 public GroupNode() 75 { 76 this.extraNodes = new ArrayList (); 77 } 78 79 85 public GroupNode getNode(int pos) 86 { 87 return (GroupNode)this.extraNodes.get(pos); 88 } 89 90 95 public void addNode(GroupNode n) 96 { 97 this.extraNodes.add(n); 98 } 99 100 105 public int size() 106 { 107 return this.extraNodes.size(); 108 } 109 110 115 public void setName(String name) 116 { 117 this.name = name; 118 } 119 120 125 public void setId(int id) 126 { 127 this.id = id; 128 } 129 130 135 public String getName() 136 { 137 return this.name; 138 } 139 140 145 public int getId() 146 { 147 return this.id; 148 } 149 } 150 | Popular Tags |