@@ -39,6 +39,7 @@ import org.eclipse.emf.ecore.EObject
39
39
40
40
annotation "https://tabatkins.github.io/bikeshed" as Bikeshed
41
41
annotation "https://tabatkins.github.io/bikeshed/headings" as BikeshedHeadings
42
+ annotation "https://www.eclipse.org/emf/2002/Ecore" as Ecore
42
43
43
44
/*
44
45
* Element is the most general type in the OML metamodel. All objects in an OML model are elements.
@@ -432,14 +433,17 @@ abstract class SemanticProperty extends Property {
432
433
/*
433
434
* Determines if this property is functional (has a max of one value per instance)
434
435
*/
436
+ @Ecore(getterOf="functional")
435
437
op boolean isFunctional()
436
438
/*
437
439
* Gets the domain of this property
438
440
*/
441
+ @Ecore(getterOf="domain")
439
442
op Classifier getDomain()
440
443
/*
441
444
* Gets the range of the property
442
445
*/
446
+ @Ecore(getterOf="range")
443
447
op Type getRange()
444
448
}
445
449
@@ -625,6 +629,7 @@ abstract class Relation extends Feature {
625
629
/*
626
630
* Gets the relation entity of this relation
627
631
*/
632
+ @Ecore(getterOf="relationEntity")
628
633
op RelationEntity getRelationEntity()
629
634
630
635
op Entity deriveDomain()
@@ -1456,6 +1461,7 @@ abstract class TypeAssertion extends Assertion {
1456
1461
/*
1457
1462
* Gets the type referenced by this assertion
1458
1463
*/
1464
+ @Ecore(getterOf="type")
1459
1465
op Entity getType()
1460
1466
}
1461
1467
@@ -1515,10 +1521,12 @@ abstract class PropertyValueAssertion extends Assertion {
1515
1521
/*
1516
1522
* Gets the property referenced by this assertion
1517
1523
*/
1524
+ @Ecore(getterOf="property")
1518
1525
op SemanticProperty getProperty()
1519
1526
/*
1520
1527
* Gets the value specified by this assertion
1521
1528
*/
1529
+ @Ecore(getterOf="value")
1522
1530
op Element getValue()
1523
1531
}
1524
1532
0 commit comments