01: package newprocess.diagram.navigator;
02:
03: import java.util.Collection;
04: import java.util.LinkedList;
05:
06: /**
07: * @generated
08: */
09: public class New_processNavigatorGroup extends
10: New_processAbstractNavigatorItem {
11:
12: /**
13: * @generated
14: */
15: private String myGroupName;
16:
17: /**
18: * @generated
19: */
20: private String myIcon;
21:
22: /**
23: * @generated
24: */
25: private Collection myChildren = new LinkedList();
26:
27: /**
28: * @generated
29: */
30: New_processNavigatorGroup(String groupName, String icon,
31: Object parent) {
32: super (parent);
33: myGroupName = groupName;
34: myIcon = icon;
35: }
36:
37: /**
38: * @generated
39: */
40: public String getGroupName() {
41: return myGroupName;
42: }
43:
44: /**
45: * @generated
46: */
47: public String getIcon() {
48: return myIcon;
49: }
50:
51: /**
52: * @generated
53: */
54: public Object[] getChildren() {
55: return myChildren.toArray();
56: }
57:
58: /**
59: * @generated
60: */
61: public void addChildren(Collection children) {
62: myChildren.addAll(children);
63: }
64:
65: /**
66: * @generated
67: */
68: public void addChild(Object child) {
69: myChildren.add(child);
70: }
71:
72: /**
73: * @generated
74: */
75: public boolean isEmpty() {
76: return myChildren.size() == 0;
77: }
78:
79: /**
80: * @generated
81: */
82: public boolean equals(Object obj) {
83: if (obj instanceof New_processNavigatorGroup) {
84: New_processNavigatorGroup anotherGroup = (New_processNavigatorGroup) obj;
85: if (getGroupName().equals(anotherGroup.getGroupName())) {
86: return getParent().equals(anotherGroup.getParent());
87: }
88: }
89: return super.equals(obj);
90: }
91:
92: }
|