Skip to content

Package: ValidationNotification

ValidationNotification

nameinstructionbranchcomplexitylinemethod
ValidationNotification(EObject)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getEventType()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getFeature()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getFeatureID(Class)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewBooleanValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewByteValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewCharValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewDoubleValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewFloatValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewIntValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewLongValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewShortValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewStringValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNewValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getNotifier()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getOldBooleanValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldByteValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldCharValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldDoubleValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldFloatValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldIntValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldLongValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldShortValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldStringValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOldValue()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPosition()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
isReset()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
isTouch()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
merge(Notification)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
wasSet()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.internal.validation;
15:
16: import org.eclipse.emf.common.notify.Notification;
17: import org.eclipse.emf.ecore.EObject;
18:
19: /**
20: * @author Eugen Neufeld
21: *
22: */
23: public class ValidationNotification implements Notification {
24:
25:         private final EObject toValidate;
26:
27:         /**
28:          * Creates a {@link ValidationNotification} which is used to trigger a validation of a specific EObject.
29:          *
30:          * @param toValidate the {@link EObject} to validate
31:          */
32:         public ValidationNotification(EObject toValidate) {
33:                 this.toValidate = toValidate;
34:         }
35:
36:         /**
37:          * {@inheritDoc}
38:          *
39:          * @see org.eclipse.emf.common.notify.Notification#getNotifier()
40:          */
41:         @Override
42:         public Object getNotifier() {
43:                 return toValidate;
44:         }
45:
46:         /**
47:          * {@inheritDoc}
48:          *
49:          * @see org.eclipse.emf.common.notify.Notification#getEventType()
50:          */
51:         @Override
52:         public int getEventType() {
53:                 // TODO Auto-generated method stub
54:                 return 0;
55:         }
56:
57:         /**
58:          * {@inheritDoc}
59:          *
60:          * @see org.eclipse.emf.common.notify.Notification#getFeatureID(java.lang.Class)
61:          */
62:         @Override
63:         public int getFeatureID(Class<?> expectedClass) {
64:                 return NO_FEATURE_ID;
65:         }
66:
67:         /**
68:          * {@inheritDoc}
69:          *
70:          * @see org.eclipse.emf.common.notify.Notification#getFeature()
71:          */
72:         @Override
73:         public Object getFeature() {
74:                 // TODO Auto-generated method stub
75:                 return null;
76:         }
77:
78:         /**
79:          * {@inheritDoc}
80:          *
81:          * @see org.eclipse.emf.common.notify.Notification#getOldValue()
82:          */
83:         @Override
84:         public Object getOldValue() {
85:                 // TODO Auto-generated method stub
86:                 return null;
87:         }
88:
89:         /**
90:          * {@inheritDoc}
91:          *
92:          * @see org.eclipse.emf.common.notify.Notification#getNewValue()
93:          */
94:         @Override
95:         public Object getNewValue() {
96:                 // TODO Auto-generated method stub
97:                 return null;
98:         }
99:
100:         /**
101:          * {@inheritDoc}
102:          *
103:          * @see org.eclipse.emf.common.notify.Notification#wasSet()
104:          */
105:         @Override
106:         public boolean wasSet() {
107:                 // TODO Auto-generated method stub
108:                 return false;
109:         }
110:
111:         /**
112:          * {@inheritDoc}
113:          *
114:          * @see org.eclipse.emf.common.notify.Notification#isTouch()
115:          */
116:         @Override
117:         public boolean isTouch() {
118:                 return true;
119:         }
120:
121:         /**
122:          * {@inheritDoc}
123:          *
124:          * @see org.eclipse.emf.common.notify.Notification#isReset()
125:          */
126:         @Override
127:         public boolean isReset() {
128:                 // TODO Auto-generated method stub
129:                 return false;
130:         }
131:
132:         /**
133:          * {@inheritDoc}
134:          *
135:          * @see org.eclipse.emf.common.notify.Notification#getPosition()
136:          */
137:         @Override
138:         public int getPosition() {
139:                 return NO_INDEX;
140:         }
141:
142:         /**
143:          * {@inheritDoc}
144:          *
145:          * @see org.eclipse.emf.common.notify.Notification#merge(org.eclipse.emf.common.notify.Notification)
146:          */
147:         @Override
148:         public boolean merge(Notification notification) {
149:                 // TODO Auto-generated method stub
150:                 return false;
151:         }
152:
153:         /**
154:          * {@inheritDoc}
155:          *
156:          * @see org.eclipse.emf.common.notify.Notification#getOldBooleanValue()
157:          */
158:         @Override
159:         public boolean getOldBooleanValue() {
160:                 // TODO Auto-generated method stub
161:                 return false;
162:         }
163:
164:         /**
165:          * {@inheritDoc}
166:          *
167:          * @see org.eclipse.emf.common.notify.Notification#getNewBooleanValue()
168:          */
169:         @Override
170:         public boolean getNewBooleanValue() {
171:                 // TODO Auto-generated method stub
172:                 return false;
173:         }
174:
175:         /**
176:          * {@inheritDoc}
177:          *
178:          * @see org.eclipse.emf.common.notify.Notification#getOldByteValue()
179:          */
180:         @Override
181:         public byte getOldByteValue() {
182:                 // TODO Auto-generated method stub
183:                 return 0;
184:         }
185:
186:         /**
187:          * {@inheritDoc}
188:          *
189:          * @see org.eclipse.emf.common.notify.Notification#getNewByteValue()
190:          */
191:         @Override
192:         public byte getNewByteValue() {
193:                 // TODO Auto-generated method stub
194:                 return 0;
195:         }
196:
197:         /**
198:          * {@inheritDoc}
199:          *
200:          * @see org.eclipse.emf.common.notify.Notification#getOldCharValue()
201:          */
202:         @Override
203:         public char getOldCharValue() {
204:                 // TODO Auto-generated method stub
205:                 return 0;
206:         }
207:
208:         /**
209:          * {@inheritDoc}
210:          *
211:          * @see org.eclipse.emf.common.notify.Notification#getNewCharValue()
212:          */
213:         @Override
214:         public char getNewCharValue() {
215:                 // TODO Auto-generated method stub
216:                 return 0;
217:         }
218:
219:         /**
220:          * {@inheritDoc}
221:          *
222:          * @see org.eclipse.emf.common.notify.Notification#getOldDoubleValue()
223:          */
224:         @Override
225:         public double getOldDoubleValue() {
226:                 // TODO Auto-generated method stub
227:                 return 0;
228:         }
229:
230:         /**
231:          * {@inheritDoc}
232:          *
233:          * @see org.eclipse.emf.common.notify.Notification#getNewDoubleValue()
234:          */
235:         @Override
236:         public double getNewDoubleValue() {
237:                 // TODO Auto-generated method stub
238:                 return 0;
239:         }
240:
241:         /**
242:          * {@inheritDoc}
243:          *
244:          * @see org.eclipse.emf.common.notify.Notification#getOldFloatValue()
245:          */
246:         @Override
247:         public float getOldFloatValue() {
248:                 // TODO Auto-generated method stub
249:                 return 0;
250:         }
251:
252:         /**
253:          * {@inheritDoc}
254:          *
255:          * @see org.eclipse.emf.common.notify.Notification#getNewFloatValue()
256:          */
257:         @Override
258:         public float getNewFloatValue() {
259:                 // TODO Auto-generated method stub
260:                 return 0;
261:         }
262:
263:         /**
264:          * {@inheritDoc}
265:          *
266:          * @see org.eclipse.emf.common.notify.Notification#getOldIntValue()
267:          */
268:         @Override
269:         public int getOldIntValue() {
270:                 // TODO Auto-generated method stub
271:                 return 0;
272:         }
273:
274:         /**
275:          * {@inheritDoc}
276:          *
277:          * @see org.eclipse.emf.common.notify.Notification#getNewIntValue()
278:          */
279:         @Override
280:         public int getNewIntValue() {
281:                 // TODO Auto-generated method stub
282:                 return 0;
283:         }
284:
285:         /**
286:          * {@inheritDoc}
287:          *
288:          * @see org.eclipse.emf.common.notify.Notification#getOldLongValue()
289:          */
290:         @Override
291:         public long getOldLongValue() {
292:                 // TODO Auto-generated method stub
293:                 return 0;
294:         }
295:
296:         /**
297:          * {@inheritDoc}
298:          *
299:          * @see org.eclipse.emf.common.notify.Notification#getNewLongValue()
300:          */
301:         @Override
302:         public long getNewLongValue() {
303:                 // TODO Auto-generated method stub
304:                 return 0;
305:         }
306:
307:         /**
308:          * {@inheritDoc}
309:          *
310:          * @see org.eclipse.emf.common.notify.Notification#getOldShortValue()
311:          */
312:         @Override
313:         public short getOldShortValue() {
314:                 // TODO Auto-generated method stub
315:                 return 0;
316:         }
317:
318:         /**
319:          * {@inheritDoc}
320:          *
321:          * @see org.eclipse.emf.common.notify.Notification#getNewShortValue()
322:          */
323:         @Override
324:         public short getNewShortValue() {
325:                 // TODO Auto-generated method stub
326:                 return 0;
327:         }
328:
329:         /**
330:          * {@inheritDoc}
331:          *
332:          * @see org.eclipse.emf.common.notify.Notification#getOldStringValue()
333:          */
334:         @Override
335:         public String getOldStringValue() {
336:                 // TODO Auto-generated method stub
337:                 return null;
338:         }
339:
340:         /**
341:          * {@inheritDoc}
342:          *
343:          * @see org.eclipse.emf.common.notify.Notification#getNewStringValue()
344:          */
345:         @Override
346:         public String getNewStringValue() {
347:                 // TODO Auto-generated method stub
348:                 return null;
349:         }
350:
351: }