1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package LqnCore.util; |
8 | |
9 | import LqnCore.*; |
10 | |
11 | import java.math.BigDecimal; |
12 | import java.math.BigInteger; |
13 | |
14 | import java.util.Iterator; |
15 | import java.util.List; |
16 | import java.util.Map; |
17 | |
18 | import org.eclipse.emf.common.util.BasicDiagnostic; |
19 | import org.eclipse.emf.common.util.Diagnostic; |
20 | import org.eclipse.emf.common.util.DiagnosticChain; |
21 | |
22 | import org.eclipse.emf.ecore.EPackage; |
23 | |
24 | import org.eclipse.emf.ecore.util.EObjectValidator; |
25 | |
26 | import org.eclipse.emf.ecore.xml.type.XMLTypePackage; |
27 | |
28 | import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil; |
29 | import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator; |
30 | |
31 | /** |
32 | * <!-- begin-user-doc --> |
33 | * The <b>Validator</b> for the model. |
34 | * <!-- end-user-doc --> |
35 | * @see LqnCore.LqnCorePackage |
36 | * @generated |
37 | */ |
38 | public class LqnCoreValidator extends EObjectValidator { |
39 | /** |
40 | * The cached model package |
41 | * <!-- begin-user-doc --> |
42 | * <!-- end-user-doc --> |
43 | * @generated |
44 | */ |
45 | public static final LqnCoreValidator INSTANCE = new LqnCoreValidator(); |
46 | |
47 | /** |
48 | * 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. |
49 | * <!-- begin-user-doc --> |
50 | * <!-- end-user-doc --> |
51 | * @see org.eclipse.emf.common.util.Diagnostic#getSource() |
52 | * @see org.eclipse.emf.common.util.Diagnostic#getCode() |
53 | * @generated |
54 | */ |
55 | public static final String DIAGNOSTIC_SOURCE = "LqnCore"; |
56 | |
57 | /** |
58 | * A constant with a fixed name that can be used as the base value for additional hand written constants. |
59 | * <!-- begin-user-doc --> |
60 | * <!-- end-user-doc --> |
61 | * @generated |
62 | */ |
63 | private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; |
64 | |
65 | /** |
66 | * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. |
67 | * <!-- begin-user-doc --> |
68 | * <!-- end-user-doc --> |
69 | * @generated |
70 | */ |
71 | protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; |
72 | |
73 | /** |
74 | * The cached base package validator. |
75 | * <!-- begin-user-doc --> |
76 | * <!-- end-user-doc --> |
77 | * @generated |
78 | */ |
79 | protected XMLTypeValidator xmlTypeValidator; |
80 | |
81 | /** |
82 | * Creates an instance of the switch. |
83 | * <!-- begin-user-doc --> |
84 | * <!-- end-user-doc --> |
85 | * @generated |
86 | */ |
87 | public LqnCoreValidator() { |
88 | super(); |
89 | xmlTypeValidator = XMLTypeValidator.INSTANCE; |
90 | } |
91 | |
92 | /** |
93 | * Returns the package of this validator switch. |
94 | * <!-- begin-user-doc --> |
95 | * <!-- end-user-doc --> |
96 | * @generated |
97 | */ |
98 | @Override |
99 | protected EPackage getEPackage() { |
100 | return LqnCorePackage.eINSTANCE; |
101 | } |
102 | |
103 | /** |
104 | * Calls <code>validateXXX</code> for the corresponding classifier of the model. |
105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> |
107 | * @generated |
108 | */ |
109 | @Override |
110 | protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { |
111 | switch (classifierID) { |
112 | case LqnCorePackage.ACTIVITY_DEF_BASE: |
113 | return validateActivityDefBase((ActivityDefBase)value, diagnostics, context); |
114 | case LqnCorePackage.ACTIVITY_DEF_TYPE: |
115 | return validateActivityDefType((ActivityDefType)value, diagnostics, context); |
116 | case LqnCorePackage.ACTIVITY_GRAPH_BASE: |
117 | return validateActivityGraphBase((ActivityGraphBase)value, diagnostics, context); |
118 | case LqnCorePackage.ACTIVITY_LIST_TYPE: |
119 | return validateActivityListType((ActivityListType)value, diagnostics, context); |
120 | case LqnCorePackage.ACTIVITY_LOOP_LIST_TYPE: |
121 | return validateActivityLoopListType((ActivityLoopListType)value, diagnostics, context); |
122 | case LqnCorePackage.ACTIVITY_LOOP_TYPE: |
123 | return validateActivityLoopType((ActivityLoopType)value, diagnostics, context); |
124 | case LqnCorePackage.ACTIVITY_MAKING_CALL_TYPE: |
125 | return validateActivityMakingCallType((ActivityMakingCallType)value, diagnostics, context); |
126 | case LqnCorePackage.ACTIVITY_OR_TYPE: |
127 | return validateActivityOrType((ActivityOrType)value, diagnostics, context); |
128 | case LqnCorePackage.ACTIVITY_PHASES_TYPE: |
129 | return validateActivityPhasesType((ActivityPhasesType)value, diagnostics, context); |
130 | case LqnCorePackage.ACTIVITY_TYPE: |
131 | return validateActivityType((ActivityType)value, diagnostics, context); |
132 | case LqnCorePackage.AND_JOIN_LIST_TYPE: |
133 | return validateAndJoinListType((AndJoinListType)value, diagnostics, context); |
134 | case LqnCorePackage.ASYNCH_CALL_TYPE: |
135 | return validateAsynchCallType((AsynchCallType)value, diagnostics, context); |
136 | case LqnCorePackage.BIND_TYPE: |
137 | return validateBindType((BindType)value, diagnostics, context); |
138 | case LqnCorePackage.CALL_LIST_TYPE: |
139 | return validateCallListType((CallListType)value, diagnostics, context); |
140 | case LqnCorePackage.DOCUMENT_ROOT: |
141 | return validateDocumentRoot((DocumentRoot)value, diagnostics, context); |
142 | case LqnCorePackage.ENTRY_ACTIVITY_DEF_TYPE: |
143 | return validateEntryActivityDefType((EntryActivityDefType)value, diagnostics, context); |
144 | case LqnCorePackage.ENTRY_ACTIVITY_GRAPH: |
145 | return validateEntryActivityGraph((EntryActivityGraph)value, diagnostics, context); |
146 | case LqnCorePackage.ENTRY_MAKING_CALL_TYPE: |
147 | return validateEntryMakingCallType((EntryMakingCallType)value, diagnostics, context); |
148 | case LqnCorePackage.ENTRY_TYPE: |
149 | return validateEntryType((EntryType)value, diagnostics, context); |
150 | case LqnCorePackage.FIRST_PLOT_TYPE: |
151 | return validateFirstPlotType((FirstPlotType)value, diagnostics, context); |
152 | case LqnCorePackage.HISTOGRAM_BIN_TYPE: |
153 | return validateHistogramBinType((HistogramBinType)value, diagnostics, context); |
154 | case LqnCorePackage.IN_PORT_TYPE: |
155 | return validateInPortType((InPortType)value, diagnostics, context); |
156 | case LqnCorePackage.INTERFACE_TYPE: |
157 | return validateInterfaceType((InterfaceType)value, diagnostics, context); |
158 | case LqnCorePackage.LQN_CORE_TYPE: |
159 | return validateLqnCoreType((LqnCoreType)value, diagnostics, context); |
160 | case LqnCorePackage.LQN_MODEL_TYPE: |
161 | return validateLqnModelType((LqnModelType)value, diagnostics, context); |
162 | case LqnCorePackage.MAKING_CALL_TYPE: |
163 | return validateMakingCallType((MakingCallType)value, diagnostics, context); |
164 | case LqnCorePackage.OR_LIST_TYPE: |
165 | return validateOrListType((OrListType)value, diagnostics, context); |
166 | case LqnCorePackage.OUT_PORT_TYPE: |
167 | return validateOutPortType((OutPortType)value, diagnostics, context); |
168 | case LqnCorePackage.OUTPUT_DISTRIBUTION_TYPE: |
169 | return validateOutputDistributionType((OutputDistributionType)value, diagnostics, context); |
170 | case LqnCorePackage.OUTPUT_ENTRY_DISTRIBUTION_TYPE: |
171 | return validateOutputEntryDistributionType((OutputEntryDistributionType)value, diagnostics, context); |
172 | case LqnCorePackage.OUTPUT_RESULT_FORWARDING_AND_JOIN_DELAY: |
173 | return validateOutputResultForwardingANDJoinDelay((OutputResultForwardingANDJoinDelay)value, diagnostics, context); |
174 | case LqnCorePackage.OUTPUT_RESULT_TYPE: |
175 | return validateOutputResultType((OutputResultType)value, diagnostics, context); |
176 | case LqnCorePackage.PARAMETER_TYPE: |
177 | return validateParameterType((ParameterType)value, diagnostics, context); |
178 | case LqnCorePackage.PARA_TYPE: |
179 | return validateParaType((ParaType)value, diagnostics, context); |
180 | case LqnCorePackage.PHASE_ACTIVITIES: |
181 | return validatePhaseActivities((PhaseActivities)value, diagnostics, context); |
182 | case LqnCorePackage.PLOT_CONTROL_TYPE: |
183 | return validatePlotControlType((PlotControlType)value, diagnostics, context); |
184 | case LqnCorePackage.PLOT_TYPE: |
185 | return validatePlotType((PlotType)value, diagnostics, context); |
186 | case LqnCorePackage.PORT_BINDING_TYPE: |
187 | return validatePortBindingType((PortBindingType)value, diagnostics, context); |
188 | case LqnCorePackage.PRAGMA_TYPE: |
189 | return validatePragmaType((PragmaType)value, diagnostics, context); |
190 | case LqnCorePackage.PRECEDENCE_TYPE: |
191 | return validatePrecedenceType((PrecedenceType)value, diagnostics, context); |
192 | case LqnCorePackage.PROCESSOR_BINDING_TYPE: |
193 | return validateProcessorBindingType((ProcessorBindingType)value, diagnostics, context); |
194 | case LqnCorePackage.PROCESSOR_TYPE: |
195 | return validateProcessorType((ProcessorType)value, diagnostics, context); |
196 | case LqnCorePackage.REPLY_ACTIVITY_TYPE: |
197 | return validateReplyActivityType((ReplyActivityType)value, diagnostics, context); |
198 | case LqnCorePackage.REPLY_ENTRY_TYPE: |
199 | return validateReplyEntryType((ReplyEntryType)value, diagnostics, context); |
200 | case LqnCorePackage.RESULT_CONF95_TYPE: |
201 | return validateResultConf95Type((ResultConf95Type)value, diagnostics, context); |
202 | case LqnCorePackage.RESULT_CONF95_TYPE1: |
203 | return validateResultConf95Type1((ResultConf95Type1)value, diagnostics, context); |
204 | case LqnCorePackage.RESULT_CONF99_TYPE: |
205 | return validateResultConf99Type((ResultConf99Type)value, diagnostics, context); |
206 | case LqnCorePackage.RESULT_CONF99_TYPE1: |
207 | return validateResultConf99Type1((ResultConf99Type1)value, diagnostics, context); |
208 | case LqnCorePackage.RESULT_GENERAL_TYPE: |
209 | return validateResultGeneralType((ResultGeneralType)value, diagnostics, context); |
210 | case LqnCorePackage.RUN_CONTROL_TYPE: |
211 | return validateRunControlType((RunControlType)value, diagnostics, context); |
212 | case LqnCorePackage.SERVICE_TYPE: |
213 | return validateServiceType((ServiceType)value, diagnostics, context); |
214 | case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE: |
215 | return validateSingleActivityListType((SingleActivityListType)value, diagnostics, context); |
216 | case LqnCorePackage.SLOT_TYPE: |
217 | return validateSlotType((SlotType)value, diagnostics, context); |
218 | case LqnCorePackage.SOLVER_PARAMS_TYPE: |
219 | return validateSolverParamsType((SolverParamsType)value, diagnostics, context); |
220 | case LqnCorePackage.SYNCH_CALL_TYPE: |
221 | return validateSynchCallType((SynchCallType)value, diagnostics, context); |
222 | case LqnCorePackage.TASK_ACTIVITY_GRAPH: |
223 | return validateTaskActivityGraph((TaskActivityGraph)value, diagnostics, context); |
224 | case LqnCorePackage.TASK_TYPE: |
225 | return validateTaskType((TaskType)value, diagnostics, context); |
226 | case LqnCorePackage.AXIS_TYPE: |
227 | return validateAxisType((AxisType)value, diagnostics, context); |
228 | case LqnCorePackage.CALL_ORDER_TYPE: |
229 | return validateCallOrderType((CallOrderType)value, diagnostics, context); |
230 | case LqnCorePackage.SCHEDULING_TYPE: |
231 | return validateSchedulingType((SchedulingType)value, diagnostics, context); |
232 | case LqnCorePackage.SEMAPHORE_TYPE: |
233 | return validateSemaphoreType((SemaphoreType)value, diagnostics, context); |
234 | case LqnCorePackage.TASK_OPTION_TYPE: |
235 | return validateTaskOptionType((TaskOptionType)value, diagnostics, context); |
236 | case LqnCorePackage.TASK_SCHEDULING_TYPE: |
237 | return validateTaskSchedulingType((TaskSchedulingType)value, diagnostics, context); |
238 | case LqnCorePackage.TYPE_TYPE: |
239 | return validateTypeType((TypeType)value, diagnostics, context); |
240 | case LqnCorePackage.VALID_TYPE: |
241 | return validateValidType((ValidType)value, diagnostics, context); |
242 | case LqnCorePackage.XML_DEBUG_TYPE: |
243 | return validateXmlDebugType((XmlDebugType)value, diagnostics, context); |
244 | case LqnCorePackage.AXIS_TYPE_OBJECT: |
245 | return validateAxisTypeObject((AxisType)value, diagnostics, context); |
246 | case LqnCorePackage.CALL_ORDER_TYPE_OBJECT: |
247 | return validateCallOrderTypeObject((CallOrderType)value, diagnostics, context); |
248 | case LqnCorePackage.CONNECT_FROM_TYPE: |
249 | return validateConnectFromType((List<?>)value, diagnostics, context); |
250 | case LqnCorePackage.CONNECT_TO_TYPE: |
251 | return validateConnectToType((List<?>)value, diagnostics, context); |
252 | case LqnCorePackage.PHASE_TYPE: |
253 | return validatePhaseType((BigInteger)value, diagnostics, context); |
254 | case LqnCorePackage.SCHEDULING_TYPE_OBJECT: |
255 | return validateSchedulingTypeObject((SchedulingType)value, diagnostics, context); |
256 | case LqnCorePackage.SCI_NOTATION: |
257 | return validateSciNotation((String)value, diagnostics, context); |
258 | case LqnCorePackage.SEMAPHORE_TYPE_OBJECT: |
259 | return validateSemaphoreTypeObject((SemaphoreType)value, diagnostics, context); |
260 | case LqnCorePackage.SRVN_FLOAT: |
261 | return validateSrvnFloat(value, diagnostics, context); |
262 | case LqnCorePackage.TASK_OPTION_TYPE_OBJECT: |
263 | return validateTaskOptionTypeObject((TaskOptionType)value, diagnostics, context); |
264 | case LqnCorePackage.TASK_SCHEDULING_TYPE_OBJECT: |
265 | return validateTaskSchedulingTypeObject((TaskSchedulingType)value, diagnostics, context); |
266 | case LqnCorePackage.TYPE_TYPE_OBJECT: |
267 | return validateTypeTypeObject((TypeType)value, diagnostics, context); |
268 | case LqnCorePackage.VALID_TYPE_OBJECT: |
269 | return validateValidTypeObject((ValidType)value, diagnostics, context); |
270 | case LqnCorePackage.XML_DEBUG_TYPE_OBJECT: |
271 | return validateXmlDebugTypeObject((XmlDebugType)value, diagnostics, context); |
272 | default: |
273 | return true; |
274 | } |
275 | } |
276 | |
277 | /** |
278 | * <!-- begin-user-doc --> |
279 | * <!-- end-user-doc --> |
280 | * @generated |
281 | */ |
282 | public boolean validateActivityDefBase(ActivityDefBase activityDefBase, DiagnosticChain diagnostics, Map<Object, Object> context) { |
283 | return validate_EveryDefaultConstraint(activityDefBase, diagnostics, context); |
284 | } |
285 | |
286 | /** |
287 | * <!-- begin-user-doc --> |
288 | * <!-- end-user-doc --> |
289 | * @generated |
290 | */ |
291 | public boolean validateActivityDefType(ActivityDefType activityDefType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
292 | return validate_EveryDefaultConstraint(activityDefType, diagnostics, context); |
293 | } |
294 | |
295 | /** |
296 | * <!-- begin-user-doc --> |
297 | * <!-- end-user-doc --> |
298 | * @generated |
299 | */ |
300 | public boolean validateActivityGraphBase(ActivityGraphBase activityGraphBase, DiagnosticChain diagnostics, Map<Object, Object> context) { |
301 | return validate_EveryDefaultConstraint(activityGraphBase, diagnostics, context); |
302 | } |
303 | |
304 | /** |
305 | * <!-- begin-user-doc --> |
306 | * <!-- end-user-doc --> |
307 | * @generated |
308 | */ |
309 | public boolean validateActivityListType(ActivityListType activityListType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
310 | return validate_EveryDefaultConstraint(activityListType, diagnostics, context); |
311 | } |
312 | |
313 | /** |
314 | * <!-- begin-user-doc --> |
315 | * <!-- end-user-doc --> |
316 | * @generated |
317 | */ |
318 | public boolean validateActivityLoopListType(ActivityLoopListType activityLoopListType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
319 | return validate_EveryDefaultConstraint(activityLoopListType, diagnostics, context); |
320 | } |
321 | |
322 | /** |
323 | * <!-- begin-user-doc --> |
324 | * <!-- end-user-doc --> |
325 | * @generated |
326 | */ |
327 | public boolean validateActivityLoopType(ActivityLoopType activityLoopType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
328 | return validate_EveryDefaultConstraint(activityLoopType, diagnostics, context); |
329 | } |
330 | |
331 | /** |
332 | * <!-- begin-user-doc --> |
333 | * <!-- end-user-doc --> |
334 | * @generated |
335 | */ |
336 | public boolean validateActivityMakingCallType(ActivityMakingCallType activityMakingCallType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
337 | return validate_EveryDefaultConstraint(activityMakingCallType, diagnostics, context); |
338 | } |
339 | |
340 | /** |
341 | * <!-- begin-user-doc --> |
342 | * <!-- end-user-doc --> |
343 | * @generated |
344 | */ |
345 | public boolean validateActivityOrType(ActivityOrType activityOrType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
346 | return validate_EveryDefaultConstraint(activityOrType, diagnostics, context); |
347 | } |
348 | |
349 | /** |
350 | * <!-- begin-user-doc --> |
351 | * <!-- end-user-doc --> |
352 | * @generated |
353 | */ |
354 | public boolean validateActivityPhasesType(ActivityPhasesType activityPhasesType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
355 | return validate_EveryDefaultConstraint(activityPhasesType, diagnostics, context); |
356 | } |
357 | |
358 | /** |
359 | * <!-- begin-user-doc --> |
360 | * <!-- end-user-doc --> |
361 | * @generated |
362 | */ |
363 | public boolean validateActivityType(ActivityType activityType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
364 | return validate_EveryDefaultConstraint(activityType, diagnostics, context); |
365 | } |
366 | |
367 | /** |
368 | * <!-- begin-user-doc --> |
369 | * <!-- end-user-doc --> |
370 | * @generated |
371 | */ |
372 | public boolean validateAndJoinListType(AndJoinListType andJoinListType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
373 | return validate_EveryDefaultConstraint(andJoinListType, diagnostics, context); |
374 | } |
375 | |
376 | /** |
377 | * <!-- begin-user-doc --> |
378 | * <!-- end-user-doc --> |
379 | * @generated |
380 | */ |
381 | public boolean validateAsynchCallType(AsynchCallType asynchCallType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
382 | return validate_EveryDefaultConstraint(asynchCallType, diagnostics, context); |
383 | } |
384 | |
385 | /** |
386 | * <!-- begin-user-doc --> |
387 | * <!-- end-user-doc --> |
388 | * @generated |
389 | */ |
390 | public boolean validateBindType(BindType bindType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
391 | return validate_EveryDefaultConstraint(bindType, diagnostics, context); |
392 | } |
393 | |
394 | /** |
395 | * <!-- begin-user-doc --> |
396 | * <!-- end-user-doc --> |
397 | * @generated |
398 | */ |
399 | public boolean validateCallListType(CallListType callListType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
400 | return validate_EveryDefaultConstraint(callListType, diagnostics, context); |
401 | } |
402 | |
403 | /** |
404 | * <!-- begin-user-doc --> |
405 | * <!-- end-user-doc --> |
406 | * @generated |
407 | */ |
408 | public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map<Object, Object> context) { |
409 | return validate_EveryDefaultConstraint(documentRoot, diagnostics, context); |
410 | } |
411 | |
412 | /** |
413 | * <!-- begin-user-doc --> |
414 | * <!-- end-user-doc --> |
415 | * @generated |
416 | */ |
417 | public boolean validateEntryActivityDefType(EntryActivityDefType entryActivityDefType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
418 | return validate_EveryDefaultConstraint(entryActivityDefType, diagnostics, context); |
419 | } |
420 | |
421 | /** |
422 | * <!-- begin-user-doc --> |
423 | * <!-- end-user-doc --> |
424 | * @generated |
425 | */ |
426 | public boolean validateEntryActivityGraph(EntryActivityGraph entryActivityGraph, DiagnosticChain diagnostics, Map<Object, Object> context) { |
427 | return validate_EveryDefaultConstraint(entryActivityGraph, diagnostics, context); |
428 | } |
429 | |
430 | /** |
431 | * <!-- begin-user-doc --> |
432 | * <!-- end-user-doc --> |
433 | * @generated |
434 | */ |
435 | public boolean validateEntryMakingCallType(EntryMakingCallType entryMakingCallType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
436 | return validate_EveryDefaultConstraint(entryMakingCallType, diagnostics, context); |
437 | } |
438 | |
439 | /** |
440 | * <!-- begin-user-doc --> |
441 | * <!-- end-user-doc --> |
442 | * @generated |
443 | */ |
444 | public boolean validateEntryType(EntryType entryType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
445 | return validate_EveryDefaultConstraint(entryType, diagnostics, context); |
446 | } |
447 | |
448 | /** |
449 | * <!-- begin-user-doc --> |
450 | * <!-- end-user-doc --> |
451 | * @generated |
452 | */ |
453 | public boolean validateFirstPlotType(FirstPlotType firstPlotType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
454 | return validate_EveryDefaultConstraint(firstPlotType, diagnostics, context); |
455 | } |
456 | |
457 | /** |
458 | * <!-- begin-user-doc --> |
459 | * <!-- end-user-doc --> |
460 | * @generated |
461 | */ |
462 | public boolean validateHistogramBinType(HistogramBinType histogramBinType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
463 | return validate_EveryDefaultConstraint(histogramBinType, diagnostics, context); |
464 | } |
465 | |
466 | /** |
467 | * <!-- begin-user-doc --> |
468 | * <!-- end-user-doc --> |
469 | * @generated |
470 | */ |
471 | public boolean validateInPortType(InPortType inPortType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
472 | return validate_EveryDefaultConstraint(inPortType, diagnostics, context); |
473 | } |
474 | |
475 | /** |
476 | * <!-- begin-user-doc --> |
477 | * <!-- end-user-doc --> |
478 | * @generated |
479 | */ |
480 | public boolean validateInterfaceType(InterfaceType interfaceType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
481 | return validate_EveryDefaultConstraint(interfaceType, diagnostics, context); |
482 | } |
483 | |
484 | /** |
485 | * <!-- begin-user-doc --> |
486 | * <!-- end-user-doc --> |
487 | * @generated |
488 | */ |
489 | public boolean validateLqnCoreType(LqnCoreType lqnCoreType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
490 | return validate_EveryDefaultConstraint(lqnCoreType, diagnostics, context); |
491 | } |
492 | |
493 | /** |
494 | * <!-- begin-user-doc --> |
495 | * <!-- end-user-doc --> |
496 | * @generated |
497 | */ |
498 | public boolean validateLqnModelType(LqnModelType lqnModelType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
499 | return validate_EveryDefaultConstraint(lqnModelType, diagnostics, context); |
500 | } |
501 | |
502 | /** |
503 | * <!-- begin-user-doc --> |
504 | * <!-- end-user-doc --> |
505 | * @generated |
506 | */ |
507 | public boolean validateMakingCallType(MakingCallType makingCallType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
508 | return validate_EveryDefaultConstraint(makingCallType, diagnostics, context); |
509 | } |
510 | |
511 | /** |
512 | * <!-- begin-user-doc --> |
513 | * <!-- end-user-doc --> |
514 | * @generated |
515 | */ |
516 | public boolean validateOrListType(OrListType orListType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
517 | return validate_EveryDefaultConstraint(orListType, diagnostics, context); |
518 | } |
519 | |
520 | /** |
521 | * <!-- begin-user-doc --> |
522 | * <!-- end-user-doc --> |
523 | * @generated |
524 | */ |
525 | public boolean validateOutPortType(OutPortType outPortType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
526 | return validate_EveryDefaultConstraint(outPortType, diagnostics, context); |
527 | } |
528 | |
529 | /** |
530 | * <!-- begin-user-doc --> |
531 | * <!-- end-user-doc --> |
532 | * @generated |
533 | */ |
534 | public boolean validateOutputDistributionType(OutputDistributionType outputDistributionType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
535 | return validate_EveryDefaultConstraint(outputDistributionType, diagnostics, context); |
536 | } |
537 | |
538 | /** |
539 | * <!-- begin-user-doc --> |
540 | * <!-- end-user-doc --> |
541 | * @generated |
542 | */ |
543 | public boolean validateOutputEntryDistributionType(OutputEntryDistributionType outputEntryDistributionType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
544 | return validate_EveryDefaultConstraint(outputEntryDistributionType, diagnostics, context); |
545 | } |
546 | |
547 | /** |
548 | * <!-- begin-user-doc --> |
549 | * <!-- end-user-doc --> |
550 | * @generated |
551 | */ |
552 | public boolean validateOutputResultForwardingANDJoinDelay(OutputResultForwardingANDJoinDelay outputResultForwardingANDJoinDelay, DiagnosticChain diagnostics, Map<Object, Object> context) { |
553 | return validate_EveryDefaultConstraint(outputResultForwardingANDJoinDelay, diagnostics, context); |
554 | } |
555 | |
556 | /** |
557 | * <!-- begin-user-doc --> |
558 | * <!-- end-user-doc --> |
559 | * @generated |
560 | */ |
561 | public boolean validateOutputResultType(OutputResultType outputResultType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
562 | return validate_EveryDefaultConstraint(outputResultType, diagnostics, context); |
563 | } |
564 | |
565 | /** |
566 | * <!-- begin-user-doc --> |
567 | * <!-- end-user-doc --> |
568 | * @generated |
569 | */ |
570 | public boolean validateParameterType(ParameterType parameterType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
571 | return validate_EveryDefaultConstraint(parameterType, diagnostics, context); |
572 | } |
573 | |
574 | /** |
575 | * <!-- begin-user-doc --> |
576 | * <!-- end-user-doc --> |
577 | * @generated |
578 | */ |
579 | public boolean validateParaType(ParaType paraType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
580 | return validate_EveryDefaultConstraint(paraType, diagnostics, context); |
581 | } |
582 | |
583 | /** |
584 | * <!-- begin-user-doc --> |
585 | * <!-- end-user-doc --> |
586 | * @generated |
587 | */ |
588 | public boolean validatePhaseActivities(PhaseActivities phaseActivities, DiagnosticChain diagnostics, Map<Object, Object> context) { |
589 | return validate_EveryDefaultConstraint(phaseActivities, diagnostics, context); |
590 | } |
591 | |
592 | /** |
593 | * <!-- begin-user-doc --> |
594 | * <!-- end-user-doc --> |
595 | * @generated |
596 | */ |
597 | public boolean validatePlotControlType(PlotControlType plotControlType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
598 | return validate_EveryDefaultConstraint(plotControlType, diagnostics, context); |
599 | } |
600 | |
601 | /** |
602 | * <!-- begin-user-doc --> |
603 | * <!-- end-user-doc --> |
604 | * @generated |
605 | */ |
606 | public boolean validatePlotType(PlotType plotType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
607 | return validate_EveryDefaultConstraint(plotType, diagnostics, context); |
608 | } |
609 | |
610 | /** |
611 | * <!-- begin-user-doc --> |
612 | * <!-- end-user-doc --> |
613 | * @generated |
614 | */ |
615 | public boolean validatePortBindingType(PortBindingType portBindingType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
616 | return validate_EveryDefaultConstraint(portBindingType, diagnostics, context); |
617 | } |
618 | |
619 | /** |
620 | * <!-- begin-user-doc --> |
621 | * <!-- end-user-doc --> |
622 | * @generated |
623 | */ |
624 | public boolean validatePragmaType(PragmaType pragmaType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
625 | return validate_EveryDefaultConstraint(pragmaType, diagnostics, context); |
626 | } |
627 | |
628 | /** |
629 | * <!-- begin-user-doc --> |
630 | * <!-- end-user-doc --> |
631 | * @generated |
632 | */ |
633 | public boolean validatePrecedenceType(PrecedenceType precedenceType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
634 | return validate_EveryDefaultConstraint(precedenceType, diagnostics, context); |
635 | } |
636 | |
637 | /** |
638 | * <!-- begin-user-doc --> |
639 | * <!-- end-user-doc --> |
640 | * @generated |
641 | */ |
642 | public boolean validateProcessorBindingType(ProcessorBindingType processorBindingType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
643 | return validate_EveryDefaultConstraint(processorBindingType, diagnostics, context); |
644 | } |
645 | |
646 | /** |
647 | * <!-- begin-user-doc --> |
648 | * <!-- end-user-doc --> |
649 | * @generated |
650 | */ |
651 | public boolean validateProcessorType(ProcessorType processorType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
652 | return validate_EveryDefaultConstraint(processorType, diagnostics, context); |
653 | } |
654 | |
655 | /** |
656 | * <!-- begin-user-doc --> |
657 | * <!-- end-user-doc --> |
658 | * @generated |
659 | */ |
660 | public boolean validateReplyActivityType(ReplyActivityType replyActivityType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
661 | return validate_EveryDefaultConstraint(replyActivityType, diagnostics, context); |
662 | } |
663 | |
664 | /** |
665 | * <!-- begin-user-doc --> |
666 | * <!-- end-user-doc --> |
667 | * @generated |
668 | */ |
669 | public boolean validateReplyEntryType(ReplyEntryType replyEntryType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
670 | return validate_EveryDefaultConstraint(replyEntryType, diagnostics, context); |
671 | } |
672 | |
673 | /** |
674 | * <!-- begin-user-doc --> |
675 | * <!-- end-user-doc --> |
676 | * @generated |
677 | */ |
678 | public boolean validateResultConf95Type(ResultConf95Type resultConf95Type, DiagnosticChain diagnostics, Map<Object, Object> context) { |
679 | return validate_EveryDefaultConstraint(resultConf95Type, diagnostics, context); |
680 | } |
681 | |
682 | /** |
683 | * <!-- begin-user-doc --> |
684 | * <!-- end-user-doc --> |
685 | * @generated |
686 | */ |
687 | public boolean validateResultConf95Type1(ResultConf95Type1 resultConf95Type1, DiagnosticChain diagnostics, Map<Object, Object> context) { |
688 | return validate_EveryDefaultConstraint(resultConf95Type1, diagnostics, context); |
689 | } |
690 | |
691 | /** |
692 | * <!-- begin-user-doc --> |
693 | * <!-- end-user-doc --> |
694 | * @generated |
695 | */ |
696 | public boolean validateResultConf99Type(ResultConf99Type resultConf99Type, DiagnosticChain diagnostics, Map<Object, Object> context) { |
697 | return validate_EveryDefaultConstraint(resultConf99Type, diagnostics, context); |
698 | } |
699 | |
700 | /** |
701 | * <!-- begin-user-doc --> |
702 | * <!-- end-user-doc --> |
703 | * @generated |
704 | */ |
705 | public boolean validateResultConf99Type1(ResultConf99Type1 resultConf99Type1, DiagnosticChain diagnostics, Map<Object, Object> context) { |
706 | return validate_EveryDefaultConstraint(resultConf99Type1, diagnostics, context); |
707 | } |
708 | |
709 | /** |
710 | * <!-- begin-user-doc --> |
711 | * <!-- end-user-doc --> |
712 | * @generated |
713 | */ |
714 | public boolean validateResultGeneralType(ResultGeneralType resultGeneralType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
715 | return validate_EveryDefaultConstraint(resultGeneralType, diagnostics, context); |
716 | } |
717 | |
718 | /** |
719 | * <!-- begin-user-doc --> |
720 | * <!-- end-user-doc --> |
721 | * @generated |
722 | */ |
723 | public boolean validateRunControlType(RunControlType runControlType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
724 | return validate_EveryDefaultConstraint(runControlType, diagnostics, context); |
725 | } |
726 | |
727 | /** |
728 | * <!-- begin-user-doc --> |
729 | * <!-- end-user-doc --> |
730 | * @generated |
731 | */ |
732 | public boolean validateServiceType(ServiceType serviceType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
733 | return validate_EveryDefaultConstraint(serviceType, diagnostics, context); |
734 | } |
735 | |
736 | /** |
737 | * <!-- begin-user-doc --> |
738 | * <!-- end-user-doc --> |
739 | * @generated |
740 | */ |
741 | public boolean validateSingleActivityListType(SingleActivityListType singleActivityListType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
742 | return validate_EveryDefaultConstraint(singleActivityListType, diagnostics, context); |
743 | } |
744 | |
745 | /** |
746 | * <!-- begin-user-doc --> |
747 | * <!-- end-user-doc --> |
748 | * @generated |
749 | */ |
750 | public boolean validateSlotType(SlotType slotType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
751 | return validate_EveryDefaultConstraint(slotType, diagnostics, context); |
752 | } |
753 | |
754 | /** |
755 | * <!-- begin-user-doc --> |
756 | * <!-- end-user-doc --> |
757 | * @generated |
758 | */ |
759 | public boolean validateSolverParamsType(SolverParamsType solverParamsType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
760 | return validate_EveryDefaultConstraint(solverParamsType, diagnostics, context); |
761 | } |
762 | |
763 | /** |
764 | * <!-- begin-user-doc --> |
765 | * <!-- end-user-doc --> |
766 | * @generated |
767 | */ |
768 | public boolean validateSynchCallType(SynchCallType synchCallType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
769 | return validate_EveryDefaultConstraint(synchCallType, diagnostics, context); |
770 | } |
771 | |
772 | /** |
773 | * <!-- begin-user-doc --> |
774 | * <!-- end-user-doc --> |
775 | * @generated |
776 | */ |
777 | public boolean validateTaskActivityGraph(TaskActivityGraph taskActivityGraph, DiagnosticChain diagnostics, Map<Object, Object> context) { |
778 | return validate_EveryDefaultConstraint(taskActivityGraph, diagnostics, context); |
779 | } |
780 | |
781 | /** |
782 | * <!-- begin-user-doc --> |
783 | * <!-- end-user-doc --> |
784 | * @generated |
785 | */ |
786 | public boolean validateTaskType(TaskType taskType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
787 | return validate_EveryDefaultConstraint(taskType, diagnostics, context); |
788 | } |
789 | |
790 | /** |
791 | * <!-- begin-user-doc --> |
792 | * <!-- end-user-doc --> |
793 | * @generated |
794 | */ |
795 | public boolean validateAxisType(AxisType axisType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
796 | return true; |
797 | } |
798 | |
799 | /** |
800 | * <!-- begin-user-doc --> |
801 | * <!-- end-user-doc --> |
802 | * @generated |
803 | */ |
804 | public boolean validateCallOrderType(CallOrderType callOrderType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
805 | return true; |
806 | } |
807 | |
808 | /** |
809 | * <!-- begin-user-doc --> |
810 | * <!-- end-user-doc --> |
811 | * @generated |
812 | */ |
813 | public boolean validateSchedulingType(SchedulingType schedulingType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
814 | return true; |
815 | } |
816 | |
817 | /** |
818 | * <!-- begin-user-doc --> |
819 | * <!-- end-user-doc --> |
820 | * @generated |
821 | */ |
822 | public boolean validateSemaphoreType(SemaphoreType semaphoreType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
823 | return true; |
824 | } |
825 | |
826 | /** |
827 | * <!-- begin-user-doc --> |
828 | * <!-- end-user-doc --> |
829 | * @generated |
830 | */ |
831 | public boolean validateTaskOptionType(TaskOptionType taskOptionType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
832 | return true; |
833 | } |
834 | |
835 | /** |
836 | * <!-- begin-user-doc --> |
837 | * <!-- end-user-doc --> |
838 | * @generated |
839 | */ |
840 | public boolean validateTaskSchedulingType(TaskSchedulingType taskSchedulingType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
841 | return true; |
842 | } |
843 | |
844 | /** |
845 | * <!-- begin-user-doc --> |
846 | * <!-- end-user-doc --> |
847 | * @generated |
848 | */ |
849 | public boolean validateTypeType(TypeType typeType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
850 | return true; |
851 | } |
852 | |
853 | /** |
854 | * <!-- begin-user-doc --> |
855 | * <!-- end-user-doc --> |
856 | * @generated |
857 | */ |
858 | public boolean validateValidType(ValidType validType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
859 | return true; |
860 | } |
861 | |
862 | /** |
863 | * <!-- begin-user-doc --> |
864 | * <!-- end-user-doc --> |
865 | * @generated |
866 | */ |
867 | public boolean validateXmlDebugType(XmlDebugType xmlDebugType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
868 | return true; |
869 | } |
870 | |
871 | /** |
872 | * <!-- begin-user-doc --> |
873 | * <!-- end-user-doc --> |
874 | * @generated |
875 | */ |
876 | public boolean validateAxisTypeObject(AxisType axisTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
877 | return true; |
878 | } |
879 | |
880 | /** |
881 | * <!-- begin-user-doc --> |
882 | * <!-- end-user-doc --> |
883 | * @generated |
884 | */ |
885 | public boolean validateCallOrderTypeObject(CallOrderType callOrderTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
886 | return true; |
887 | } |
888 | |
889 | /** |
890 | * <!-- begin-user-doc --> |
891 | * <!-- end-user-doc --> |
892 | * @generated |
893 | */ |
894 | public boolean validateConnectFromType(List<?> connectFromType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
895 | boolean result = validateConnectFromType_ItemType(connectFromType, diagnostics, context); |
896 | return result; |
897 | } |
898 | |
899 | /** |
900 | * Validates the ItemType constraint of '<em>Connect From Type</em>'. |
901 | * <!-- begin-user-doc --> |
902 | * <!-- end-user-doc --> |
903 | * @generated |
904 | */ |
905 | public boolean validateConnectFromType_ItemType(List<?> connectFromType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
906 | boolean result = true; |
907 | for (Iterator<?> i = connectFromType.iterator(); i.hasNext() && (result || diagnostics != null); ) { |
908 | Object item = i.next(); |
909 | if (XMLTypePackage.Literals.STRING.isInstance(item)) { |
910 | result &= xmlTypeValidator.validateString((String)item, diagnostics, context); |
911 | } |
912 | else { |
913 | result = false; |
914 | reportDataValueTypeViolation(XMLTypePackage.Literals.STRING, item, diagnostics, context); |
915 | } |
916 | } |
917 | return result; |
918 | } |
919 | |
920 | /** |
921 | * <!-- begin-user-doc --> |
922 | * <!-- end-user-doc --> |
923 | * @generated |
924 | */ |
925 | public boolean validateConnectToType(List<?> connectToType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
926 | boolean result = validateConnectToType_ItemType(connectToType, diagnostics, context); |
927 | return result; |
928 | } |
929 | |
930 | /** |
931 | * Validates the ItemType constraint of '<em>Connect To Type</em>'. |
932 | * <!-- begin-user-doc --> |
933 | * <!-- end-user-doc --> |
934 | * @generated |
935 | */ |
936 | public boolean validateConnectToType_ItemType(List<?> connectToType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
937 | boolean result = true; |
938 | for (Iterator<?> i = connectToType.iterator(); i.hasNext() && (result || diagnostics != null); ) { |
939 | Object item = i.next(); |
940 | if (XMLTypePackage.Literals.STRING.isInstance(item)) { |
941 | result &= xmlTypeValidator.validateString((String)item, diagnostics, context); |
942 | } |
943 | else { |
944 | result = false; |
945 | reportDataValueTypeViolation(XMLTypePackage.Literals.STRING, item, diagnostics, context); |
946 | } |
947 | } |
948 | return result; |
949 | } |
950 | |
951 | /** |
952 | * <!-- begin-user-doc --> |
953 | * <!-- end-user-doc --> |
954 | * @generated |
955 | */ |
956 | public boolean validatePhaseType(BigInteger phaseType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
957 | boolean result = validatePhaseType_Min(phaseType, diagnostics, context); |
958 | if (result || diagnostics != null) result &= validatePhaseType_Max(phaseType, diagnostics, context); |
959 | return result; |
960 | } |
961 | |
962 | /** |
963 | * <!-- begin-user-doc --> |
964 | * <!-- end-user-doc --> |
965 | * @generated |
966 | * @see #validatePhaseType_Min |
967 | */ |
968 | public static final BigInteger PHASE_TYPE__MIN__VALUE = new BigInteger("1"); |
969 | |
970 | /** |
971 | * Validates the Min constraint of '<em>Phase Type</em>'. |
972 | * <!-- begin-user-doc --> |
973 | * <!-- end-user-doc --> |
974 | * @generated |
975 | */ |
976 | public boolean validatePhaseType_Min(BigInteger phaseType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
977 | boolean result = phaseType.compareTo(PHASE_TYPE__MIN__VALUE) >= 0; |
978 | if (!result && diagnostics != null) |
979 | reportMinViolation(LqnCorePackage.Literals.PHASE_TYPE, phaseType, PHASE_TYPE__MIN__VALUE, true, diagnostics, context); |
980 | return result; |
981 | } |
982 | |
983 | /** |
984 | * <!-- begin-user-doc --> |
985 | * <!-- end-user-doc --> |
986 | * @generated |
987 | * @see #validatePhaseType_Max |
988 | */ |
989 | public static final BigInteger PHASE_TYPE__MAX__VALUE = new BigInteger("3"); |
990 | |
991 | /** |
992 | * Validates the Max constraint of '<em>Phase Type</em>'. |
993 | * <!-- begin-user-doc --> |
994 | * <!-- end-user-doc --> |
995 | * @generated |
996 | */ |
997 | public boolean validatePhaseType_Max(BigInteger phaseType, DiagnosticChain diagnostics, Map<Object, Object> context) { |
998 | boolean result = phaseType.compareTo(PHASE_TYPE__MAX__VALUE) <= 0; |
999 | if (!result && diagnostics != null) |
1000 | reportMaxViolation(LqnCorePackage.Literals.PHASE_TYPE, phaseType, PHASE_TYPE__MAX__VALUE, true, diagnostics, context); |
1001 | return result; |
1002 | } |
1003 | |
1004 | /** |
1005 | * <!-- begin-user-doc --> |
1006 | * <!-- end-user-doc --> |
1007 | * @generated |
1008 | */ |
1009 | public boolean validateSchedulingTypeObject(SchedulingType schedulingTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1010 | return true; |
1011 | } |
1012 | |
1013 | /** |
1014 | * <!-- begin-user-doc --> |
1015 | * <!-- end-user-doc --> |
1016 | * @generated |
1017 | */ |
1018 | public boolean validateSciNotation(String sciNotation, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1019 | boolean result = validateSciNotation_Pattern(sciNotation, diagnostics, context); |
1020 | return result; |
1021 | } |
1022 | |
1023 | /** |
1024 | * <!-- begin-user-doc --> |
1025 | * <!-- end-user-doc --> |
1026 | * @generated |
1027 | * @see #validateSciNotation_Pattern |
1028 | */ |
1029 | public static final PatternMatcher [][] SCI_NOTATION__PATTERN__VALUES = |
1030 | new PatternMatcher [][] { |
1031 | new PatternMatcher [] { |
1032 | XMLTypeUtil.createPatternMatcher("[\\+|\\-]?\\d+((\\.\\d+)?[e|E][\\+|\\-]\\d+)?") |
1033 | } |
1034 | }; |
1035 | |
1036 | /** |
1037 | * Validates the Pattern constraint of '<em>Sci Notation</em>'. |
1038 | * <!-- begin-user-doc --> |
1039 | * <!-- end-user-doc --> |
1040 | * @generated |
1041 | */ |
1042 | public boolean validateSciNotation_Pattern(String sciNotation, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1043 | return validatePattern(LqnCorePackage.Literals.SCI_NOTATION, sciNotation, SCI_NOTATION__PATTERN__VALUES, diagnostics, context); |
1044 | } |
1045 | |
1046 | /** |
1047 | * <!-- begin-user-doc --> |
1048 | * <!-- end-user-doc --> |
1049 | * @generated |
1050 | */ |
1051 | public boolean validateSemaphoreTypeObject(SemaphoreType semaphoreTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1052 | return true; |
1053 | } |
1054 | |
1055 | /** |
1056 | * <!-- begin-user-doc --> |
1057 | * <!-- end-user-doc --> |
1058 | * @generated |
1059 | */ |
1060 | public boolean validateSrvnFloat(Object srvnFloat, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1061 | boolean result = validateSrvnFloat_MemberTypes(srvnFloat, diagnostics, context); |
1062 | return result; |
1063 | } |
1064 | |
1065 | /** |
1066 | * Validates the MemberTypes constraint of '<em>Srvn Float</em>'. |
1067 | * <!-- begin-user-doc --> |
1068 | * <!-- end-user-doc --> |
1069 | * @generated |
1070 | */ |
1071 | public boolean validateSrvnFloat_MemberTypes(Object srvnFloat, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1072 | if (diagnostics != null) { |
1073 | BasicDiagnostic tempDiagnostics = new BasicDiagnostic(); |
1074 | if (LqnCorePackage.Literals.SCI_NOTATION.isInstance(srvnFloat)) { |
1075 | if (validateSciNotation((String)srvnFloat, tempDiagnostics, context)) return true; |
1076 | } |
1077 | if (XMLTypePackage.Literals.DECIMAL.isInstance(srvnFloat)) { |
1078 | if (xmlTypeValidator.validateDecimal((BigDecimal)srvnFloat, tempDiagnostics, context)) return true; |
1079 | } |
1080 | for (Diagnostic diagnostic : tempDiagnostics.getChildren()) { |
1081 | diagnostics.add(diagnostic); |
1082 | } |
1083 | } |
1084 | else { |
1085 | if (LqnCorePackage.Literals.SCI_NOTATION.isInstance(srvnFloat)) { |
1086 | if (validateSciNotation((String)srvnFloat, null, context)) return true; |
1087 | } |
1088 | if (XMLTypePackage.Literals.DECIMAL.isInstance(srvnFloat)) { |
1089 | if (xmlTypeValidator.validateDecimal((BigDecimal)srvnFloat, null, context)) return true; |
1090 | } |
1091 | } |
1092 | return false; |
1093 | } |
1094 | |
1095 | /** |
1096 | * <!-- begin-user-doc --> |
1097 | * <!-- end-user-doc --> |
1098 | * @generated |
1099 | */ |
1100 | public boolean validateTaskOptionTypeObject(TaskOptionType taskOptionTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1101 | return true; |
1102 | } |
1103 | |
1104 | /** |
1105 | * <!-- begin-user-doc --> |
1106 | * <!-- end-user-doc --> |
1107 | * @generated |
1108 | */ |
1109 | public boolean validateTaskSchedulingTypeObject(TaskSchedulingType taskSchedulingTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1110 | return true; |
1111 | } |
1112 | |
1113 | /** |
1114 | * <!-- begin-user-doc --> |
1115 | * <!-- end-user-doc --> |
1116 | * @generated |
1117 | */ |
1118 | public boolean validateTypeTypeObject(TypeType typeTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1119 | return true; |
1120 | } |
1121 | |
1122 | /** |
1123 | * <!-- begin-user-doc --> |
1124 | * <!-- end-user-doc --> |
1125 | * @generated |
1126 | */ |
1127 | public boolean validateValidTypeObject(ValidType validTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1128 | return true; |
1129 | } |
1130 | |
1131 | /** |
1132 | * <!-- begin-user-doc --> |
1133 | * <!-- end-user-doc --> |
1134 | * @generated |
1135 | */ |
1136 | public boolean validateXmlDebugTypeObject(XmlDebugType xmlDebugTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { |
1137 | return true; |
1138 | } |
1139 | |
1140 | } //LqnCoreValidator |