JPL-IMCE / gov.nasa.jpl.imce.oml

Ontology Modeling Language (OML) Workbench
14 stars 1 forks source link

Code generation problem w/ the OMLResourceZip support for Eclipse #295

Closed NicolasRouquette closed 6 years ago

NicolasRouquette commented 6 years ago

The gov.nasa.jpl.imce.oml.zip.OMLSpecificationTables is a utility class for reading/writing OML Zip resources in Eclipse; it is mostly generated from the OML Xcore metamodels except for some boilerplate code.

Unfortunately, the boilerplate code was not updated to account for a subtle change introduced w/ the support for object cardinality restrictions which introduced two abstractions: AspectKind and ConceptKind to support unrestricted vs. restricted variants (e.g., Aspect and CardinalityRestrictedAspect). For resolving tables when reading OML Zip resources, this utility class uses tables to resolve values of features & cross references.

Previously, there were tables for resolving Aspect and Concept. After the update, there are additional tables for AspectKind and ConceptKind. This is incorrect, there should be only tables for AspectKind and ConceptKind.