EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.seff.navigator]

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelNavigatorGroup.java]

nameclass, %method, %block, %line, %
PalladioComponentModelNavigatorGroup.java0%   (0/1)0%   (0/9)0%   (0/71)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelNavigatorGroup0%   (0/1)0%   (0/9)0%   (0/71)0%   (0/19)
PalladioComponentModelNavigatorGroup (String, String, Object): void 0%   (0/1)0%   (0/15)0%   (0/5)
addChild (Object): void 0%   (0/1)0%   (0/6)0%   (0/2)
addChildren (Collection): void 0%   (0/1)0%   (0/6)0%   (0/2)
equals (Object): boolean 0%   (0/1)0%   (0/22)0%   (0/5)
getChildren (): Object [] 0%   (0/1)0%   (0/4)0%   (0/1)
getGroupName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getIcon (): String 0%   (0/1)0%   (0/3)0%   (0/1)
hashCode (): int 0%   (0/1)0%   (0/4)0%   (0/1)
isEmpty (): boolean 0%   (0/1)0%   (0/8)0%   (0/1)

1/*
2 *Copyright 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.navigator;
5 
6import java.util.Collection;
7import java.util.LinkedList;
8 
9/**
10 * @generated
11 */
12public class PalladioComponentModelNavigatorGroup extends
13                PalladioComponentModelAbstractNavigatorItem {
14 
15        /**
16         * @generated
17         */
18        private String myGroupName;
19 
20        /**
21         * @generated
22         */
23        private String myIcon;
24 
25        /**
26         * @generated
27         */
28        private Collection myChildren = new LinkedList();
29 
30        /**
31         * @generated
32         */
33        PalladioComponentModelNavigatorGroup(String groupName, String icon,
34                        Object parent) {
35                super(parent);
36                myGroupName = groupName;
37                myIcon = icon;
38        }
39 
40        /**
41         * @generated
42         */
43        public String getGroupName() {
44                return myGroupName;
45        }
46 
47        /**
48         * @generated
49         */
50        public String getIcon() {
51                return myIcon;
52        }
53 
54        /**
55         * @generated
56         */
57        public Object[] getChildren() {
58                return myChildren.toArray();
59        }
60 
61        /**
62         * @generated
63         */
64        public void addChildren(Collection children) {
65                myChildren.addAll(children);
66        }
67 
68        /**
69         * @generated
70         */
71        public void addChild(Object child) {
72                myChildren.add(child);
73        }
74 
75        /**
76         * @generated
77         */
78        public boolean isEmpty() {
79                return myChildren.size() == 0;
80        }
81 
82        /**
83         * @generated
84         */
85        public boolean equals(Object obj) {
86                if (obj instanceof de.uka.ipd.sdq.pcm.gmf.seff.navigator.PalladioComponentModelNavigatorGroup) {
87                        de.uka.ipd.sdq.pcm.gmf.seff.navigator.PalladioComponentModelNavigatorGroup anotherGroup = (de.uka.ipd.sdq.pcm.gmf.seff.navigator.PalladioComponentModelNavigatorGroup) obj;
88                        if (getGroupName().equals(anotherGroup.getGroupName())) {
89                                return getParent().equals(anotherGroup.getParent());
90                        }
91                }
92                return super.equals(obj);
93        }
94 
95        /**
96         * @generated
97         */
98        public int hashCode() {
99                return getGroupName().hashCode();
100        }
101 
102}

[all classes][de.uka.ipd.sdq.pcm.gmf.seff.navigator]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov