In the SysML v2 Specification, the validatePortUsageIsReference constraint only requires a PortUsage to be referential if it is not a feature of a PortDefinition or PortUsage. This PR corrects the implementation of PortUsageImpl::isComposite which previously always returned false, even if the port was a feature of a port definition or usage. With this correction, a PortUsage nested in a PortDefinition or PortUsage is composite by default and only referential if declared with the ref keyword.
In the SysML v2 Specification, the
validatePortUsageIsReference
constraint only requires aPortUsage
to be referential if it is not a feature of aPortDefinition
orPortUsage
. This PR corrects the implementation ofPortUsageImpl::isComposite
which previously always returnedfalse
, even if the port was a feature of a port definition or usage. With this correction, aPortUsage
nested in aPortDefinition
orPortUsage
is composite by default and only referential if declared with theref
keyword.