UML 2.6 RTF Avatar
  1. OMG Issue

UMLR — What are the type/classifiers of an InstanceValue

  • Key: UMLR-662
  • Status: open  
  • Source: Model Driven Solutions ( Ed Willink)
  • Summary:

    An InstanceValue instance is part of two type systems. As a derived TypedElement, its type is UML::InstanceValue. As an InstanceSpecification.instance, its type is the InstanceSpecification::classifier(s).

    This is confusing to users who may attempt to use oclType() to access the type and get the 'wrong' type. (See and linked Eclipse OCL issues.)

    Suggest addition of:

    ValueSpecification::umlClassifiers() : Set(Classifier) = type->asSet()

    InstanceValue::umlClassifiers() : Set(Classifier) = instance.classifier

    These should contrast obviously with oclType() and its SMOF oclTypes() extension.

  • Reported: UML 2.5 — Tue, 16 Feb 2016 10:32 GMT
  • Updated: Thu, 18 Feb 2016 13:44 GMT