1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pcm.designdecision.util; |
8 | |
9 | import de.uka.ipd.sdq.pcm.designdecision.*; |
10 | |
11 | import java.util.Map; |
12 | |
13 | import org.eclipse.emf.common.util.DiagnosticChain; |
14 | import org.eclipse.emf.common.util.ResourceLocator; |
15 | |
16 | import org.eclipse.emf.ecore.EPackage; |
17 | |
18 | import org.eclipse.emf.ecore.util.EObjectValidator; |
19 | |
20 | /** |
21 | * <!-- begin-user-doc --> |
22 | * The <b>Validator</b> for the model. |
23 | * <!-- end-user-doc --> |
24 | * @see de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage |
25 | * @generated |
26 | */ |
27 | public class designdecisionValidator extends EObjectValidator { |
28 | /** |
29 | * The cached model package |
30 | * <!-- begin-user-doc --> |
31 | * <!-- end-user-doc --> |
32 | * @generated |
33 | */ |
34 | public static final designdecisionValidator INSTANCE = new designdecisionValidator(); |
35 | |
36 | /** |
37 | * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package. |
38 | * <!-- begin-user-doc --> |
39 | * <!-- end-user-doc --> |
40 | * @see org.eclipse.emf.common.util.Diagnostic#getSource() |
41 | * @see org.eclipse.emf.common.util.Diagnostic#getCode() |
42 | * @generated |
43 | */ |
44 | public static final String DIAGNOSTIC_SOURCE = "de.uka.ipd.sdq.pcm.designdecision"; |
45 | |
46 | /** |
47 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Number Of Choices Must Equal Number Of Decisions' of 'Candidates'. |
48 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> |
50 | * @generated |
51 | */ |
52 | public static final int CANDIDATES__NUMBER_OF_CHOICES_MUST_EQUAL_NUMBER_OF_DECISIONS = 1; |
53 | |
54 | /** |
55 | * A constant with a fixed name that can be used as the base value for additional hand written constants. |
56 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> |
58 | * @generated |
59 | */ |
60 | private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 1; |
61 | |
62 | /** |
63 | * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. |
64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> |
66 | * @generated |
67 | */ |
68 | protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; |
69 | |
70 | /** |
71 | * Creates an instance of the switch. |
72 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> |
74 | * @generated |
75 | */ |
76 | public designdecisionValidator() { |
77 | super(); |
78 | } |
79 | |
80 | /** |
81 | * Returns the package of this validator switch. |
82 | * <!-- begin-user-doc --> |
83 | * <!-- end-user-doc --> |
84 | * @generated |
85 | */ |
86 | @Override |
87 | protected EPackage getEPackage() { |
88 | return designdecisionPackage.eINSTANCE; |
89 | } |
90 | |
91 | /** |
92 | * Calls <code>validateXXX</code> for the corresponding classifier of the model. |
93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> |
95 | * @generated |
96 | */ |
97 | @Override |
98 | protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { |
99 | switch (classifierID) { |
100 | case designdecisionPackage.DEGREE_OF_FREEDOM_INSTANCE: |
101 | return validateDegreeOfFreedomInstance((DegreeOfFreedomInstance)value, diagnostics, context); |
102 | case designdecisionPackage.CHOICE: |
103 | return validateChoice((Choice)value, diagnostics, context); |
104 | case designdecisionPackage.RANGE_DEGREE: |
105 | return validateRangeDegree((RangeDegree)value, diagnostics, context); |
106 | case designdecisionPackage.DATA_TYPE_DEGREE: |
107 | return validateDataTypeDegree((DataTypeDegree)value, diagnostics, context); |
108 | case designdecisionPackage.CLASS_DEGREE: |
109 | return validateClassDegree((ClassDegree)value, diagnostics, context); |
110 | case designdecisionPackage.CLASS_CHOICE: |
111 | return validateClassChoice((ClassChoice)value, diagnostics, context); |
112 | case designdecisionPackage.CONTINOUS_RANGE_CHOICE: |
113 | return validateContinousRangeChoice((ContinousRangeChoice)value, diagnostics, context); |
114 | case designdecisionPackage.CONTINUOUS_PROCESSING_RATE_DEGREE: |
115 | return validateContinuousProcessingRateDegree((ContinuousProcessingRateDegree)value, diagnostics, context); |
116 | case designdecisionPackage.CONTINUOUS_RANGE_DEGREE: |
117 | return validateContinuousRangeDegree((ContinuousRangeDegree)value, diagnostics, context); |
118 | case designdecisionPackage.PROCESSING_RATE_DEGREE: |
119 | return validateProcessingRateDegree((ProcessingRateDegree)value, diagnostics, context); |
120 | case designdecisionPackage.PROCESSING_RESOURCE_DEGREE: |
121 | return validateProcessingResourceDegree((ProcessingResourceDegree)value, diagnostics, context); |
122 | case designdecisionPackage.ALLOCATION_DEGREE: |
123 | return validateAllocationDegree((AllocationDegree)value, diagnostics, context); |
124 | case designdecisionPackage.CLASS_AS_REFERENCE_DEGREE: |
125 | return validateClassAsReferenceDegree((ClassAsReferenceDegree)value, diagnostics, context); |
126 | case designdecisionPackage.ASSEMBLED_COMPONENT_DEGREE: |
127 | return validateAssembledComponentDegree((AssembledComponentDegree)value, diagnostics, context); |
128 | case designdecisionPackage.DISCRETE_RANGE_DEGREE: |
129 | return validateDiscreteRangeDegree((DiscreteRangeDegree)value, diagnostics, context); |
130 | case designdecisionPackage.DISCRETE_DEGREE: |
131 | return validateDiscreteDegree((DiscreteDegree)value, diagnostics, context); |
132 | case designdecisionPackage.DISCRETE_RANGE_CHOICE: |
133 | return validateDiscreteRangeChoice((DiscreteRangeChoice)value, diagnostics, context); |
134 | case designdecisionPackage.RESOURCE_CONTAINER_REPLICATION_DEGREE: |
135 | return validateResourceContainerReplicationDegree((ResourceContainerReplicationDegree)value, diagnostics, context); |
136 | case designdecisionPackage.DECISION_SPACE: |
137 | return validateDecisionSpace((DecisionSpace)value, diagnostics, context); |
138 | case designdecisionPackage.CANDIDATE: |
139 | return validateCandidate((Candidate)value, diagnostics, context); |
140 | case designdecisionPackage.CANDIDATES: |
141 | return validateCandidates((Candidates)value, diagnostics, context); |
142 | case designdecisionPackage.FEATURE_CONFIG_DEGREE: |
143 | return validateFeatureConfigDegree((FeatureConfigDegree)value, diagnostics, context); |
144 | case designdecisionPackage.FEATURE_GROUP_DEGREE: |
145 | return validateFeatureGroupDegree((FeatureGroupDegree)value, diagnostics, context); |
146 | case designdecisionPackage.FEATURE_SUBSET: |
147 | return validateFeatureSubset((FeatureSubset)value, diagnostics, context); |
148 | case designdecisionPackage.OPTIONAL_FEATURE_DEGREE: |
149 | return validateOptionalFeatureDegree((OptionalFeatureDegree)value, diagnostics, context); |
150 | case designdecisionPackage.DISCRETE_PROCESSING_RATE_DEGREE: |
151 | return validateDiscreteProcessingRateDegree((DiscreteProcessingRateDegree)value, diagnostics, context); |
152 | case designdecisionPackage.CAPACITY_DEGREE: |
153 | return validateCapacityDegree((CapacityDegree)value, diagnostics, context); |
154 | case designdecisionPackage.SCHEDULING_POLICY_DEGREE: |
155 | return validateSchedulingPolicyDegree((SchedulingPolicyDegree)value, diagnostics, context); |
156 | case designdecisionPackage.ENUM_DEGREE: |
157 | return validateEnumDegree((EnumDegree)value, diagnostics, context); |
158 | case designdecisionPackage.UNORDERED_DEGREE: |
159 | return validateUnorderedDegree((UnorderedDegree)value, diagnostics, context); |
160 | case designdecisionPackage.SCHEDULING_POLICY_CHOICE: |
161 | return validateSchedulingPolicyChoice((SchedulingPolicyChoice)value, diagnostics, context); |
162 | case designdecisionPackage.CLASS_WITH_COPY_DEGREE: |
163 | return validateClassWithCopyDegree((ClassWithCopyDegree)value, diagnostics, context); |
164 | case designdecisionPackage.RESOURCE_SELECTION_DEGREE: |
165 | return validateResourceSelectionDegree((ResourceSelectionDegree)value, diagnostics, context); |
166 | case designdecisionPackage.STRING_SET_DEGREE: |
167 | return validateStringSetDegree((StringSetDegree)value, diagnostics, context); |
168 | case designdecisionPackage.DISCRETE_COMPONENT_PARAM_DEGREE: |
169 | return validateDiscreteComponentParamDegree((DiscreteComponentParamDegree)value, diagnostics, context); |
170 | case designdecisionPackage.CONTINUOUS_COMPONENT_PARAM_DEGREE: |
171 | return validateContinuousComponentParamDegree((ContinuousComponentParamDegree)value, diagnostics, context); |
172 | case designdecisionPackage.STRING_COMPONENT_PARAM_DEGREE: |
173 | return validateStringComponentParamDegree((StringComponentParamDegree)value, diagnostics, context); |
174 | case designdecisionPackage.UNORDERED_PRIMITIVE_DEGREE: |
175 | return validateUnorderedPrimitiveDegree((UnorderedPrimitiveDegree)value, diagnostics, context); |
176 | case designdecisionPackage.NUMBER_OF_CORES_AS_RANGE_DEGREE: |
177 | return validateNumberOfCoresAsRangeDegree((NumberOfCoresAsRangeDegree)value, diagnostics, context); |
178 | case designdecisionPackage.NUMBER_OF_CORES_DEGREE: |
179 | return validateNumberOfCoresDegree((NumberOfCoresDegree)value, diagnostics, context); |
180 | case designdecisionPackage.RESOURCE_CONTAINER_REPLICATION_DEGREE_WITH_COMPONENT_CHANGE: |
181 | return validateResourceContainerReplicationDegreeWithComponentChange((ResourceContainerReplicationDegreeWithComponentChange)value, diagnostics, context); |
182 | case designdecisionPackage.EXCHANGE_COMPONENT_RULE: |
183 | return validateExchangeComponentRule((ExchangeComponentRule)value, diagnostics, context); |
184 | case designdecisionPackage.ORDERED_DATA_TYPE_DEGREE: |
185 | return validateOrderedDataTypeDegree((OrderedDataTypeDegree)value, diagnostics, context); |
186 | case designdecisionPackage.ORDERED_INTEGER_DEGREE: |
187 | return validateOrderedIntegerDegree((OrderedIntegerDegree)value, diagnostics, context); |
188 | case designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE: |
189 | return validateNumberOfCoresAsListDegree((NumberOfCoresAsListDegree)value, diagnostics, context); |
190 | default: |
191 | return true; |
192 | } |
193 | } |
194 | |
195 | /** |
196 | * <!-- begin-user-doc --> |
197 | * <!-- end-user-doc --> |
198 | * @generated |
199 | */ |
200 | public boolean validateDegreeOfFreedomInstance(DegreeOfFreedomInstance degreeOfFreedomInstance, DiagnosticChain diagnostics, Map<Object, Object> context) { |
201 | return validate_EveryDefaultConstraint(degreeOfFreedomInstance, diagnostics, context); |
202 | } |
203 | |
204 | /** |
205 | * <!-- begin-user-doc --> |
206 | * <!-- end-user-doc --> |
207 | * @generated |
208 | */ |
209 | public boolean validateChoice(Choice choice, DiagnosticChain diagnostics, Map<Object, Object> context) { |
210 | return validate_EveryDefaultConstraint(choice, diagnostics, context); |
211 | } |
212 | |
213 | /** |
214 | * <!-- begin-user-doc --> |
215 | * <!-- end-user-doc --> |
216 | * @generated |
217 | */ |
218 | public boolean validateRangeDegree(RangeDegree rangeDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
219 | return validate_EveryDefaultConstraint(rangeDegree, diagnostics, context); |
220 | } |
221 | |
222 | /** |
223 | * <!-- begin-user-doc --> |
224 | * <!-- end-user-doc --> |
225 | * @generated |
226 | */ |
227 | public boolean validateDataTypeDegree(DataTypeDegree dataTypeDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
228 | return validate_EveryDefaultConstraint(dataTypeDegree, diagnostics, context); |
229 | } |
230 | |
231 | /** |
232 | * <!-- begin-user-doc --> |
233 | * <!-- end-user-doc --> |
234 | * @generated |
235 | */ |
236 | public boolean validateClassDegree(ClassDegree classDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
237 | return validate_EveryDefaultConstraint(classDegree, diagnostics, context); |
238 | } |
239 | |
240 | /** |
241 | * <!-- begin-user-doc --> |
242 | * <!-- end-user-doc --> |
243 | * @generated |
244 | */ |
245 | public boolean validateClassChoice(ClassChoice classChoice, DiagnosticChain diagnostics, Map<Object, Object> context) { |
246 | return validate_EveryDefaultConstraint(classChoice, diagnostics, context); |
247 | } |
248 | |
249 | /** |
250 | * <!-- begin-user-doc --> |
251 | * <!-- end-user-doc --> |
252 | * @generated |
253 | */ |
254 | public boolean validateContinousRangeChoice(ContinousRangeChoice continousRangeChoice, DiagnosticChain diagnostics, Map<Object, Object> context) { |
255 | return validate_EveryDefaultConstraint(continousRangeChoice, diagnostics, context); |
256 | } |
257 | |
258 | /** |
259 | * <!-- begin-user-doc --> |
260 | * <!-- end-user-doc --> |
261 | * @generated |
262 | */ |
263 | public boolean validateContinuousProcessingRateDegree(ContinuousProcessingRateDegree continuousProcessingRateDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
264 | return validate_EveryDefaultConstraint(continuousProcessingRateDegree, diagnostics, context); |
265 | } |
266 | |
267 | /** |
268 | * <!-- begin-user-doc --> |
269 | * <!-- end-user-doc --> |
270 | * @generated |
271 | */ |
272 | public boolean validateContinuousRangeDegree(ContinuousRangeDegree continuousRangeDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
273 | return validate_EveryDefaultConstraint(continuousRangeDegree, diagnostics, context); |
274 | } |
275 | |
276 | /** |
277 | * <!-- begin-user-doc --> |
278 | * <!-- end-user-doc --> |
279 | * @generated |
280 | */ |
281 | public boolean validateProcessingRateDegree(ProcessingRateDegree processingRateDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
282 | return validate_EveryDefaultConstraint(processingRateDegree, diagnostics, context); |
283 | } |
284 | |
285 | /** |
286 | * <!-- begin-user-doc --> |
287 | * <!-- end-user-doc --> |
288 | * @generated |
289 | */ |
290 | public boolean validateProcessingResourceDegree(ProcessingResourceDegree processingResourceDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
291 | return validate_EveryDefaultConstraint(processingResourceDegree, diagnostics, context); |
292 | } |
293 | |
294 | /** |
295 | * <!-- begin-user-doc --> |
296 | * <!-- end-user-doc --> |
297 | * @generated |
298 | */ |
299 | public boolean validateAllocationDegree(AllocationDegree allocationDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
300 | return validate_EveryDefaultConstraint(allocationDegree, diagnostics, context); |
301 | } |
302 | |
303 | /** |
304 | * <!-- begin-user-doc --> |
305 | * <!-- end-user-doc --> |
306 | * @generated |
307 | */ |
308 | public boolean validateClassAsReferenceDegree(ClassAsReferenceDegree classAsReferenceDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
309 | return validate_EveryDefaultConstraint(classAsReferenceDegree, diagnostics, context); |
310 | } |
311 | |
312 | /** |
313 | * <!-- begin-user-doc --> |
314 | * <!-- end-user-doc --> |
315 | * @generated |
316 | */ |
317 | public boolean validateAssembledComponentDegree(AssembledComponentDegree assembledComponentDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
318 | return validate_EveryDefaultConstraint(assembledComponentDegree, diagnostics, context); |
319 | } |
320 | |
321 | /** |
322 | * <!-- begin-user-doc --> |
323 | * <!-- end-user-doc --> |
324 | * @generated |
325 | */ |
326 | public boolean validateDiscreteRangeDegree(DiscreteRangeDegree discreteRangeDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
327 | return validate_EveryDefaultConstraint(discreteRangeDegree, diagnostics, context); |
328 | } |
329 | |
330 | /** |
331 | * <!-- begin-user-doc --> |
332 | * <!-- end-user-doc --> |
333 | * @generated |
334 | */ |
335 | public boolean validateDiscreteDegree(DiscreteDegree discreteDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
336 | return validate_EveryDefaultConstraint(discreteDegree, diagnostics, context); |
337 | } |
338 | |
339 | /** |
340 | * <!-- begin-user-doc --> |
341 | * <!-- end-user-doc --> |
342 | * @generated |
343 | */ |
344 | public boolean validateDiscreteRangeChoice(DiscreteRangeChoice discreteRangeChoice, DiagnosticChain diagnostics, Map<Object, Object> context) { |
345 | return validate_EveryDefaultConstraint(discreteRangeChoice, diagnostics, context); |
346 | } |
347 | |
348 | /** |
349 | * <!-- begin-user-doc --> |
350 | * <!-- end-user-doc --> |
351 | * @generated |
352 | */ |
353 | public boolean validateResourceContainerReplicationDegree(ResourceContainerReplicationDegree resourceContainerReplicationDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
354 | return validate_EveryDefaultConstraint(resourceContainerReplicationDegree, diagnostics, context); |
355 | } |
356 | |
357 | /** |
358 | * <!-- begin-user-doc --> |
359 | * <!-- end-user-doc --> |
360 | * @generated |
361 | */ |
362 | public boolean validateDecisionSpace(DecisionSpace decisionSpace, DiagnosticChain diagnostics, Map<Object, Object> context) { |
363 | return validate_EveryDefaultConstraint(decisionSpace, diagnostics, context); |
364 | } |
365 | |
366 | /** |
367 | * <!-- begin-user-doc --> |
368 | * <!-- end-user-doc --> |
369 | * @generated |
370 | */ |
371 | public boolean validateCandidate(Candidate candidate, DiagnosticChain diagnostics, Map<Object, Object> context) { |
372 | return validate_EveryDefaultConstraint(candidate, diagnostics, context); |
373 | } |
374 | |
375 | /** |
376 | * <!-- begin-user-doc --> |
377 | * <!-- end-user-doc --> |
378 | * @generated |
379 | */ |
380 | public boolean validateCandidates(Candidates candidates, DiagnosticChain diagnostics, Map<Object, Object> context) { |
381 | boolean result = validate_EveryMultiplicityConforms(candidates, diagnostics, context); |
382 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(candidates, diagnostics, context); |
383 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(candidates, diagnostics, context); |
384 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(candidates, diagnostics, context); |
385 | if (result || diagnostics != null) result &= validate_UniqueID(candidates, diagnostics, context); |
386 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(candidates, diagnostics, context); |
387 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(candidates, diagnostics, context); |
388 | if (result || diagnostics != null) result &= validateCandidates_numberOfChoicesMustEqualNumberOfDecisions(candidates, diagnostics, context); |
389 | return result; |
390 | } |
391 | |
392 | /** |
393 | * Validates the numberOfChoicesMustEqualNumberOfDecisions constraint of '<em>Candidates</em>'. |
394 | * <!-- begin-user-doc --> |
395 | * <!-- end-user-doc --> |
396 | * @generated |
397 | */ |
398 | public boolean validateCandidates_numberOfChoicesMustEqualNumberOfDecisions(Candidates candidates, DiagnosticChain diagnostics, Map<Object, Object> context) { |
399 | return candidates.numberOfChoicesMustEqualNumberOfDecisions(diagnostics, context); |
400 | } |
401 | |
402 | /** |
403 | * <!-- begin-user-doc --> |
404 | * <!-- end-user-doc --> |
405 | * @generated |
406 | */ |
407 | public boolean validateFeatureConfigDegree(FeatureConfigDegree featureConfigDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
408 | return validate_EveryDefaultConstraint(featureConfigDegree, diagnostics, context); |
409 | } |
410 | |
411 | /** |
412 | * <!-- begin-user-doc --> |
413 | * <!-- end-user-doc --> |
414 | * @generated |
415 | */ |
416 | public boolean validateFeatureGroupDegree(FeatureGroupDegree featureGroupDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
417 | return validate_EveryDefaultConstraint(featureGroupDegree, diagnostics, context); |
418 | } |
419 | |
420 | /** |
421 | * <!-- begin-user-doc --> |
422 | * <!-- end-user-doc --> |
423 | * @generated |
424 | */ |
425 | public boolean validateFeatureSubset(FeatureSubset featureSubset, DiagnosticChain diagnostics, Map<Object, Object> context) { |
426 | return validate_EveryDefaultConstraint(featureSubset, diagnostics, context); |
427 | } |
428 | |
429 | /** |
430 | * <!-- begin-user-doc --> |
431 | * <!-- end-user-doc --> |
432 | * @generated |
433 | */ |
434 | public boolean validateOptionalFeatureDegree(OptionalFeatureDegree optionalFeatureDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
435 | return validate_EveryDefaultConstraint(optionalFeatureDegree, diagnostics, context); |
436 | } |
437 | |
438 | /** |
439 | * <!-- begin-user-doc --> |
440 | * <!-- end-user-doc --> |
441 | * @generated |
442 | */ |
443 | public boolean validateDiscreteProcessingRateDegree(DiscreteProcessingRateDegree discreteProcessingRateDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
444 | return validate_EveryDefaultConstraint(discreteProcessingRateDegree, diagnostics, context); |
445 | } |
446 | |
447 | /** |
448 | * <!-- begin-user-doc --> |
449 | * <!-- end-user-doc --> |
450 | * @generated |
451 | */ |
452 | public boolean validateCapacityDegree(CapacityDegree capacityDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
453 | return validate_EveryDefaultConstraint(capacityDegree, diagnostics, context); |
454 | } |
455 | |
456 | /** |
457 | * <!-- begin-user-doc --> |
458 | * <!-- end-user-doc --> |
459 | * @generated |
460 | */ |
461 | public boolean validateSchedulingPolicyDegree(SchedulingPolicyDegree schedulingPolicyDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
462 | return validate_EveryDefaultConstraint(schedulingPolicyDegree, diagnostics, context); |
463 | } |
464 | |
465 | /** |
466 | * <!-- begin-user-doc --> |
467 | * <!-- end-user-doc --> |
468 | * @generated |
469 | */ |
470 | public boolean validateEnumDegree(EnumDegree enumDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
471 | return validate_EveryDefaultConstraint(enumDegree, diagnostics, context); |
472 | } |
473 | |
474 | /** |
475 | * <!-- begin-user-doc --> |
476 | * <!-- end-user-doc --> |
477 | * @generated |
478 | */ |
479 | public boolean validateUnorderedDegree(UnorderedDegree unorderedDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
480 | return validate_EveryDefaultConstraint(unorderedDegree, diagnostics, context); |
481 | } |
482 | |
483 | /** |
484 | * <!-- begin-user-doc --> |
485 | * <!-- end-user-doc --> |
486 | * @generated |
487 | */ |
488 | public boolean validateSchedulingPolicyChoice(SchedulingPolicyChoice schedulingPolicyChoice, DiagnosticChain diagnostics, Map<Object, Object> context) { |
489 | return validate_EveryDefaultConstraint(schedulingPolicyChoice, diagnostics, context); |
490 | } |
491 | |
492 | /** |
493 | * <!-- begin-user-doc --> |
494 | * <!-- end-user-doc --> |
495 | * @generated |
496 | */ |
497 | public boolean validateClassWithCopyDegree(ClassWithCopyDegree classWithCopyDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
498 | return validate_EveryDefaultConstraint(classWithCopyDegree, diagnostics, context); |
499 | } |
500 | |
501 | /** |
502 | * <!-- begin-user-doc --> |
503 | * <!-- end-user-doc --> |
504 | * @generated |
505 | */ |
506 | public boolean validateResourceSelectionDegree(ResourceSelectionDegree resourceSelectionDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
507 | return validate_EveryDefaultConstraint(resourceSelectionDegree, diagnostics, context); |
508 | } |
509 | |
510 | /** |
511 | * <!-- begin-user-doc --> |
512 | * <!-- end-user-doc --> |
513 | * @generated |
514 | */ |
515 | public boolean validateStringSetDegree(StringSetDegree stringSetDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
516 | return validate_EveryDefaultConstraint(stringSetDegree, diagnostics, context); |
517 | } |
518 | |
519 | /** |
520 | * <!-- begin-user-doc --> |
521 | * <!-- end-user-doc --> |
522 | * @generated |
523 | */ |
524 | public boolean validateDiscreteComponentParamDegree(DiscreteComponentParamDegree discreteComponentParamDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
525 | return validate_EveryDefaultConstraint(discreteComponentParamDegree, diagnostics, context); |
526 | } |
527 | |
528 | /** |
529 | * <!-- begin-user-doc --> |
530 | * <!-- end-user-doc --> |
531 | * @generated |
532 | */ |
533 | public boolean validateContinuousComponentParamDegree(ContinuousComponentParamDegree continuousComponentParamDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
534 | return validate_EveryDefaultConstraint(continuousComponentParamDegree, diagnostics, context); |
535 | } |
536 | |
537 | /** |
538 | * <!-- begin-user-doc --> |
539 | * <!-- end-user-doc --> |
540 | * @generated |
541 | */ |
542 | public boolean validateStringComponentParamDegree(StringComponentParamDegree stringComponentParamDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
543 | return validate_EveryDefaultConstraint(stringComponentParamDegree, diagnostics, context); |
544 | } |
545 | |
546 | /** |
547 | * <!-- begin-user-doc --> |
548 | * <!-- end-user-doc --> |
549 | * @generated |
550 | */ |
551 | public boolean validateUnorderedPrimitiveDegree(UnorderedPrimitiveDegree unorderedPrimitiveDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
552 | return validate_EveryDefaultConstraint(unorderedPrimitiveDegree, diagnostics, context); |
553 | } |
554 | |
555 | /** |
556 | * <!-- begin-user-doc --> |
557 | * <!-- end-user-doc --> |
558 | * @generated |
559 | */ |
560 | public boolean validateNumberOfCoresAsRangeDegree(NumberOfCoresAsRangeDegree numberOfCoresAsRangeDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
561 | return validate_EveryDefaultConstraint(numberOfCoresAsRangeDegree, diagnostics, context); |
562 | } |
563 | |
564 | /** |
565 | * <!-- begin-user-doc --> |
566 | * <!-- end-user-doc --> |
567 | * @generated |
568 | */ |
569 | public boolean validateNumberOfCoresDegree(NumberOfCoresDegree numberOfCoresDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
570 | return validate_EveryDefaultConstraint(numberOfCoresDegree, diagnostics, context); |
571 | } |
572 | |
573 | /** |
574 | * <!-- begin-user-doc --> |
575 | * <!-- end-user-doc --> |
576 | * @generated |
577 | */ |
578 | public boolean validateResourceContainerReplicationDegreeWithComponentChange(ResourceContainerReplicationDegreeWithComponentChange resourceContainerReplicationDegreeWithComponentChange, DiagnosticChain diagnostics, Map<Object, Object> context) { |
579 | return validate_EveryDefaultConstraint(resourceContainerReplicationDegreeWithComponentChange, diagnostics, context); |
580 | } |
581 | |
582 | /** |
583 | * <!-- begin-user-doc --> |
584 | * <!-- end-user-doc --> |
585 | * @generated |
586 | */ |
587 | public boolean validateExchangeComponentRule(ExchangeComponentRule exchangeComponentRule, DiagnosticChain diagnostics, Map<Object, Object> context) { |
588 | return validate_EveryDefaultConstraint(exchangeComponentRule, diagnostics, context); |
589 | } |
590 | |
591 | /** |
592 | * <!-- begin-user-doc --> |
593 | * <!-- end-user-doc --> |
594 | * @generated |
595 | */ |
596 | public boolean validateOrderedDataTypeDegree(OrderedDataTypeDegree orderedDataTypeDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
597 | return validate_EveryDefaultConstraint(orderedDataTypeDegree, diagnostics, context); |
598 | } |
599 | |
600 | /** |
601 | * <!-- begin-user-doc --> |
602 | * <!-- end-user-doc --> |
603 | * @generated |
604 | */ |
605 | public boolean validateOrderedIntegerDegree(OrderedIntegerDegree orderedIntegerDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
606 | return validate_EveryDefaultConstraint(orderedIntegerDegree, diagnostics, context); |
607 | } |
608 | |
609 | /** |
610 | * <!-- begin-user-doc --> |
611 | * <!-- end-user-doc --> |
612 | * @generated |
613 | */ |
614 | public boolean validateNumberOfCoresAsListDegree(NumberOfCoresAsListDegree numberOfCoresAsListDegree, DiagnosticChain diagnostics, Map<Object, Object> context) { |
615 | return validate_EveryDefaultConstraint(numberOfCoresAsListDegree, diagnostics, context); |
616 | } |
617 | |
618 | /** |
619 | * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. |
620 | * <!-- begin-user-doc --> |
621 | * <!-- end-user-doc --> |
622 | * @generated |
623 | */ |
624 | @Override |
625 | public ResourceLocator getResourceLocator() { |
626 | // TODO |
627 | // Specialize this to return a resource locator for messages specific to this validator. |
628 | // Ensure that you remove @generated or mark it @generated NOT |
629 | return super.getResourceLocator(); |
630 | } |
631 | |
632 | } //designdecisionValidator |