MembershipImport
MembershipImport
is defined in KerML specification on
page 155.
Excerpt from the machine readable specification:
A
MembershipImport
is anImport
that imports itsimportedMembership
into theimportOwningNamespace
. IfisRecursive = true
and thememberElement
of theimportedMembership
is aNamespace
, then the equivalent of a recursiveNamespaceImport
is also performed on thatNamespace
.
The following diagram shows the inheritance hierarchy of MembershipImport
according to the specification:
![// Class: MembershipImport
digraph {
MembershipImport [label="MembershipImport (KerML)" shape=plaintext]
Import -> MembershipImport
Import [label="Import (KerML)" shape=plaintext]
Relationship -> Import
Relationship [label="Relationship (KerML)" shape=plaintext]
Element -> Relationship
Element [label="Element (KerML)" shape=plaintext]
}](../../../_images/graphviz-dd58fad5cd7fdd31f778f44a717f61fb72356381.png)
The following table shows all attributes defined for
MembershipImport
according to the specification together with
the documentation from the machine readable specification. Note
that in SysIDE API, we use snake case for attribute names
instead of Pascal case used in the specification.
Attribute |
Documentation from machine readable specification |
Attributes defined in |
|
The |
|
Attributes defined in |
|
The Namespace into which Memberships are imported by this Import, which
must be the |
|
The effectively imported |
|
Whether to import memberships without regard to declared visibility. |
|
Whether to recursively import Memberships from visible, owned sub-Namespaces. |
|
|
The visibility level of the imported |
Attributes defined in |
|
Whether this Relationship was generated by tooling to meet semantic rules, rather than being directly created by a modeler. |
|
The relatedElements of this Relationship that are owned by the Relationship. |
|
The relatedElement of this Relationship that owns the Relationship, if any. |
|
The Elements that are related by this Relationship, derived as the union
of the |
|
The
|
|
The |
|
Attributes defined in |
|
The declared name of this |
|
An optional alternative name for the |
|
The Documentation owned by this Element. |
|
The globally unique identifier for this Element. This is intended to be set by tooling, and it must not change during the lifetime of the Element. |
|
Whether all necessary implied Relationships have been included in the
|
|
Whether this Element is contained in the ownership tree of a library model. |
|
The name to be used for this |
|
The |
|
The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of this Element. |
|
The Relationships for which this Element is the owningRelatedElement. |
|
The owner of this Element, derived as the |
|
The |
|
The |
|
The Relationship for which this Element is an ownedRelatedElement, if any. |
|
The full ownership-qualified name of this |
|
The short name to be used for this |
|
The |
The following table lists SysIDE specific attributes available for
class MembershipImport
:
Python Attribute |
- class MembershipImport
-
- STD: tuple[type[syside.MembershipImport], ...] = ()
- property imported_membership: syside.Membership | None
- property import_target: syside.Membership | syside.Namespace | None
- property imported_element: syside.Element | None
- property import_owning_namespace: syside.Namespace | None
- property children: syside.RelationshipBody
- property sources: syside.ContainerView[syside.Element]
- property targets: syside.ContainerView[syside.Element]