@@ -39,6 +39,7 @@ import org.eclipse.emf.ecore.EObject
3939
4040annotation "https://tabatkins.github.io/bikeshed" as Bikeshed
4141annotation "https://tabatkins.github.io/bikeshed/headings" as BikeshedHeadings
42+ annotation "https://www.eclipse.org/emf/2002/Ecore" as Ecore
4243
4344/*
4445 * 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 {
432433 /*
433434 * Determines if this property is functional (has a max of one value per instance)
434435 */
436+ @Ecore(getterOf="functional")
435437 op boolean isFunctional()
436438 /*
437439 * Gets the domain of this property
438440 */
441+ @Ecore(getterOf="domain")
439442 op Classifier getDomain()
440443 /*
441444 * Gets the range of the property
442445 */
446+ @Ecore(getterOf="range")
443447 op Type getRange()
444448}
445449
@@ -625,6 +629,7 @@ abstract class Relation extends Feature {
625629 /*
626630 * Gets the relation entity of this relation
627631 */
632+ @Ecore(getterOf="relationEntity")
628633 op RelationEntity getRelationEntity()
629634
630635 op Entity deriveDomain()
@@ -1456,6 +1461,7 @@ abstract class TypeAssertion extends Assertion {
14561461 /*
14571462 * Gets the type referenced by this assertion
14581463 */
1464+ @Ecore(getterOf="type")
14591465 op Entity getType()
14601466}
14611467
@@ -1515,10 +1521,12 @@ abstract class PropertyValueAssertion extends Assertion {
15151521 /*
15161522 * Gets the property referenced by this assertion
15171523 */
1524+ @Ecore(getterOf="property")
15181525 op SemanticProperty getProperty()
15191526 /*
15201527 * Gets the value specified by this assertion
15211528 */
1529+ @Ecore(getterOf="value")
15221530 op Element getValue()
15231531}
15241532
0 commit comments