Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 202695 | Differences between
and this patch

Collapse All | Expand All

(-)META-INF/MANIFEST.MF (-1 / +1 lines)
Lines 2-8 Link Here
2
Bundle-ManifestVersion: 2
2
Bundle-ManifestVersion: 2
3
Bundle-Name: %pluginName
3
Bundle-Name: %pluginName
4
Bundle-SymbolicName: org.eclipse.tptp.platform.models; singleton:=true
4
Bundle-SymbolicName: org.eclipse.tptp.platform.models; singleton:=true
5
Bundle-Version: 4.3.100.qualifier
5
Bundle-Version: 4.4.0.qualifier
6
Bundle-ClassPath: tptp-models.jar,
6
Bundle-ClassPath: tptp-models.jar,
7
 fastxpath.jar
7
 fastxpath.jar
8
Bundle-Activator: org.eclipse.hyades.models.plugin.ModelsPlugin$Implementation
8
Bundle-Activator: org.eclipse.hyades.models.plugin.ModelsPlugin$Implementation
(-)src-test/org/eclipse/hyades/models/common/datapool/Common_DatapoolPackage.java (-5 / +61 lines)
Lines 330-342 Link Here
330
	int DPL_VARIABLE__ROLE = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 1;
330
	int DPL_VARIABLE__ROLE = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 1;
331
331
332
	/**
332
	/**
333
	 * The feature id for the '<em><b>Encrypted</b></em>' attribute.
334
	 * <!-- begin-user-doc -->
335
	 * <!-- end-user-doc -->
336
	 * @generated
337
	 * @ordered
338
	 */
339
	int DPL_VARIABLE__ENCRYPTED = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 2;
340
341
	/**
333
	 * The feature id for the '<em><b>Variables</b></em>' containment reference list.
342
	 * The feature id for the '<em><b>Variables</b></em>' containment reference list.
334
	 * <!-- begin-user-doc -->
343
	 * <!-- begin-user-doc -->
335
	 * <!-- end-user-doc -->
344
	 * <!-- end-user-doc -->
336
	 * @generated
345
	 * @generated
337
	 * @ordered
346
	 * @ordered
338
	 */
347
	 */
339
	int DPL_VARIABLE__VARIABLES = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 2;
348
	int DPL_VARIABLE__VARIABLES = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 3;
340
349
341
	/**
350
	/**
342
	 * The number of structural features of the '<em>DPL Variable</em>' class.
351
	 * The number of structural features of the '<em>DPL Variable</em>' class.
Lines 345-351 Link Here
345
	 * @generated
354
	 * @generated
346
	 * @ordered
355
	 * @ordered
347
	 */
356
	 */
348
	int DPL_VARIABLE_FEATURE_COUNT = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 3;
357
	int DPL_VARIABLE_FEATURE_COUNT = CommonPackage.CMN_NAMED_ELEMENT_FEATURE_COUNT + 4;
349
358
350
	/**
359
	/**
351
	 * The feature id for the '<em><b>Id</b></em>' attribute.
360
	 * The feature id for the '<em><b>Id</b></em>' attribute.
Lines 402-414 Link Here
402
	int DPL_DATAPOOL__INSTANTIATIONS = Common_ConfigurationPackage.CFG_CLASS__INSTANTIATIONS;
411
	int DPL_DATAPOOL__INSTANTIATIONS = Common_ConfigurationPackage.CFG_CLASS__INSTANTIATIONS;
403
412
404
	/**
413
	/**
414
	 * The feature id for the '<em><b>Challenge</b></em>' attribute.
415
	 * <!-- begin-user-doc -->
416
	 * <!-- end-user-doc -->
417
	 * @generated
418
	 * @ordered
419
	 */
420
	int DPL_DATAPOOL__CHALLENGE = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 0;
421
422
	/**
405
	 * The feature id for the '<em><b>Equivalence Classes</b></em>' containment reference list.
423
	 * The feature id for the '<em><b>Equivalence Classes</b></em>' containment reference list.
406
	 * <!-- begin-user-doc -->
424
	 * <!-- begin-user-doc -->
407
	 * <!-- end-user-doc -->
425
	 * <!-- end-user-doc -->
408
	 * @generated
426
	 * @generated
409
	 * @ordered
427
	 * @ordered
410
	 */
428
	 */
411
	int DPL_DATAPOOL__EQUIVALENCE_CLASSES = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 0;
429
	int DPL_DATAPOOL__EQUIVALENCE_CLASSES = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 1;
412
430
413
	/**
431
	/**
414
	 * The feature id for the '<em><b>Datapool Spec</b></em>' containment reference.
432
	 * The feature id for the '<em><b>Datapool Spec</b></em>' containment reference.
Lines 417-423 Link Here
417
	 * @generated
435
	 * @generated
418
	 * @ordered
436
	 * @ordered
419
	 */
437
	 */
420
	int DPL_DATAPOOL__DATAPOOL_SPEC = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 1;
438
	int DPL_DATAPOOL__DATAPOOL_SPEC = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 2;
421
439
422
	/**
440
	/**
423
	 * The number of structural features of the '<em>DPL Datapool</em>' class.
441
	 * The number of structural features of the '<em>DPL Datapool</em>' class.
Lines 426-432 Link Here
426
	 * @generated
444
	 * @generated
427
	 * @ordered
445
	 * @ordered
428
	 */
446
	 */
429
	int DPL_DATAPOOL_FEATURE_COUNT = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 2;
447
	int DPL_DATAPOOL_FEATURE_COUNT = Common_ConfigurationPackage.CFG_CLASS_FEATURE_COUNT + 3;
430
448
431
	/**
449
	/**
432
	 * The meta object id for the '{@link org.eclipse.hyades.models.common.datapool.DPLRole <em>DPL Role</em>}' enum.
450
	 * The meta object id for the '{@link org.eclipse.hyades.models.common.datapool.DPLRole <em>DPL Role</em>}' enum.
Lines 471-476 Link Here
471
	EClass getDPLDatapool();
489
	EClass getDPLDatapool();
472
490
473
	/**
491
	/**
492
	 * Returns the meta object for the attribute '{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getChallenge <em>Challenge</em>}'.
493
	 * <!-- begin-user-doc -->
494
	 * <!-- end-user-doc -->
495
	 * @return the meta object for the attribute '<em>Challenge</em>'.
496
	 * @see org.eclipse.hyades.models.common.datapool.DPLDatapool#getChallenge()
497
	 * @see #getDPLDatapool()
498
	 * @generated
499
	 */
500
	EAttribute getDPLDatapool_Challenge();
501
502
	/**
474
	 * Returns the meta object for the containment reference list '{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getEquivalenceClasses <em>Equivalence Classes</em>}'.
503
	 * Returns the meta object for the containment reference list '{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getEquivalenceClasses <em>Equivalence Classes</em>}'.
475
	 * <!-- begin-user-doc -->
504
	 * <!-- begin-user-doc -->
476
	 * <!-- end-user-doc -->
505
	 * <!-- end-user-doc -->
Lines 610-615 Link Here
610
	EAttribute getDPLVariable_Role();
639
	EAttribute getDPLVariable_Role();
611
640
612
	/**
641
	/**
642
	 * Returns the meta object for the attribute '{@link org.eclipse.hyades.models.common.datapool.DPLVariable#isEncrypted <em>Encrypted</em>}'.
643
	 * <!-- begin-user-doc -->
644
	 * <!-- end-user-doc -->
645
	 * @return the meta object for the attribute '<em>Encrypted</em>'.
646
	 * @see org.eclipse.hyades.models.common.datapool.DPLVariable#isEncrypted()
647
	 * @see #getDPLVariable()
648
	 * @generated
649
	 */
650
	EAttribute getDPLVariable_Encrypted();
651
652
	/**
613
	 * Returns the meta object for the containment reference list '{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getVariables <em>Variables</em>}'.
653
	 * Returns the meta object for the containment reference list '{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getVariables <em>Variables</em>}'.
614
	 * <!-- begin-user-doc -->
654
	 * <!-- begin-user-doc -->
615
	 * <!-- end-user-doc -->
655
	 * <!-- end-user-doc -->
Lines 767-772 Link Here
767
		EAttribute DPL_VARIABLE__ROLE = eINSTANCE.getDPLVariable_Role();
807
		EAttribute DPL_VARIABLE__ROLE = eINSTANCE.getDPLVariable_Role();
768
808
769
		/**
809
		/**
810
		 * The meta object literal for the '<em><b>Encrypted</b></em>' attribute feature.
811
		 * <!-- begin-user-doc -->
812
		 * <!-- end-user-doc -->
813
		 * @generated
814
		 */
815
		EAttribute DPL_VARIABLE__ENCRYPTED = eINSTANCE.getDPLVariable_Encrypted();
816
817
		/**
770
		 * The meta object literal for the '<em><b>Variables</b></em>' containment reference list feature.
818
		 * The meta object literal for the '<em><b>Variables</b></em>' containment reference list feature.
771
		 * <!-- begin-user-doc -->
819
		 * <!-- begin-user-doc -->
772
		 * <!-- end-user-doc -->
820
		 * <!-- end-user-doc -->
Lines 785-790 Link Here
785
		EClass DPL_DATAPOOL = eINSTANCE.getDPLDatapool();
833
		EClass DPL_DATAPOOL = eINSTANCE.getDPLDatapool();
786
834
787
		/**
835
		/**
836
		 * The meta object literal for the '<em><b>Challenge</b></em>' attribute feature.
837
		 * <!-- begin-user-doc -->
838
		 * <!-- end-user-doc -->
839
		 * @generated
840
		 */
841
		EAttribute DPL_DATAPOOL__CHALLENGE = eINSTANCE.getDPLDatapool_Challenge();
842
843
		/**
788
		 * The meta object literal for the '<em><b>Equivalence Classes</b></em>' containment reference list feature.
844
		 * The meta object literal for the '<em><b>Equivalence Classes</b></em>' containment reference list feature.
789
		 * <!-- begin-user-doc -->
845
		 * <!-- begin-user-doc -->
790
		 * <!-- end-user-doc -->
846
		 * <!-- end-user-doc -->
(-)src-test/org/eclipse/hyades/models/common/datapool/DPLDatapool.java (-1 / +28 lines)
Lines 31-36 Link Here
31
 * <p>
31
 * <p>
32
 * The following features are supported:
32
 * The following features are supported:
33
 * <ul>
33
 * <ul>
34
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getChallenge <em>Challenge</em>}</li>
34
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getEquivalenceClasses <em>Equivalence Classes</em>}</li>
35
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getEquivalenceClasses <em>Equivalence Classes</em>}</li>
35
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getDatapoolSpec <em>Datapool Spec</em>}</li>
36
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getDatapoolSpec <em>Datapool Spec</em>}</li>
36
 * </ul>
37
 * </ul>
Lines 40-46 Link Here
40
 * @model
41
 * @model
41
 * @generated
42
 * @generated
42
 */
43
 */
43
public interface DPLDatapool extends CFGClass, CMNNamedElement, IDatapool{
44
public interface DPLDatapool extends CFGClass, CMNNamedElement, IDatapool {
44
	/**
45
	/**
45
	 * <!-- begin-user-doc -->
46
	 * <!-- begin-user-doc -->
46
	 * <!-- end-user-doc -->
47
	 * <!-- end-user-doc -->
Lines 49-54 Link Here
49
	String copyright = "";
50
	String copyright = "";
50
51
51
	/**
52
	/**
53
	 * Returns the value of the '<em><b>Challenge</b></em>' attribute.
54
	 * <!-- begin-user-doc -->
55
	 * <!-- end-user-doc -->
56
	 * <!-- begin-model-doc -->
57
	 * This string is used to determine whether a user supplied password for an encrypted datapool is correct.
58
	 * <!-- end-model-doc -->
59
	 * @return the value of the '<em>Challenge</em>' attribute.
60
	 * @see #setChallenge(String)
61
	 * @see org.eclipse.hyades.models.common.datapool.Common_DatapoolPackage#getDPLDatapool_Challenge()
62
	 * @model
63
	 * @generated
64
	 */
65
	String getChallenge();
66
67
	/**
68
	 * Sets the value of the '{@link org.eclipse.hyades.models.common.datapool.DPLDatapool#getChallenge <em>Challenge</em>}' attribute.
69
	 * <!-- begin-user-doc -->
70
	 * <!-- end-user-doc -->
71
	 * @param value the new value of the '<em>Challenge</em>' attribute.
72
	 * @see #getChallenge()
73
	 * @generated
74
	 */
75
	void setChallenge(String value);
76
77
	/**
52
	 * Returns the value of the '<em><b>Equivalence Classes</b></em>' containment reference list.
78
	 * Returns the value of the '<em><b>Equivalence Classes</b></em>' containment reference list.
53
	 * The list contents are of type {@link org.eclipse.hyades.models.common.datapool.DPLEquivalenceClass}.
79
	 * The list contents are of type {@link org.eclipse.hyades.models.common.datapool.DPLEquivalenceClass}.
54
	 * <!-- begin-user-doc -->
80
	 * <!-- begin-user-doc -->
Lines 90-93 Link Here
90
	 */
116
	 */
91
	void setDatapoolSpec(DPLDatapoolSpec value);
117
	void setDatapoolSpec(DPLDatapoolSpec value);
92
118
119
	
93
} // DPLDatapool
120
} // DPLDatapool
(-)src-test/org/eclipse/hyades/models/common/datapool/DPLVariable.java (-1 / +33 lines)
Lines 32-37 Link Here
32
 * <ul>
32
 * <ul>
33
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getType <em>Type</em>}</li>
33
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getType <em>Type</em>}</li>
34
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getRole <em>Role</em>}</li>
34
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getRole <em>Role</em>}</li>
35
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#isEncrypted <em>Encrypted</em>}</li>
35
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getVariables <em>Variables</em>}</li>
36
 *   <li>{@link org.eclipse.hyades.models.common.datapool.DPLVariable#getVariables <em>Variables</em>}</li>
36
 * </ul>
37
 * </ul>
37
 * </p>
38
 * </p>
Lines 40-46 Link Here
40
 * @model
41
 * @model
41
 * @generated
42
 * @generated
42
 */
43
 */
43
public interface DPLVariable extends CMNNamedElement, IDatapoolVariable{
44
public interface DPLVariable extends CMNNamedElement, IDatapoolVariable {
44
	/**
45
	/**
45
	 * <!-- begin-user-doc -->
46
	 * <!-- begin-user-doc -->
46
	 * <!-- end-user-doc -->
47
	 * <!-- end-user-doc -->
Lines 104-109 Link Here
104
	void setRole(DPLRole value);
105
	void setRole(DPLRole value);
105
106
106
	/**
107
	/**
108
	 * Returns the value of the '<em><b>Encrypted</b></em>' attribute.
109
	 * The default value is <code>"false"</code>.
110
	 * <!-- begin-user-doc -->
111
	 * <p>
112
	 * If the meaning of the '<em>Encrypted</em>' attribute isn't clear,
113
	 * there really should be more of a description here...
114
	 * </p>
115
	 * <!-- end-user-doc -->
116
	 * <!-- begin-model-doc -->
117
	 * This boolean specifies whether or not this DPLVariable is encrypted.
118
	 * <!-- end-model-doc -->
119
	 * @return the value of the '<em>Encrypted</em>' attribute.
120
	 * @see #setEncrypted(boolean)
121
	 * @see org.eclipse.hyades.models.common.datapool.Common_DatapoolPackage#getDPLVariable_Encrypted()
122
	 * @model default="false"
123
	 * @generated
124
	 */
125
	boolean isEncrypted();
126
127
	/**
128
	 * Sets the value of the '{@link org.eclipse.hyades.models.common.datapool.DPLVariable#isEncrypted <em>Encrypted</em>}' attribute.
129
	 * <!-- begin-user-doc -->
130
	 * <!-- end-user-doc -->
131
	 * @param value the new value of the '<em>Encrypted</em>' attribute.
132
	 * @see #isEncrypted()
133
	 * @generated
134
	 */
135
	void setEncrypted(boolean value);
136
137
	/**
107
	 * Returns the value of the '<em><b>Variables</b></em>' containment reference list.
138
	 * Returns the value of the '<em><b>Variables</b></em>' containment reference list.
108
	 * The list contents are of type {@link org.eclipse.hyades.models.common.datapool.DPLVariable}.
139
	 * The list contents are of type {@link org.eclipse.hyades.models.common.datapool.DPLVariable}.
109
	 * <!-- begin-user-doc -->
140
	 * <!-- begin-user-doc -->
Lines 119-122 Link Here
119
	 */
150
	 */
120
	EList getVariables();
151
	EList getVariables();
121
152
153
	
122
} // DPLVariable
154
} // DPLVariable
(-)src-test/org/eclipse/hyades/models/common/datapool/impl/Common_DatapoolPackageImpl.java (-3 / +25 lines)
Lines 229-236 Link Here
229
	 * <!-- end-user-doc -->
229
	 * <!-- end-user-doc -->
230
	 * @generated
230
	 * @generated
231
	 */
231
	 */
232
	public EAttribute getDPLDatapool_Challenge() {
233
		return (EAttribute)dplDatapoolEClass.getEStructuralFeatures().get(0);
234
	}
235
236
	/**
237
	 * <!-- begin-user-doc -->
238
	 * <!-- end-user-doc -->
239
	 * @generated
240
	 */
232
	public EReference getDPLDatapool_EquivalenceClasses() {
241
	public EReference getDPLDatapool_EquivalenceClasses() {
233
		return (EReference)dplDatapoolEClass.getEStructuralFeatures().get(0);
242
		return (EReference)dplDatapoolEClass.getEStructuralFeatures().get(1);
234
	}
243
	}
235
244
236
	/**
245
	/**
Lines 239-245 Link Here
239
	 * @generated
248
	 * @generated
240
	 */
249
	 */
241
	public EReference getDPLDatapool_DatapoolSpec() {
250
	public EReference getDPLDatapool_DatapoolSpec() {
242
		return (EReference)dplDatapoolEClass.getEStructuralFeatures().get(1);
251
		return (EReference)dplDatapoolEClass.getEStructuralFeatures().get(2);
243
	}
252
	}
244
253
245
	/**
254
	/**
Lines 346-353 Link Here
346
	 * <!-- end-user-doc -->
355
	 * <!-- end-user-doc -->
347
	 * @generated
356
	 * @generated
348
	 */
357
	 */
358
	public EAttribute getDPLVariable_Encrypted() {
359
		return (EAttribute)dplVariableEClass.getEStructuralFeatures().get(2);
360
	}
361
362
	/**
363
	 * <!-- begin-user-doc -->
364
	 * <!-- end-user-doc -->
365
	 * @generated
366
	 */
349
	public EReference getDPLVariable_Variables() {
367
	public EReference getDPLVariable_Variables() {
350
		return (EReference)dplVariableEClass.getEStructuralFeatures().get(2);
368
		return (EReference)dplVariableEClass.getEStructuralFeatures().get(3);
351
	}
369
	}
352
370
353
	/**
371
	/**
Lines 404-412 Link Here
404
		dplVariableEClass = createEClass(DPL_VARIABLE);
422
		dplVariableEClass = createEClass(DPL_VARIABLE);
405
		createEAttribute(dplVariableEClass, DPL_VARIABLE__TYPE);
423
		createEAttribute(dplVariableEClass, DPL_VARIABLE__TYPE);
406
		createEAttribute(dplVariableEClass, DPL_VARIABLE__ROLE);
424
		createEAttribute(dplVariableEClass, DPL_VARIABLE__ROLE);
425
		createEAttribute(dplVariableEClass, DPL_VARIABLE__ENCRYPTED);
407
		createEReference(dplVariableEClass, DPL_VARIABLE__VARIABLES);
426
		createEReference(dplVariableEClass, DPL_VARIABLE__VARIABLES);
408
427
409
		dplDatapoolEClass = createEClass(DPL_DATAPOOL);
428
		dplDatapoolEClass = createEClass(DPL_DATAPOOL);
429
		createEAttribute(dplDatapoolEClass, DPL_DATAPOOL__CHALLENGE);
410
		createEReference(dplDatapoolEClass, DPL_DATAPOOL__EQUIVALENCE_CLASSES);
430
		createEReference(dplDatapoolEClass, DPL_DATAPOOL__EQUIVALENCE_CLASSES);
411
		createEReference(dplDatapoolEClass, DPL_DATAPOOL__DATAPOOL_SPEC);
431
		createEReference(dplDatapoolEClass, DPL_DATAPOOL__DATAPOOL_SPEC);
412
432
Lines 466-474 Link Here
466
		initEClass(dplVariableEClass, DPLVariable.class, "DPLVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
486
		initEClass(dplVariableEClass, DPLVariable.class, "DPLVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
467
		initEAttribute(getDPLVariable_Type(), ecorePackage.getEString(), "type", null, 0, 1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
487
		initEAttribute(getDPLVariable_Type(), ecorePackage.getEString(), "type", null, 0, 1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
468
		initEAttribute(getDPLVariable_Role(), this.getDPLRole(), "role", null, 0, 1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
488
		initEAttribute(getDPLVariable_Role(), this.getDPLRole(), "role", null, 0, 1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
489
		initEAttribute(getDPLVariable_Encrypted(), ecorePackage.getEBoolean(), "encrypted", "false", 0, 1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
469
		initEReference(getDPLVariable_Variables(), this.getDPLVariable(), null, "variables", null, 0, -1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
490
		initEReference(getDPLVariable_Variables(), this.getDPLVariable(), null, "variables", null, 0, -1, DPLVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
470
491
471
		initEClass(dplDatapoolEClass, DPLDatapool.class, "DPLDatapool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
492
		initEClass(dplDatapoolEClass, DPLDatapool.class, "DPLDatapool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
493
		initEAttribute(getDPLDatapool_Challenge(), ecorePackage.getEString(), "challenge", null, 0, 1, DPLDatapool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
472
		initEReference(getDPLDatapool_EquivalenceClasses(), this.getDPLEquivalenceClass(), null, "equivalenceClasses", null, 0, -1, DPLDatapool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
494
		initEReference(getDPLDatapool_EquivalenceClasses(), this.getDPLEquivalenceClass(), null, "equivalenceClasses", null, 0, -1, DPLDatapool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
473
		initEReference(getDPLDatapool_DatapoolSpec(), this.getDPLDatapoolSpec(), null, "datapoolSpec", null, 1, 1, DPLDatapool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
495
		initEReference(getDPLDatapool_DatapoolSpec(), this.getDPLDatapoolSpec(), null, "datapoolSpec", null, 1, 1, DPLDatapool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
474
496
(-)src-test/org/eclipse/hyades/models/common/datapool/impl/DPLDatapoolImpl.java (+68 lines)
Lines 54-59 Link Here
54
 * <p>
54
 * <p>
55
 * The following features are implemented:
55
 * The following features are implemented:
56
 * <ul>
56
 * <ul>
57
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLDatapoolImpl#getChallenge <em>Challenge</em>}</li>
57
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLDatapoolImpl#getEquivalenceClasses <em>Equivalence Classes</em>}</li>
58
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLDatapoolImpl#getEquivalenceClasses <em>Equivalence Classes</em>}</li>
58
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLDatapoolImpl#getDatapoolSpec <em>Datapool Spec</em>}</li>
59
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLDatapoolImpl#getDatapoolSpec <em>Datapool Spec</em>}</li>
59
 * </ul>
60
 * </ul>
Lines 72-77 Link Here
72
	public static final String copyright = "";
73
	public static final String copyright = "";
73
74
74
	/**
75
	/**
76
	 * The default value of the '{@link #getChallenge() <em>Challenge</em>}' attribute.
77
	 * <!-- begin-user-doc -->
78
	 * <!-- end-user-doc -->
79
	 * @see #getChallenge()
80
	 * @generated
81
	 * @ordered
82
	 */
83
	protected static final String CHALLENGE_EDEFAULT = null;
84
85
	/**
86
	 * The cached value of the '{@link #getChallenge() <em>Challenge</em>}' attribute.
87
	 * <!-- begin-user-doc -->
88
	 * <!-- end-user-doc -->
89
	 * @see #getChallenge()
90
	 * @generated
91
	 * @ordered
92
	 */
93
	protected String challenge = CHALLENGE_EDEFAULT;
94
95
	/**
75
	 * The cached value of the '{@link #getEquivalenceClasses() <em>Equivalence Classes</em>}' containment reference list.
96
	 * The cached value of the '{@link #getEquivalenceClasses() <em>Equivalence Classes</em>}' containment reference list.
76
	 * <!-- begin-user-doc -->
97
	 * <!-- begin-user-doc -->
77
	 * <!-- end-user-doc -->
98
	 * <!-- end-user-doc -->
Lines 131-136 Link Here
131
	 * <!-- end-user-doc -->
152
	 * <!-- end-user-doc -->
132
	 * @generated
153
	 * @generated
133
	 */
154
	 */
155
	public String getChallenge() {
156
		return challenge;
157
	}
158
159
	/**
160
	 * <!-- begin-user-doc -->
161
	 * <!-- end-user-doc -->
162
	 * @generated
163
	 */
164
	public void setChallenge(String newChallenge) {
165
		String oldChallenge = challenge;
166
		challenge = newChallenge;
167
		if (eNotificationRequired())
168
			eNotify(new ENotificationImpl(this, Notification.SET, Common_DatapoolPackage.DPL_DATAPOOL__CHALLENGE, oldChallenge, challenge));
169
	}
170
171
	/**
172
	 * <!-- begin-user-doc -->
173
	 * <!-- end-user-doc -->
174
	 * @generated
175
	 */
134
	public EList getEquivalenceClasses() {
176
	public EList getEquivalenceClasses() {
135
		if (equivalenceClasses == null) {
177
		if (equivalenceClasses == null) {
136
			equivalenceClasses = new EObjectContainmentEList(DPLEquivalenceClass.class, this, Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES);
178
			equivalenceClasses = new EObjectContainmentEList(DPLEquivalenceClass.class, this, Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES);
Lines 203-208 Link Here
203
	 */
245
	 */
204
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
246
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
205
		switch (featureID) {
247
		switch (featureID) {
248
			case Common_DatapoolPackage.DPL_DATAPOOL__CHALLENGE:
249
				return getChallenge();
206
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
250
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
207
				return getEquivalenceClasses();
251
				return getEquivalenceClasses();
208
			case Common_DatapoolPackage.DPL_DATAPOOL__DATAPOOL_SPEC:
252
			case Common_DatapoolPackage.DPL_DATAPOOL__DATAPOOL_SPEC:
Lines 218-223 Link Here
218
	 */
262
	 */
219
	public void eSet(int featureID, Object newValue) {
263
	public void eSet(int featureID, Object newValue) {
220
		switch (featureID) {
264
		switch (featureID) {
265
			case Common_DatapoolPackage.DPL_DATAPOOL__CHALLENGE:
266
				setChallenge((String)newValue);
267
				return;
221
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
268
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
222
				getEquivalenceClasses().clear();
269
				getEquivalenceClasses().clear();
223
				getEquivalenceClasses().addAll((Collection)newValue);
270
				getEquivalenceClasses().addAll((Collection)newValue);
Lines 236-241 Link Here
236
	 */
283
	 */
237
	public void eUnset(int featureID) {
284
	public void eUnset(int featureID) {
238
		switch (featureID) {
285
		switch (featureID) {
286
			case Common_DatapoolPackage.DPL_DATAPOOL__CHALLENGE:
287
				setChallenge(CHALLENGE_EDEFAULT);
288
				return;
239
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
289
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
240
				getEquivalenceClasses().clear();
290
				getEquivalenceClasses().clear();
241
				return;
291
				return;
Lines 253-258 Link Here
253
	 */
303
	 */
254
	public boolean eIsSet(int featureID) {
304
	public boolean eIsSet(int featureID) {
255
		switch (featureID) {
305
		switch (featureID) {
306
			case Common_DatapoolPackage.DPL_DATAPOOL__CHALLENGE:
307
				return CHALLENGE_EDEFAULT == null ? challenge != null : !CHALLENGE_EDEFAULT.equals(challenge);
256
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
308
			case Common_DatapoolPackage.DPL_DATAPOOL__EQUIVALENCE_CLASSES:
257
				return equivalenceClasses != null && !equivalenceClasses.isEmpty();
309
				return equivalenceClasses != null && !equivalenceClasses.isEmpty();
258
			case Common_DatapoolPackage.DPL_DATAPOOL__DATAPOOL_SPEC:
310
			case Common_DatapoolPackage.DPL_DATAPOOL__DATAPOOL_SPEC:
Lines 261-266 Link Here
261
		return super.eIsSet(featureID);
313
		return super.eIsSet(featureID);
262
	}
314
	}
263
315
316
	/**
317
	 * <!-- begin-user-doc -->
318
	 * <!-- end-user-doc -->
319
	 * @generated
320
	 */
321
	public String toString() {
322
		if (eIsProxy()) return super.toString();
323
324
		StringBuffer result = new StringBuffer(super.toString());
325
		result.append(" (challenge: ");
326
		result.append(challenge);
327
		result.append(')');
328
		return result.toString();
329
	}
330
331
	
264
	/* (non-Javadoc)
332
	/* (non-Javadoc)
265
	 * @see org.eclipse.hyades.models.common.configuration.impl.CFGClassImpl#getLocation()
333
	 * @see org.eclipse.hyades.models.common.configuration.impl.CFGClassImpl#getLocation()
266
	 */
334
	 */
(-)src-test/org/eclipse/hyades/models/common/datapool/impl/DPLVariableImpl.java (+59 lines)
Lines 49-54 Link Here
49
 * <ul>
49
 * <ul>
50
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#getType <em>Type</em>}</li>
50
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#getType <em>Type</em>}</li>
51
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#getRole <em>Role</em>}</li>
51
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#getRole <em>Role</em>}</li>
52
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#isEncrypted <em>Encrypted</em>}</li>
52
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#getVariables <em>Variables</em>}</li>
53
 *   <li>{@link org.eclipse.hyades.models.common.datapool.impl.DPLVariableImpl#getVariables <em>Variables</em>}</li>
53
 * </ul>
54
 * </ul>
54
 * </p>
55
 * </p>
Lines 106-111 Link Here
106
	protected DPLRole role = ROLE_EDEFAULT;
107
	protected DPLRole role = ROLE_EDEFAULT;
107
108
108
	/**
109
	/**
110
	 * The default value of the '{@link #isEncrypted() <em>Encrypted</em>}' attribute.
111
	 * <!-- begin-user-doc -->
112
	 * <!-- end-user-doc -->
113
	 * @see #isEncrypted()
114
	 * @generated
115
	 * @ordered
116
	 */
117
	protected static final boolean ENCRYPTED_EDEFAULT = false;
118
119
	/**
120
	 * The cached value of the '{@link #isEncrypted() <em>Encrypted</em>}' attribute.
121
	 * <!-- begin-user-doc -->
122
	 * <!-- end-user-doc -->
123
	 * @see #isEncrypted()
124
	 * @generated
125
	 * @ordered
126
	 */
127
	protected boolean encrypted = ENCRYPTED_EDEFAULT;
128
129
	/**
109
	 * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list.
130
	 * The cached value of the '{@link #getVariables() <em>Variables</em>}' containment reference list.
110
	 * <!-- begin-user-doc -->
131
	 * <!-- begin-user-doc -->
111
	 * <!-- end-user-doc -->
132
	 * <!-- end-user-doc -->
Lines 180-185 Link Here
180
	 * <!-- end-user-doc -->
201
	 * <!-- end-user-doc -->
181
	 * @generated
202
	 * @generated
182
	 */
203
	 */
204
	public boolean isEncrypted() {
205
		return encrypted;
206
	}
207
208
	/**
209
	 * <!-- begin-user-doc -->
210
	 * <!-- end-user-doc -->
211
	 * @generated
212
	 */
213
	public void setEncrypted(boolean newEncrypted) {
214
		boolean oldEncrypted = encrypted;
215
		encrypted = newEncrypted;
216
		if (eNotificationRequired())
217
			eNotify(new ENotificationImpl(this, Notification.SET, Common_DatapoolPackage.DPL_VARIABLE__ENCRYPTED, oldEncrypted, encrypted));
218
	}
219
220
	/**
221
	 * <!-- begin-user-doc -->
222
	 * <!-- end-user-doc -->
223
	 * @generated
224
	 */
183
	public EList getVariables() {
225
	public EList getVariables() {
184
		if (variables == null) {
226
		if (variables == null) {
185
			variables = new EObjectContainmentEList(DPLVariable.class, this, Common_DatapoolPackage.DPL_VARIABLE__VARIABLES);
227
			variables = new EObjectContainmentEList(DPLVariable.class, this, Common_DatapoolPackage.DPL_VARIABLE__VARIABLES);
Lines 211-216 Link Here
211
				return getType();
253
				return getType();
212
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
254
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
213
				return getRole();
255
				return getRole();
256
			case Common_DatapoolPackage.DPL_VARIABLE__ENCRYPTED:
257
				return isEncrypted() ? Boolean.TRUE : Boolean.FALSE;
214
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
258
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
215
				return getVariables();
259
				return getVariables();
216
		}
260
		}
Lines 230-235 Link Here
230
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
274
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
231
				setRole((DPLRole)newValue);
275
				setRole((DPLRole)newValue);
232
				return;
276
				return;
277
			case Common_DatapoolPackage.DPL_VARIABLE__ENCRYPTED:
278
				setEncrypted(((Boolean)newValue).booleanValue());
279
				return;
233
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
280
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
234
				getVariables().clear();
281
				getVariables().clear();
235
				getVariables().addAll((Collection)newValue);
282
				getVariables().addAll((Collection)newValue);
Lines 251-256 Link Here
251
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
298
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
252
				setRole(ROLE_EDEFAULT);
299
				setRole(ROLE_EDEFAULT);
253
				return;
300
				return;
301
			case Common_DatapoolPackage.DPL_VARIABLE__ENCRYPTED:
302
				setEncrypted(ENCRYPTED_EDEFAULT);
303
				return;
254
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
304
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
255
				getVariables().clear();
305
				getVariables().clear();
256
				return;
306
				return;
Lines 268-274 Link Here
268
			case Common_DatapoolPackage.DPL_VARIABLE__TYPE:
318
			case Common_DatapoolPackage.DPL_VARIABLE__TYPE:
269
				return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
319
				return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
270
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
320
			case Common_DatapoolPackage.DPL_VARIABLE__ROLE:
321
       		
271
				return role != ROLE_EDEFAULT;
322
				return role != ROLE_EDEFAULT;
323
	        
324
			case Common_DatapoolPackage.DPL_VARIABLE__ENCRYPTED:
325
       		
326
				return encrypted != ENCRYPTED_EDEFAULT;
327
	        
272
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
328
			case Common_DatapoolPackage.DPL_VARIABLE__VARIABLES:
273
				return variables != null && !variables.isEmpty();
329
				return variables != null && !variables.isEmpty();
274
		}
330
		}
Lines 288-297 Link Here
288
		result.append(type);
344
		result.append(type);
289
		result.append(", role: ");
345
		result.append(", role: ");
290
		result.append(role);
346
		result.append(role);
347
		result.append(", encrypted: ");
348
		result.append(encrypted);
291
		result.append(')');
349
		result.append(')');
292
		return result.toString();
350
		return result.toString();
293
	}
351
	}
294
352
353
	
295
	//Beginning of non-generated classes
354
	//Beginning of non-generated classes
296
	
355
	
297
	//org.eclipse.hyades.edit.datapool.IDatapoolVariable methods
356
	//org.eclipse.hyades.edit.datapool.IDatapoolVariable methods

Return to bug 202695