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

COVERAGE SUMMARY FOR SOURCE FILE [ComponentType.java]

nameclass, %method, %block, %line, %
ComponentType.java0%   (0/1)0%   (0/11)0%   (0/142)0%   (0/34)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComponentType0%   (0/1)0%   (0/11)0%   (0/142)0%   (0/34)
<static initializer> 0%   (0/1)0%   (0/45)0%   (0/10)
ComponentType (String, int, int, String, String): void 0%   (0/1)0%   (0/14)0%   (0/5)
get (String): ComponentType 0%   (0/1)0%   (0/21)0%   (0/5)
get (int): ComponentType 0%   (0/1)0%   (0/8)0%   (0/4)
getByName (String): ComponentType 0%   (0/1)0%   (0/21)0%   (0/5)
getLiteral (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getValue (): int 0%   (0/1)0%   (0/3)0%   (0/1)
toString (): String 0%   (0/1)0%   (0/3)0%   (0/1)
valueOf (String): ComponentType 0%   (0/1)0%   (0/5)0%   (0/1)
values (): ComponentType [] 0%   (0/1)0%   (0/16)0%   (0/1)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.repository;
7 
8import java.util.Arrays;
9import java.util.Collections;
10import java.util.List;
11 
12import org.eclipse.emf.common.util.Enumerator;
13 
14/**
15 * <!-- begin-user-doc -->
16 * A representation of the literals of the enumeration '<em><b>Component Type</b></em>',
17 * and utility methods for working with them.
18 * <!-- end-user-doc -->
19 * @see de.uka.ipd.sdq.pcm.repository.RepositoryPackage#getComponentType()
20 * @model
21 * @generated
22 */
23public enum ComponentType implements Enumerator {
24        /**
25         * The '<em><b>BUSINESS COMPONENT</b></em>' literal object.
26         * <!-- begin-user-doc -->
27         * <!-- end-user-doc -->
28         * @see #BUSINESS_COMPONENT_VALUE
29         * @generated
30         * @ordered
31         */
32        BUSINESS_COMPONENT(0, "BUSINESS_COMPONENT", "BUSINESS_COMPONENT"),
33 
34        /**
35         * The '<em><b>INFRASTRUCTURE COMPONENT</b></em>' literal object.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @see #INFRASTRUCTURE_COMPONENT_VALUE
39         * @generated
40         * @ordered
41         */
42        INFRASTRUCTURE_COMPONENT(1, "INFRASTRUCTURE_COMPONENT", "INFRASTRUCTURE_COMPONENT");
43 
44        /**
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
50 
51        /**
52         * The '<em><b>BUSINESS COMPONENT</b></em>' literal value.
53         * <!-- begin-user-doc -->
54         * <p>
55         * If the meaning of '<em><b>BUSINESS COMPONENT</b></em>' literal object isn't clear,
56         * there really should be more of a description here...
57         * </p>
58         * <!-- end-user-doc -->
59         * @see #BUSINESS_COMPONENT
60         * @model
61         * @generated
62         * @ordered
63         */
64        public static final int BUSINESS_COMPONENT_VALUE = 0;
65 
66        /**
67         * The '<em><b>INFRASTRUCTURE COMPONENT</b></em>' literal value.
68         * <!-- begin-user-doc -->
69         * <p>
70         * If the meaning of '<em><b>INFRASTRUCTURE COMPONENT</b></em>' literal object isn't clear,
71         * there really should be more of a description here...
72         * </p>
73         * <!-- end-user-doc -->
74         * @see #INFRASTRUCTURE_COMPONENT
75         * @model
76         * @generated
77         * @ordered
78         */
79        public static final int INFRASTRUCTURE_COMPONENT_VALUE = 1;
80 
81        /**
82         * An array of all the '<em><b>Component Type</b></em>' enumerators.
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        private static final ComponentType[] VALUES_ARRAY =
88                new ComponentType[] {
89                        BUSINESS_COMPONENT,
90                        INFRASTRUCTURE_COMPONENT,
91                };
92 
93        /**
94         * A public read-only list of all the '<em><b>Component Type</b></em>' enumerators.
95         * <!-- begin-user-doc -->
96         * <!-- end-user-doc -->
97         * @generated
98         */
99        public static final List<ComponentType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
100 
101        /**
102         * Returns the '<em><b>Component Type</b></em>' literal with the specified literal value.
103         * <!-- begin-user-doc -->
104         * <!-- end-user-doc -->
105         * @generated
106         */
107        public static ComponentType get(String literal) {
108                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
109                        ComponentType result = VALUES_ARRAY[i];
110                        if (result.toString().equals(literal)) {
111                                return result;
112                        }
113                }
114                return null;
115        }
116 
117        /**
118         * Returns the '<em><b>Component Type</b></em>' literal with the specified name.
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public static ComponentType getByName(String name) {
124                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
125                        ComponentType result = VALUES_ARRAY[i];
126                        if (result.getName().equals(name)) {
127                                return result;
128                        }
129                }
130                return null;
131        }
132 
133        /**
134         * Returns the '<em><b>Component Type</b></em>' literal with the specified integer value.
135         * <!-- begin-user-doc -->
136         * <!-- end-user-doc -->
137         * @generated
138         */
139        public static ComponentType get(int value) {
140                switch (value) {
141                        case BUSINESS_COMPONENT_VALUE: return BUSINESS_COMPONENT;
142                        case INFRASTRUCTURE_COMPONENT_VALUE: return INFRASTRUCTURE_COMPONENT;
143                }
144                return null;
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        private final int value;
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        private final String name;
160 
161        /**
162         * <!-- begin-user-doc -->
163         * <!-- end-user-doc -->
164         * @generated
165         */
166        private final String literal;
167 
168        /**
169         * Only this class can construct instances.
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        private ComponentType(int value, String name, String literal) {
175                this.value = value;
176                this.name = name;
177                this.literal = literal;
178        }
179 
180        /**
181         * <!-- begin-user-doc -->
182         * <!-- end-user-doc -->
183         * @generated
184         */
185        public int getValue() {
186          return value;
187        }
188 
189        /**
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @generated
193         */
194        public String getName() {
195          return name;
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public String getLiteral() {
204          return literal;
205        }
206 
207        /**
208         * Returns the literal value of the enumerator, which is its string representation.
209         * <!-- begin-user-doc -->
210         * <!-- end-user-doc -->
211         * @generated
212         */
213        @Override
214        public String toString() {
215                return literal;
216        }
217        
218} //ComponentType

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