1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.sensitivity.util; |
8 | |
9 | import de.uka.ipd.sdq.identifier.util.IdentifierValidator; |
10 | |
11 | import de.uka.ipd.sdq.sensitivity.*; |
12 | |
13 | import java.util.Map; |
14 | |
15 | import org.eclipse.emf.common.util.DiagnosticChain; |
16 | import org.eclipse.emf.common.util.ResourceLocator; |
17 | |
18 | import org.eclipse.emf.ecore.EPackage; |
19 | |
20 | import org.eclipse.emf.ecore.util.EObjectValidator; |
21 | |
22 | /** |
23 | * <!-- begin-user-doc --> |
24 | * The <b>Validator</b> for the model. |
25 | * <!-- end-user-doc --> |
26 | * @see de.uka.ipd.sdq.sensitivity.SensitivityPackage |
27 | * @generated |
28 | */ |
29 | public class SensitivityValidator extends EObjectValidator { |
30 | /** |
31 | * The cached model package |
32 | * <!-- begin-user-doc --> |
33 | * <!-- end-user-doc --> |
34 | * @generated |
35 | */ |
36 | public static final SensitivityValidator INSTANCE = new SensitivityValidator(); |
37 | |
38 | /** |
39 | * 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. |
40 | * <!-- begin-user-doc --> |
41 | * <!-- end-user-doc --> |
42 | * @see org.eclipse.emf.common.util.Diagnostic#getSource() |
43 | * @see org.eclipse.emf.common.util.Diagnostic#getCode() |
44 | * @generated |
45 | */ |
46 | public static final String DIAGNOSTIC_SOURCE = "de.uka.ipd.sdq.sensitivity"; |
47 | |
48 | /** |
49 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Component Reliability Parameter Must Have Double Variation' of 'Component Reliability Parameter'. |
50 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> |
52 | * @generated |
53 | */ |
54 | public static final int COMPONENT_RELIABILITY_PARAMETER__COMPONENT_RELIABILITY_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 1; |
55 | |
56 | /** |
57 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Internal Action Reliability Parameter Must Have Double Variation' of 'Internal Action Reliability Parameter'. |
58 | * <!-- begin-user-doc --> |
59 | * <!-- end-user-doc --> |
60 | * @generated |
61 | */ |
62 | public static final int INTERNAL_ACTION_RELIABILITY_PARAMETER__INTERNAL_ACTION_RELIABILITY_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 2; |
63 | |
64 | /** |
65 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Probabilistic Branch Parameter Must Have Double Variation' of 'Probabilistic Branch Parameter'. |
66 | * <!-- begin-user-doc --> |
67 | * <!-- end-user-doc --> |
68 | * @generated |
69 | */ |
70 | public static final int PROBABILISTIC_BRANCH_PARAMETER__PROBABILISTIC_BRANCH_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 3; |
71 | |
72 | /** |
73 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Hardware MTTF Parameter Must Have Double Variation' of 'Hardware MTTF Parameter'. |
74 | * <!-- begin-user-doc --> |
75 | * <!-- end-user-doc --> |
76 | * @generated |
77 | */ |
78 | public static final int HARDWARE_MTTF_PARAMETER__HARDWARE_MTTF_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 4; |
79 | |
80 | /** |
81 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Hardware MTTR Parameter Must Have Double Variation' of 'Hardware MTTR Parameter'. |
82 | * <!-- begin-user-doc --> |
83 | * <!-- end-user-doc --> |
84 | * @generated |
85 | */ |
86 | public static final int HARDWARE_MTTR_PARAMETER__HARDWARE_MTTR_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 5; |
87 | |
88 | /** |
89 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Resource MTTF Parameter Must Have Double Variation' of 'Resource MTTF Parameter'. |
90 | * <!-- begin-user-doc --> |
91 | * <!-- end-user-doc --> |
92 | * @generated |
93 | */ |
94 | public static final int RESOURCE_MTTF_PARAMETER__RESOURCE_MTTF_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 6; |
95 | |
96 | /** |
97 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Resource MTTR Parameter Must Have Double Variation' of 'Resource MTTR Parameter'. |
98 | * <!-- begin-user-doc --> |
99 | * <!-- end-user-doc --> |
100 | * @generated |
101 | */ |
102 | public static final int RESOURCE_MTTR_PARAMETER__RESOURCE_MTTR_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 7; |
103 | |
104 | /** |
105 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Network Reliability Parameter Must Have Double Variation' of 'Network Reliability Parameter'. |
106 | * <!-- begin-user-doc --> |
107 | * <!-- end-user-doc --> |
108 | * @generated |
109 | */ |
110 | public static final int NETWORK_RELIABILITY_PARAMETER__NETWORK_RELIABILITY_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 8; |
111 | |
112 | /** |
113 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Communication Link Parameter Must Have Double Variation' of 'Communication Link Reliability Parameter'. |
114 | * <!-- begin-user-doc --> |
115 | * <!-- end-user-doc --> |
116 | * @generated |
117 | */ |
118 | public static final int COMMUNICATION_LINK_RELIABILITY_PARAMETER__COMMUNICATION_LINK_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 9; |
119 | |
120 | /** |
121 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Software Reliability Parameter Must Have Double Variation' of 'Software Reliability Parameter'. |
122 | * <!-- begin-user-doc --> |
123 | * <!-- end-user-doc --> |
124 | * @generated |
125 | */ |
126 | public static final int SOFTWARE_RELIABILITY_PARAMETER__SOFTWARE_RELIABILITY_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 10; |
127 | |
128 | /** |
129 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'System Call Parameter Must Have String Sequence' of 'Variable Usage Parameter'. |
130 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> |
132 | * @generated |
133 | */ |
134 | public static final int VARIABLE_USAGE_PARAMETER__SYSTEM_CALL_PARAMETER_MUST_HAVE_STRING_SEQUENCE = 11; |
135 | |
136 | /** |
137 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Usage Branch Parameter Must Have Double Variation' of 'Usage Branch Parameter'. |
138 | * <!-- begin-user-doc --> |
139 | * <!-- end-user-doc --> |
140 | * @generated |
141 | */ |
142 | public static final int USAGE_BRANCH_PARAMETER__USAGE_BRANCH_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 12; |
143 | |
144 | /** |
145 | * The {@link org.eclipse.emf.common.util.Diagnostic#getCode() code} for constraint 'Software Failure Type Reliability Parameter Must Have Double Variation' of 'Software Failure Types Parameter'. |
146 | * <!-- begin-user-doc --> |
147 | * <!-- end-user-doc --> |
148 | * @generated |
149 | */ |
150 | public static final int SOFTWARE_FAILURE_TYPES_PARAMETER__SOFTWARE_FAILURE_TYPE_RELIABILITY_PARAMETER_MUST_HAVE_DOUBLE_VARIATION = 13; |
151 | |
152 | /** |
153 | * A constant with a fixed name that can be used as the base value for additional hand written constants. |
154 | * <!-- begin-user-doc --> |
155 | * <!-- end-user-doc --> |
156 | * @generated |
157 | */ |
158 | private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 13; |
159 | |
160 | /** |
161 | * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. |
162 | * <!-- begin-user-doc --> |
163 | * <!-- end-user-doc --> |
164 | * @generated |
165 | */ |
166 | protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; |
167 | |
168 | /** |
169 | * The cached base package validator. |
170 | * <!-- begin-user-doc --> |
171 | * <!-- end-user-doc --> |
172 | * @generated |
173 | */ |
174 | protected IdentifierValidator identifierValidator; |
175 | |
176 | /** |
177 | * Creates an instance of the switch. |
178 | * <!-- begin-user-doc --> |
179 | * <!-- end-user-doc --> |
180 | * @generated |
181 | */ |
182 | public SensitivityValidator() { |
183 | super(); |
184 | identifierValidator = IdentifierValidator.INSTANCE; |
185 | } |
186 | |
187 | /** |
188 | * Returns the package of this validator switch. |
189 | * <!-- begin-user-doc --> |
190 | * <!-- end-user-doc --> |
191 | * @generated |
192 | */ |
193 | @Override |
194 | protected EPackage getEPackage() { |
195 | return SensitivityPackage.eINSTANCE; |
196 | } |
197 | |
198 | /** |
199 | * Calls <code>validateXXX</code> for the corresponding classifier of the model. |
200 | * <!-- begin-user-doc --> |
201 | * <!-- end-user-doc --> |
202 | * @generated |
203 | */ |
204 | @Override |
205 | protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { |
206 | switch (classifierID) { |
207 | case SensitivityPackage.SENSITIVITY_CONFIGURATION: |
208 | return validateSensitivityConfiguration((SensitivityConfiguration)value, diagnostics, context); |
209 | case SensitivityPackage.SENSITIVITY_PARAMETER: |
210 | return validateSensitivityParameter((SensitivityParameter)value, diagnostics, context); |
211 | case SensitivityPackage.COMBINED_SENSITIVITY_PARAMETER: |
212 | return validateCombinedSensitivityParameter((CombinedSensitivityParameter)value, diagnostics, context); |
213 | case SensitivityPackage.SENSITIVITY_RESULT_SPECIFICATION: |
214 | return validateSensitivityResultSpecification((SensitivityResultSpecification)value, diagnostics, context); |
215 | case SensitivityPackage.SINGLE_SENSITIVITY_PARAMETER: |
216 | return validateSingleSensitivityParameter((SingleSensitivityParameter)value, diagnostics, context); |
217 | case SensitivityPackage.SENSITIVITY_PARAMETER_VARIATION: |
218 | return validateSensitivityParameterVariation((SensitivityParameterVariation)value, diagnostics, context); |
219 | case SensitivityPackage.COMPONENT_RELIABILITY_PARAMETER: |
220 | return validateComponentReliabilityParameter((ComponentReliabilityParameter)value, diagnostics, context); |
221 | case SensitivityPackage.DOUBLE_PARAMETER_VARIATION: |
222 | return validateDoubleParameterVariation((DoubleParameterVariation)value, diagnostics, context); |
223 | case SensitivityPackage.STRING_PARAMETER_SEQUENCE: |
224 | return validateStringParameterSequence((StringParameterSequence)value, diagnostics, context); |
225 | case SensitivityPackage.DOUBLE_PARAMETER_RANGE: |
226 | return validateDoubleParameterRange((DoubleParameterRange)value, diagnostics, context); |
227 | case SensitivityPackage.DOUBLE_PARAMETER_SEQUENCE: |
228 | return validateDoubleParameterSequence((DoubleParameterSequence)value, diagnostics, context); |
229 | case SensitivityPackage.DOUBLE_PARAMETER_FUNCTION: |
230 | return validateDoubleParameterFunction((DoubleParameterFunction)value, diagnostics, context); |
231 | case SensitivityPackage.INTERNAL_ACTION_RELIABILITY_PARAMETER: |
232 | return validateInternalActionReliabilityParameter((InternalActionReliabilityParameter)value, diagnostics, context); |
233 | case SensitivityPackage.PROBABILISTIC_BRANCH_PARAMETER: |
234 | return validateProbabilisticBranchParameter((ProbabilisticBranchParameter)value, diagnostics, context); |
235 | case SensitivityPackage.HARDWARE_MTTF_PARAMETER: |
236 | return validateHardwareMTTFParameter((HardwareMTTFParameter)value, diagnostics, context); |
237 | case SensitivityPackage.HARDWARE_MTTR_PARAMETER: |
238 | return validateHardwareMTTRParameter((HardwareMTTRParameter)value, diagnostics, context); |
239 | case SensitivityPackage.RESOURCE_MTTF_PARAMETER: |
240 | return validateResourceMTTFParameter((ResourceMTTFParameter)value, diagnostics, context); |
241 | case SensitivityPackage.RESOURCE_MTTR_PARAMETER: |
242 | return validateResourceMTTRParameter((ResourceMTTRParameter)value, diagnostics, context); |
243 | case SensitivityPackage.NETWORK_RELIABILITY_PARAMETER: |
244 | return validateNetworkReliabilityParameter((NetworkReliabilityParameter)value, diagnostics, context); |
245 | case SensitivityPackage.COMMUNICATION_LINK_RELIABILITY_PARAMETER: |
246 | return validateCommunicationLinkReliabilityParameter((CommunicationLinkReliabilityParameter)value, diagnostics, context); |
247 | case SensitivityPackage.SOFTWARE_RELIABILITY_PARAMETER: |
248 | return validateSoftwareReliabilityParameter((SoftwareReliabilityParameter)value, diagnostics, context); |
249 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER: |
250 | return validateVariableUsageParameter((VariableUsageParameter)value, diagnostics, context); |
251 | case SensitivityPackage.USAGE_BRANCH_PARAMETER: |
252 | return validateUsageBranchParameter((UsageBranchParameter)value, diagnostics, context); |
253 | case SensitivityPackage.DOUBLE_OFFSET_SEQUENCE: |
254 | return validateDoubleOffsetSequence((DoubleOffsetSequence)value, diagnostics, context); |
255 | case SensitivityPackage.SOFTWARE_FAILURE_TYPES_PARAMETER: |
256 | return validateSoftwareFailureTypesParameter((SoftwareFailureTypesParameter)value, diagnostics, context); |
257 | case SensitivityPackage.FAILURE_TYPE_RESULT_SPECIFICATION: |
258 | return validateFailureTypeResultSpecification((FailureTypeResultSpecification)value, diagnostics, context); |
259 | case SensitivityPackage.FAILURE_DIMENSION_RESULT_SPECIFICATION: |
260 | return validateFailureDimensionResultSpecification((FailureDimensionResultSpecification)value, diagnostics, context); |
261 | case SensitivityPackage.VARIABLE_USAGE_TYPE: |
262 | return validateVariableUsageType((VariableUsageType)value, diagnostics, context); |
263 | case SensitivityPackage.DOUBLE_OFFSET_TYPE: |
264 | return validateDoubleOffsetType((DoubleOffsetType)value, diagnostics, context); |
265 | case SensitivityPackage.FAILURE_DIMENSION: |
266 | return validateFailureDimension((FailureDimension)value, diagnostics, context); |
267 | default: |
268 | return true; |
269 | } |
270 | } |
271 | |
272 | /** |
273 | * <!-- begin-user-doc --> |
274 | * <!-- end-user-doc --> |
275 | * @generated |
276 | */ |
277 | public boolean validateSensitivityConfiguration(SensitivityConfiguration sensitivityConfiguration, DiagnosticChain diagnostics, Map<Object, Object> context) { |
278 | boolean result = validate_EveryMultiplicityConforms(sensitivityConfiguration, diagnostics, context); |
279 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(sensitivityConfiguration, diagnostics, context); |
280 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(sensitivityConfiguration, diagnostics, context); |
281 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(sensitivityConfiguration, diagnostics, context); |
282 | if (result || diagnostics != null) result &= validate_UniqueID(sensitivityConfiguration, diagnostics, context); |
283 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(sensitivityConfiguration, diagnostics, context); |
284 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(sensitivityConfiguration, diagnostics, context); |
285 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(sensitivityConfiguration, diagnostics, context); |
286 | return result; |
287 | } |
288 | |
289 | /** |
290 | * <!-- begin-user-doc --> |
291 | * <!-- end-user-doc --> |
292 | * @generated |
293 | */ |
294 | public boolean validateSensitivityParameter(SensitivityParameter sensitivityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
295 | boolean result = validate_EveryMultiplicityConforms(sensitivityParameter, diagnostics, context); |
296 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(sensitivityParameter, diagnostics, context); |
297 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(sensitivityParameter, diagnostics, context); |
298 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(sensitivityParameter, diagnostics, context); |
299 | if (result || diagnostics != null) result &= validate_UniqueID(sensitivityParameter, diagnostics, context); |
300 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(sensitivityParameter, diagnostics, context); |
301 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(sensitivityParameter, diagnostics, context); |
302 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(sensitivityParameter, diagnostics, context); |
303 | return result; |
304 | } |
305 | |
306 | /** |
307 | * <!-- begin-user-doc --> |
308 | * <!-- end-user-doc --> |
309 | * @generated |
310 | */ |
311 | public boolean validateCombinedSensitivityParameter(CombinedSensitivityParameter combinedSensitivityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
312 | boolean result = validate_EveryMultiplicityConforms(combinedSensitivityParameter, diagnostics, context); |
313 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(combinedSensitivityParameter, diagnostics, context); |
314 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(combinedSensitivityParameter, diagnostics, context); |
315 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(combinedSensitivityParameter, diagnostics, context); |
316 | if (result || diagnostics != null) result &= validate_UniqueID(combinedSensitivityParameter, diagnostics, context); |
317 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(combinedSensitivityParameter, diagnostics, context); |
318 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(combinedSensitivityParameter, diagnostics, context); |
319 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(combinedSensitivityParameter, diagnostics, context); |
320 | return result; |
321 | } |
322 | |
323 | /** |
324 | * <!-- begin-user-doc --> |
325 | * <!-- end-user-doc --> |
326 | * @generated |
327 | */ |
328 | public boolean validateSensitivityResultSpecification(SensitivityResultSpecification sensitivityResultSpecification, DiagnosticChain diagnostics, Map<Object, Object> context) { |
329 | boolean result = validate_EveryMultiplicityConforms(sensitivityResultSpecification, diagnostics, context); |
330 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(sensitivityResultSpecification, diagnostics, context); |
331 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(sensitivityResultSpecification, diagnostics, context); |
332 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(sensitivityResultSpecification, diagnostics, context); |
333 | if (result || diagnostics != null) result &= validate_UniqueID(sensitivityResultSpecification, diagnostics, context); |
334 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(sensitivityResultSpecification, diagnostics, context); |
335 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(sensitivityResultSpecification, diagnostics, context); |
336 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(sensitivityResultSpecification, diagnostics, context); |
337 | return result; |
338 | } |
339 | |
340 | /** |
341 | * <!-- begin-user-doc --> |
342 | * <!-- end-user-doc --> |
343 | * @generated |
344 | */ |
345 | public boolean validateSingleSensitivityParameter(SingleSensitivityParameter singleSensitivityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
346 | boolean result = validate_EveryMultiplicityConforms(singleSensitivityParameter, diagnostics, context); |
347 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(singleSensitivityParameter, diagnostics, context); |
348 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(singleSensitivityParameter, diagnostics, context); |
349 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(singleSensitivityParameter, diagnostics, context); |
350 | if (result || diagnostics != null) result &= validate_UniqueID(singleSensitivityParameter, diagnostics, context); |
351 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(singleSensitivityParameter, diagnostics, context); |
352 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(singleSensitivityParameter, diagnostics, context); |
353 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(singleSensitivityParameter, diagnostics, context); |
354 | return result; |
355 | } |
356 | |
357 | /** |
358 | * <!-- begin-user-doc --> |
359 | * <!-- end-user-doc --> |
360 | * @generated |
361 | */ |
362 | public boolean validateSensitivityParameterVariation(SensitivityParameterVariation sensitivityParameterVariation, DiagnosticChain diagnostics, Map<Object, Object> context) { |
363 | return validate_EveryDefaultConstraint(sensitivityParameterVariation, diagnostics, context); |
364 | } |
365 | |
366 | /** |
367 | * <!-- begin-user-doc --> |
368 | * <!-- end-user-doc --> |
369 | * @generated |
370 | */ |
371 | public boolean validateComponentReliabilityParameter(ComponentReliabilityParameter componentReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
372 | boolean result = validate_EveryMultiplicityConforms(componentReliabilityParameter, diagnostics, context); |
373 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(componentReliabilityParameter, diagnostics, context); |
374 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(componentReliabilityParameter, diagnostics, context); |
375 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(componentReliabilityParameter, diagnostics, context); |
376 | if (result || diagnostics != null) result &= validate_UniqueID(componentReliabilityParameter, diagnostics, context); |
377 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(componentReliabilityParameter, diagnostics, context); |
378 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(componentReliabilityParameter, diagnostics, context); |
379 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(componentReliabilityParameter, diagnostics, context); |
380 | if (result || diagnostics != null) result &= validateComponentReliabilityParameter_ComponentReliabilityParameterMustHaveDoubleVariation(componentReliabilityParameter, diagnostics, context); |
381 | return result; |
382 | } |
383 | |
384 | /** |
385 | * Validates the ComponentReliabilityParameterMustHaveDoubleVariation constraint of '<em>Component Reliability Parameter</em>'. |
386 | * <!-- begin-user-doc --> |
387 | * <!-- end-user-doc --> |
388 | * @generated |
389 | */ |
390 | public boolean validateComponentReliabilityParameter_ComponentReliabilityParameterMustHaveDoubleVariation(ComponentReliabilityParameter componentReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
391 | return componentReliabilityParameter.ComponentReliabilityParameterMustHaveDoubleVariation(diagnostics, context); |
392 | } |
393 | |
394 | /** |
395 | * <!-- begin-user-doc --> |
396 | * <!-- end-user-doc --> |
397 | * @generated |
398 | */ |
399 | public boolean validateDoubleParameterVariation(DoubleParameterVariation doubleParameterVariation, DiagnosticChain diagnostics, Map<Object, Object> context) { |
400 | return validate_EveryDefaultConstraint(doubleParameterVariation, diagnostics, context); |
401 | } |
402 | |
403 | /** |
404 | * <!-- begin-user-doc --> |
405 | * <!-- end-user-doc --> |
406 | * @generated |
407 | */ |
408 | public boolean validateStringParameterSequence(StringParameterSequence stringParameterSequence, DiagnosticChain diagnostics, Map<Object, Object> context) { |
409 | return validate_EveryDefaultConstraint(stringParameterSequence, diagnostics, context); |
410 | } |
411 | |
412 | /** |
413 | * <!-- begin-user-doc --> |
414 | * <!-- end-user-doc --> |
415 | * @generated |
416 | */ |
417 | public boolean validateDoubleParameterRange(DoubleParameterRange doubleParameterRange, DiagnosticChain diagnostics, Map<Object, Object> context) { |
418 | return validate_EveryDefaultConstraint(doubleParameterRange, diagnostics, context); |
419 | } |
420 | |
421 | /** |
422 | * <!-- begin-user-doc --> |
423 | * <!-- end-user-doc --> |
424 | * @generated |
425 | */ |
426 | public boolean validateDoubleParameterSequence(DoubleParameterSequence doubleParameterSequence, DiagnosticChain diagnostics, Map<Object, Object> context) { |
427 | return validate_EveryDefaultConstraint(doubleParameterSequence, diagnostics, context); |
428 | } |
429 | |
430 | /** |
431 | * <!-- begin-user-doc --> |
432 | * <!-- end-user-doc --> |
433 | * @generated |
434 | */ |
435 | public boolean validateDoubleParameterFunction(DoubleParameterFunction doubleParameterFunction, DiagnosticChain diagnostics, Map<Object, Object> context) { |
436 | return validate_EveryDefaultConstraint(doubleParameterFunction, diagnostics, context); |
437 | } |
438 | |
439 | /** |
440 | * <!-- begin-user-doc --> |
441 | * <!-- end-user-doc --> |
442 | * @generated |
443 | */ |
444 | public boolean validateInternalActionReliabilityParameter(InternalActionReliabilityParameter internalActionReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
445 | boolean result = validate_EveryMultiplicityConforms(internalActionReliabilityParameter, diagnostics, context); |
446 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(internalActionReliabilityParameter, diagnostics, context); |
447 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(internalActionReliabilityParameter, diagnostics, context); |
448 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(internalActionReliabilityParameter, diagnostics, context); |
449 | if (result || diagnostics != null) result &= validate_UniqueID(internalActionReliabilityParameter, diagnostics, context); |
450 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(internalActionReliabilityParameter, diagnostics, context); |
451 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(internalActionReliabilityParameter, diagnostics, context); |
452 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(internalActionReliabilityParameter, diagnostics, context); |
453 | if (result || diagnostics != null) result &= validateInternalActionReliabilityParameter_InternalActionReliabilityParameterMustHaveDoubleVariation(internalActionReliabilityParameter, diagnostics, context); |
454 | return result; |
455 | } |
456 | |
457 | /** |
458 | * Validates the InternalActionReliabilityParameterMustHaveDoubleVariation constraint of '<em>Internal Action Reliability Parameter</em>'. |
459 | * <!-- begin-user-doc --> |
460 | * <!-- end-user-doc --> |
461 | * @generated |
462 | */ |
463 | public boolean validateInternalActionReliabilityParameter_InternalActionReliabilityParameterMustHaveDoubleVariation(InternalActionReliabilityParameter internalActionReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
464 | return internalActionReliabilityParameter.InternalActionReliabilityParameterMustHaveDoubleVariation(diagnostics, context); |
465 | } |
466 | |
467 | /** |
468 | * <!-- begin-user-doc --> |
469 | * <!-- end-user-doc --> |
470 | * @generated |
471 | */ |
472 | public boolean validateProbabilisticBranchParameter(ProbabilisticBranchParameter probabilisticBranchParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
473 | boolean result = validate_EveryMultiplicityConforms(probabilisticBranchParameter, diagnostics, context); |
474 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(probabilisticBranchParameter, diagnostics, context); |
475 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(probabilisticBranchParameter, diagnostics, context); |
476 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(probabilisticBranchParameter, diagnostics, context); |
477 | if (result || diagnostics != null) result &= validate_UniqueID(probabilisticBranchParameter, diagnostics, context); |
478 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(probabilisticBranchParameter, diagnostics, context); |
479 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(probabilisticBranchParameter, diagnostics, context); |
480 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(probabilisticBranchParameter, diagnostics, context); |
481 | if (result || diagnostics != null) result &= validateProbabilisticBranchParameter_ProbabilisticBranchParameterMustHaveDoubleVariation(probabilisticBranchParameter, diagnostics, context); |
482 | return result; |
483 | } |
484 | |
485 | /** |
486 | * Validates the ProbabilisticBranchParameterMustHaveDoubleVariation constraint of '<em>Probabilistic Branch Parameter</em>'. |
487 | * <!-- begin-user-doc --> |
488 | * <!-- end-user-doc --> |
489 | * @generated |
490 | */ |
491 | public boolean validateProbabilisticBranchParameter_ProbabilisticBranchParameterMustHaveDoubleVariation(ProbabilisticBranchParameter probabilisticBranchParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
492 | return probabilisticBranchParameter.ProbabilisticBranchParameterMustHaveDoubleVariation(diagnostics, context); |
493 | } |
494 | |
495 | /** |
496 | * <!-- begin-user-doc --> |
497 | * <!-- end-user-doc --> |
498 | * @generated |
499 | */ |
500 | public boolean validateHardwareMTTFParameter(HardwareMTTFParameter hardwareMTTFParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
501 | boolean result = validate_EveryMultiplicityConforms(hardwareMTTFParameter, diagnostics, context); |
502 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(hardwareMTTFParameter, diagnostics, context); |
503 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(hardwareMTTFParameter, diagnostics, context); |
504 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(hardwareMTTFParameter, diagnostics, context); |
505 | if (result || diagnostics != null) result &= validate_UniqueID(hardwareMTTFParameter, diagnostics, context); |
506 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(hardwareMTTFParameter, diagnostics, context); |
507 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(hardwareMTTFParameter, diagnostics, context); |
508 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(hardwareMTTFParameter, diagnostics, context); |
509 | if (result || diagnostics != null) result &= validateHardwareMTTFParameter_HardwareMTTFParameterMustHaveDoubleVariation(hardwareMTTFParameter, diagnostics, context); |
510 | return result; |
511 | } |
512 | |
513 | /** |
514 | * Validates the HardwareMTTFParameterMustHaveDoubleVariation constraint of '<em>Hardware MTTF Parameter</em>'. |
515 | * <!-- begin-user-doc --> |
516 | * <!-- end-user-doc --> |
517 | * @generated |
518 | */ |
519 | public boolean validateHardwareMTTFParameter_HardwareMTTFParameterMustHaveDoubleVariation(HardwareMTTFParameter hardwareMTTFParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
520 | return hardwareMTTFParameter.HardwareMTTFParameterMustHaveDoubleVariation(diagnostics, context); |
521 | } |
522 | |
523 | /** |
524 | * <!-- begin-user-doc --> |
525 | * <!-- end-user-doc --> |
526 | * @generated |
527 | */ |
528 | public boolean validateHardwareMTTRParameter(HardwareMTTRParameter hardwareMTTRParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
529 | boolean result = validate_EveryMultiplicityConforms(hardwareMTTRParameter, diagnostics, context); |
530 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(hardwareMTTRParameter, diagnostics, context); |
531 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(hardwareMTTRParameter, diagnostics, context); |
532 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(hardwareMTTRParameter, diagnostics, context); |
533 | if (result || diagnostics != null) result &= validate_UniqueID(hardwareMTTRParameter, diagnostics, context); |
534 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(hardwareMTTRParameter, diagnostics, context); |
535 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(hardwareMTTRParameter, diagnostics, context); |
536 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(hardwareMTTRParameter, diagnostics, context); |
537 | if (result || diagnostics != null) result &= validateHardwareMTTRParameter_HardwareMTTRParameterMustHaveDoubleVariation(hardwareMTTRParameter, diagnostics, context); |
538 | return result; |
539 | } |
540 | |
541 | /** |
542 | * Validates the HardwareMTTRParameterMustHaveDoubleVariation constraint of '<em>Hardware MTTR Parameter</em>'. |
543 | * <!-- begin-user-doc --> |
544 | * <!-- end-user-doc --> |
545 | * @generated |
546 | */ |
547 | public boolean validateHardwareMTTRParameter_HardwareMTTRParameterMustHaveDoubleVariation(HardwareMTTRParameter hardwareMTTRParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
548 | return hardwareMTTRParameter.HardwareMTTRParameterMustHaveDoubleVariation(diagnostics, context); |
549 | } |
550 | |
551 | /** |
552 | * <!-- begin-user-doc --> |
553 | * <!-- end-user-doc --> |
554 | * @generated |
555 | */ |
556 | public boolean validateResourceMTTFParameter(ResourceMTTFParameter resourceMTTFParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
557 | boolean result = validate_EveryMultiplicityConforms(resourceMTTFParameter, diagnostics, context); |
558 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(resourceMTTFParameter, diagnostics, context); |
559 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(resourceMTTFParameter, diagnostics, context); |
560 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(resourceMTTFParameter, diagnostics, context); |
561 | if (result || diagnostics != null) result &= validate_UniqueID(resourceMTTFParameter, diagnostics, context); |
562 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(resourceMTTFParameter, diagnostics, context); |
563 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(resourceMTTFParameter, diagnostics, context); |
564 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(resourceMTTFParameter, diagnostics, context); |
565 | if (result || diagnostics != null) result &= validateResourceMTTFParameter_ResourceMTTFParameterMustHaveDoubleVariation(resourceMTTFParameter, diagnostics, context); |
566 | return result; |
567 | } |
568 | |
569 | /** |
570 | * Validates the ResourceMTTFParameterMustHaveDoubleVariation constraint of '<em>Resource MTTF Parameter</em>'. |
571 | * <!-- begin-user-doc --> |
572 | * <!-- end-user-doc --> |
573 | * @generated |
574 | */ |
575 | public boolean validateResourceMTTFParameter_ResourceMTTFParameterMustHaveDoubleVariation(ResourceMTTFParameter resourceMTTFParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
576 | return resourceMTTFParameter.ResourceMTTFParameterMustHaveDoubleVariation(diagnostics, context); |
577 | } |
578 | |
579 | /** |
580 | * <!-- begin-user-doc --> |
581 | * <!-- end-user-doc --> |
582 | * @generated |
583 | */ |
584 | public boolean validateResourceMTTRParameter(ResourceMTTRParameter resourceMTTRParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
585 | boolean result = validate_EveryMultiplicityConforms(resourceMTTRParameter, diagnostics, context); |
586 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(resourceMTTRParameter, diagnostics, context); |
587 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(resourceMTTRParameter, diagnostics, context); |
588 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(resourceMTTRParameter, diagnostics, context); |
589 | if (result || diagnostics != null) result &= validate_UniqueID(resourceMTTRParameter, diagnostics, context); |
590 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(resourceMTTRParameter, diagnostics, context); |
591 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(resourceMTTRParameter, diagnostics, context); |
592 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(resourceMTTRParameter, diagnostics, context); |
593 | if (result || diagnostics != null) result &= validateResourceMTTRParameter_ResourceMTTRParameterMustHaveDoubleVariation(resourceMTTRParameter, diagnostics, context); |
594 | return result; |
595 | } |
596 | |
597 | /** |
598 | * Validates the ResourceMTTRParameterMustHaveDoubleVariation constraint of '<em>Resource MTTR Parameter</em>'. |
599 | * <!-- begin-user-doc --> |
600 | * <!-- end-user-doc --> |
601 | * @generated |
602 | */ |
603 | public boolean validateResourceMTTRParameter_ResourceMTTRParameterMustHaveDoubleVariation(ResourceMTTRParameter resourceMTTRParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
604 | return resourceMTTRParameter.ResourceMTTRParameterMustHaveDoubleVariation(diagnostics, context); |
605 | } |
606 | |
607 | /** |
608 | * <!-- begin-user-doc --> |
609 | * <!-- end-user-doc --> |
610 | * @generated |
611 | */ |
612 | public boolean validateNetworkReliabilityParameter(NetworkReliabilityParameter networkReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
613 | boolean result = validate_EveryMultiplicityConforms(networkReliabilityParameter, diagnostics, context); |
614 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(networkReliabilityParameter, diagnostics, context); |
615 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(networkReliabilityParameter, diagnostics, context); |
616 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(networkReliabilityParameter, diagnostics, context); |
617 | if (result || diagnostics != null) result &= validate_UniqueID(networkReliabilityParameter, diagnostics, context); |
618 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(networkReliabilityParameter, diagnostics, context); |
619 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(networkReliabilityParameter, diagnostics, context); |
620 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(networkReliabilityParameter, diagnostics, context); |
621 | if (result || diagnostics != null) result &= validateNetworkReliabilityParameter_NetworkReliabilityParameterMustHaveDoubleVariation(networkReliabilityParameter, diagnostics, context); |
622 | return result; |
623 | } |
624 | |
625 | /** |
626 | * Validates the NetworkReliabilityParameterMustHaveDoubleVariation constraint of '<em>Network Reliability Parameter</em>'. |
627 | * <!-- begin-user-doc --> |
628 | * <!-- end-user-doc --> |
629 | * @generated |
630 | */ |
631 | public boolean validateNetworkReliabilityParameter_NetworkReliabilityParameterMustHaveDoubleVariation(NetworkReliabilityParameter networkReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
632 | return networkReliabilityParameter.NetworkReliabilityParameterMustHaveDoubleVariation(diagnostics, context); |
633 | } |
634 | |
635 | /** |
636 | * <!-- begin-user-doc --> |
637 | * <!-- end-user-doc --> |
638 | * @generated |
639 | */ |
640 | public boolean validateCommunicationLinkReliabilityParameter(CommunicationLinkReliabilityParameter communicationLinkReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
641 | boolean result = validate_EveryMultiplicityConforms(communicationLinkReliabilityParameter, diagnostics, context); |
642 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(communicationLinkReliabilityParameter, diagnostics, context); |
643 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(communicationLinkReliabilityParameter, diagnostics, context); |
644 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(communicationLinkReliabilityParameter, diagnostics, context); |
645 | if (result || diagnostics != null) result &= validate_UniqueID(communicationLinkReliabilityParameter, diagnostics, context); |
646 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(communicationLinkReliabilityParameter, diagnostics, context); |
647 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(communicationLinkReliabilityParameter, diagnostics, context); |
648 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(communicationLinkReliabilityParameter, diagnostics, context); |
649 | if (result || diagnostics != null) result &= validateCommunicationLinkReliabilityParameter_CommunicationLinkParameterMustHaveDoubleVariation(communicationLinkReliabilityParameter, diagnostics, context); |
650 | return result; |
651 | } |
652 | |
653 | /** |
654 | * Validates the CommunicationLinkParameterMustHaveDoubleVariation constraint of '<em>Communication Link Reliability Parameter</em>'. |
655 | * <!-- begin-user-doc --> |
656 | * <!-- end-user-doc --> |
657 | * @generated |
658 | */ |
659 | public boolean validateCommunicationLinkReliabilityParameter_CommunicationLinkParameterMustHaveDoubleVariation(CommunicationLinkReliabilityParameter communicationLinkReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
660 | return communicationLinkReliabilityParameter.CommunicationLinkParameterMustHaveDoubleVariation(diagnostics, context); |
661 | } |
662 | |
663 | /** |
664 | * <!-- begin-user-doc --> |
665 | * <!-- end-user-doc --> |
666 | * @generated |
667 | */ |
668 | public boolean validateSoftwareReliabilityParameter(SoftwareReliabilityParameter softwareReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
669 | boolean result = validate_EveryMultiplicityConforms(softwareReliabilityParameter, diagnostics, context); |
670 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(softwareReliabilityParameter, diagnostics, context); |
671 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(softwareReliabilityParameter, diagnostics, context); |
672 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(softwareReliabilityParameter, diagnostics, context); |
673 | if (result || diagnostics != null) result &= validate_UniqueID(softwareReliabilityParameter, diagnostics, context); |
674 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(softwareReliabilityParameter, diagnostics, context); |
675 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(softwareReliabilityParameter, diagnostics, context); |
676 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(softwareReliabilityParameter, diagnostics, context); |
677 | if (result || diagnostics != null) result &= validateSoftwareReliabilityParameter_SoftwareReliabilityParameterMustHaveDoubleVariation(softwareReliabilityParameter, diagnostics, context); |
678 | return result; |
679 | } |
680 | |
681 | /** |
682 | * Validates the SoftwareReliabilityParameterMustHaveDoubleVariation constraint of '<em>Software Reliability Parameter</em>'. |
683 | * <!-- begin-user-doc --> |
684 | * <!-- end-user-doc --> |
685 | * @generated |
686 | */ |
687 | public boolean validateSoftwareReliabilityParameter_SoftwareReliabilityParameterMustHaveDoubleVariation(SoftwareReliabilityParameter softwareReliabilityParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
688 | return softwareReliabilityParameter.SoftwareReliabilityParameterMustHaveDoubleVariation(diagnostics, context); |
689 | } |
690 | |
691 | /** |
692 | * <!-- begin-user-doc --> |
693 | * <!-- end-user-doc --> |
694 | * @generated |
695 | */ |
696 | public boolean validateVariableUsageParameter(VariableUsageParameter variableUsageParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
697 | boolean result = validate_EveryMultiplicityConforms(variableUsageParameter, diagnostics, context); |
698 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(variableUsageParameter, diagnostics, context); |
699 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(variableUsageParameter, diagnostics, context); |
700 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(variableUsageParameter, diagnostics, context); |
701 | if (result || diagnostics != null) result &= validate_UniqueID(variableUsageParameter, diagnostics, context); |
702 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(variableUsageParameter, diagnostics, context); |
703 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(variableUsageParameter, diagnostics, context); |
704 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(variableUsageParameter, diagnostics, context); |
705 | if (result || diagnostics != null) result &= validateVariableUsageParameter_SystemCallParameterMustHaveStringSequence(variableUsageParameter, diagnostics, context); |
706 | return result; |
707 | } |
708 | |
709 | /** |
710 | * Validates the SystemCallParameterMustHaveStringSequence constraint of '<em>Variable Usage Parameter</em>'. |
711 | * <!-- begin-user-doc --> |
712 | * <!-- end-user-doc --> |
713 | * @generated |
714 | */ |
715 | public boolean validateVariableUsageParameter_SystemCallParameterMustHaveStringSequence(VariableUsageParameter variableUsageParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
716 | return variableUsageParameter.SystemCallParameterMustHaveStringSequence(diagnostics, context); |
717 | } |
718 | |
719 | /** |
720 | * <!-- begin-user-doc --> |
721 | * <!-- end-user-doc --> |
722 | * @generated |
723 | */ |
724 | public boolean validateUsageBranchParameter(UsageBranchParameter usageBranchParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
725 | boolean result = validate_EveryMultiplicityConforms(usageBranchParameter, diagnostics, context); |
726 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(usageBranchParameter, diagnostics, context); |
727 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(usageBranchParameter, diagnostics, context); |
728 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(usageBranchParameter, diagnostics, context); |
729 | if (result || diagnostics != null) result &= validate_UniqueID(usageBranchParameter, diagnostics, context); |
730 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(usageBranchParameter, diagnostics, context); |
731 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(usageBranchParameter, diagnostics, context); |
732 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(usageBranchParameter, diagnostics, context); |
733 | if (result || diagnostics != null) result &= validateUsageBranchParameter_UsageBranchParameterMustHaveDoubleVariation(usageBranchParameter, diagnostics, context); |
734 | return result; |
735 | } |
736 | |
737 | /** |
738 | * Validates the UsageBranchParameterMustHaveDoubleVariation constraint of '<em>Usage Branch Parameter</em>'. |
739 | * <!-- begin-user-doc --> |
740 | * <!-- end-user-doc --> |
741 | * @generated |
742 | */ |
743 | public boolean validateUsageBranchParameter_UsageBranchParameterMustHaveDoubleVariation(UsageBranchParameter usageBranchParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
744 | return usageBranchParameter.UsageBranchParameterMustHaveDoubleVariation(diagnostics, context); |
745 | } |
746 | |
747 | /** |
748 | * <!-- begin-user-doc --> |
749 | * <!-- end-user-doc --> |
750 | * @generated |
751 | */ |
752 | public boolean validateDoubleOffsetSequence(DoubleOffsetSequence doubleOffsetSequence, DiagnosticChain diagnostics, Map<Object, Object> context) { |
753 | return validate_EveryDefaultConstraint(doubleOffsetSequence, diagnostics, context); |
754 | } |
755 | |
756 | /** |
757 | * <!-- begin-user-doc --> |
758 | * <!-- end-user-doc --> |
759 | * @generated |
760 | */ |
761 | public boolean validateSoftwareFailureTypesParameter(SoftwareFailureTypesParameter softwareFailureTypesParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
762 | boolean result = validate_EveryMultiplicityConforms(softwareFailureTypesParameter, diagnostics, context); |
763 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(softwareFailureTypesParameter, diagnostics, context); |
764 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(softwareFailureTypesParameter, diagnostics, context); |
765 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(softwareFailureTypesParameter, diagnostics, context); |
766 | if (result || diagnostics != null) result &= validate_UniqueID(softwareFailureTypesParameter, diagnostics, context); |
767 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(softwareFailureTypesParameter, diagnostics, context); |
768 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(softwareFailureTypesParameter, diagnostics, context); |
769 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(softwareFailureTypesParameter, diagnostics, context); |
770 | if (result || diagnostics != null) result &= validateSoftwareFailureTypesParameter_SoftwareFailureTypeReliabilityParameterMustHaveDoubleVariation(softwareFailureTypesParameter, diagnostics, context); |
771 | return result; |
772 | } |
773 | |
774 | /** |
775 | * Validates the SoftwareFailureTypeReliabilityParameterMustHaveDoubleVariation constraint of '<em>Software Failure Types Parameter</em>'. |
776 | * <!-- begin-user-doc --> |
777 | * <!-- end-user-doc --> |
778 | * @generated |
779 | */ |
780 | public boolean validateSoftwareFailureTypesParameter_SoftwareFailureTypeReliabilityParameterMustHaveDoubleVariation(SoftwareFailureTypesParameter softwareFailureTypesParameter, DiagnosticChain diagnostics, Map<Object, Object> context) { |
781 | return softwareFailureTypesParameter.SoftwareFailureTypeReliabilityParameterMustHaveDoubleVariation(diagnostics, context); |
782 | } |
783 | |
784 | /** |
785 | * <!-- begin-user-doc --> |
786 | * <!-- end-user-doc --> |
787 | * @generated |
788 | */ |
789 | public boolean validateFailureTypeResultSpecification(FailureTypeResultSpecification failureTypeResultSpecification, DiagnosticChain diagnostics, Map<Object, Object> context) { |
790 | boolean result = validate_EveryMultiplicityConforms(failureTypeResultSpecification, diagnostics, context); |
791 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(failureTypeResultSpecification, diagnostics, context); |
792 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(failureTypeResultSpecification, diagnostics, context); |
793 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(failureTypeResultSpecification, diagnostics, context); |
794 | if (result || diagnostics != null) result &= validate_UniqueID(failureTypeResultSpecification, diagnostics, context); |
795 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(failureTypeResultSpecification, diagnostics, context); |
796 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(failureTypeResultSpecification, diagnostics, context); |
797 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(failureTypeResultSpecification, diagnostics, context); |
798 | return result; |
799 | } |
800 | |
801 | /** |
802 | * <!-- begin-user-doc --> |
803 | * <!-- end-user-doc --> |
804 | * @generated |
805 | */ |
806 | public boolean validateFailureDimensionResultSpecification(FailureDimensionResultSpecification failureDimensionResultSpecification, DiagnosticChain diagnostics, Map<Object, Object> context) { |
807 | boolean result = validate_EveryMultiplicityConforms(failureDimensionResultSpecification, diagnostics, context); |
808 | if (result || diagnostics != null) result &= validate_EveryDataValueConforms(failureDimensionResultSpecification, diagnostics, context); |
809 | if (result || diagnostics != null) result &= validate_EveryReferenceIsContained(failureDimensionResultSpecification, diagnostics, context); |
810 | if (result || diagnostics != null) result &= validate_EveryProxyResolves(failureDimensionResultSpecification, diagnostics, context); |
811 | if (result || diagnostics != null) result &= validate_UniqueID(failureDimensionResultSpecification, diagnostics, context); |
812 | if (result || diagnostics != null) result &= validate_EveryKeyUnique(failureDimensionResultSpecification, diagnostics, context); |
813 | if (result || diagnostics != null) result &= validate_EveryMapEntryUnique(failureDimensionResultSpecification, diagnostics, context); |
814 | if (result || diagnostics != null) result &= identifierValidator.validateIdentifier_idHasToBeUnique(failureDimensionResultSpecification, diagnostics, context); |
815 | return result; |
816 | } |
817 | |
818 | /** |
819 | * <!-- begin-user-doc --> |
820 | * <!-- end-user-doc --> |
821 | * @generated |
822 | */ |
823 | public boolean validateVariableUsageType(VariableUsageType variableUsageType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
824 | return true; |
825 | } |
826 | |
827 | /** |
828 | * <!-- begin-user-doc --> |
829 | * <!-- end-user-doc --> |
830 | * @generated |
831 | */ |
832 | public boolean validateDoubleOffsetType(DoubleOffsetType doubleOffsetType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
833 | return true; |
834 | } |
835 | |
836 | /** |
837 | * <!-- begin-user-doc --> |
838 | * <!-- end-user-doc --> |
839 | * @generated |
840 | */ |
841 | public boolean validateFailureDimension(FailureDimension failureDimension, DiagnosticChain diagnostics, Map<Object, Object> context) { |
842 | return true; |
843 | } |
844 | |
845 | /** |
846 | * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. |
847 | * <!-- begin-user-doc --> |
848 | * <!-- end-user-doc --> |
849 | * @generated |
850 | */ |
851 | @Override |
852 | public ResourceLocator getResourceLocator() { |
853 | // TODO |
854 | // Specialize this to return a resource locator for messages specific to this validator. |
855 | // Ensure that you remove @generated or mark it @generated NOT |
856 | return super.getResourceLocator(); |
857 | } |
858 | |
859 | } //SensitivityValidator |