blob: ccafde7acafbbec161c5541fd13884da26e68e4e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cmof="http://schema.omg.org/spec/MOF/2.0/cmof.xml" xsi:schemaLocation="http://schema.omg.org/spec/MOF/2.0/cmof.xml http://www.eclipse.org/uml2/4.0.0/UML">
<cmof:Package xmi:id="_0" name="InfrastructureLibrary">
<ownedMember xmi:type="cmof:Package" xmi:id="Core" name="Core">
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions" name="Abstractions">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-_packageImport.0" importedPackage="Core-PrimitiveTypes" importingNamespace="Core-Abstractions"/>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Ownerships" name="Ownerships">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Ownerships-_packageImport.0" importedPackage="Core-Abstractions-Elements" importingNamespace="Core-Abstractions-Ownerships"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Ownerships-Element" name="Element" isAbstract="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element">
<body>An element is a constituent of a model. As such, it has the capability of owning other elements.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Ownerships-Element-not_own_self" name="not_own_self" constrainedElement="Core-Abstractions-Ownerships-Element" namespace="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-not_own_self-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-not_own_self">
<body>An element may not directly or indirectly own itself.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Ownerships-Element-not_own_self-_specification">
<language>OCL</language>
<body>not self.allOwnedElements()->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Ownerships-Element-has_owner" name="has_owner" constrainedElement="Core-Abstractions-Ownerships-Element" namespace="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-has_owner-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-has_owner">
<body>Elements that must be owned must have an owner.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Ownerships-Element-has_owner-_specification">
<language>OCL</language>
<body>self.mustBeOwned() implies owner->notEmpty()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Ownerships-Element-ownedElement" name="ownedElement" type="Core-Abstractions-Ownerships-Element" lower="0" upper="*" isComposite="true" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Ownerships-A_ownedElement_owner">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-ownedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-ownedElement">
<body>The Elements owned by this element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Ownerships-Element-owner" name="owner" type="Core-Abstractions-Ownerships-Element" lower="0" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Ownerships-A_ownedElement_owner">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-owner-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-owner">
<body>The Element that owns this element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Ownerships-Element-ownedComment" name="ownedComment" type="Core-Abstractions-Comments-Comment" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Ownerships-A_ownedComment_owningElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-ownedComment-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-ownedComment">
<body>The Comments owned by this element.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Ownerships-Element-allOwnedElements" name="allOwnedElements" bodyCondition="Core-Abstractions-Ownerships-Element-allOwnedElements-spec" class="Core-Abstractions-Ownerships-Element" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-allOwnedElements-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-allOwnedElements">
<body>The query allOwnedElements() gives all of the direct and indirect owned elements of an element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Ownerships-Element-allOwnedElements-spec" name="spec" constrainedElement="Core-Abstractions-Ownerships-Element-allOwnedElements" namespace="Core-Abstractions-Ownerships-Element-allOwnedElements">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Ownerships-Element-allOwnedElements-spec-_specification">
<language>OCL</language>
<body>ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Ownerships-Element-allOwnedElements-_ownedParameter.0" type="Core-Abstractions-Ownerships-Element" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Ownerships-Element-mustBeOwned" name="mustBeOwned" bodyCondition="Core-Abstractions-Ownerships-Element-mustBeOwned-spec" class="Core-Abstractions-Ownerships-Element" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Ownerships-Element-mustBeOwned-_ownedComment.0" annotatedElement="Core-Abstractions-Ownerships-Element-mustBeOwned">
<body>The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Ownerships-Element-mustBeOwned-spec" name="spec" constrainedElement="Core-Abstractions-Ownerships-Element-mustBeOwned" namespace="Core-Abstractions-Ownerships-Element-mustBeOwned">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Ownerships-Element-mustBeOwned-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Ownerships-Element-mustBeOwned-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Ownerships-A_ownedElement_owner" name="A_ownedElement_owner" memberEnd="Core-Abstractions-Ownerships-Element-ownedElement Core-Abstractions-Ownerships-Element-owner"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Ownerships-A_ownedComment_owningElement" name="A_ownedComment_owningElement" memberEnd="Core-Abstractions-Ownerships-Element-ownedComment Core-Abstractions-Ownerships-A_ownedComment_owningElement-owningElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Ownerships-A_ownedComment_owningElement-owningElement" name="owningElement" type="Core-Abstractions-Ownerships-Element" lower="0" owningAssociation="Core-Abstractions-Ownerships-A_ownedComment_owningElement" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Ownerships-A_ownedComment_owningElement"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Namespaces" name="Namespaces">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Namespaces-_packageImport.0" importedPackage="Core-Abstractions-Ownerships" importingNamespace="Core-Abstractions-Namespaces"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Namespaces-NamedElement" name="NamedElement" isAbstract="true" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement">
<body>A named element is an element in a model that may have a name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-NamedElement-has_no_qualified_name" name="has_no_qualified_name" constrainedElement="Core-Abstractions-Namespaces-NamedElement" namespace="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-has_no_qualified_name-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-has_no_qualified_name">
<body>If there is no name, or one of the containing namespaces has no name, there is no qualified name.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-NamedElement-has_no_qualified_name-_specification">
<language>OCL</language>
<body>(self.name->isEmpty() or self.allNamespaces()->select(ns | ns.name->isEmpty())->notEmpty())&#xD;
implies self.qualifiedName->isEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-NamedElement-has_qualified_name" name="has_qualified_name" constrainedElement="Core-Abstractions-Namespaces-NamedElement" namespace="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-has_qualified_name-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-has_qualified_name">
<body>When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-NamedElement-has_qualified_name-_specification">
<language>OCL</language>
<body>(self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()) implies
self.qualifiedName = self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-NamedElement-name" name="name" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-name-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-name">
<body>The name of the NamedElement.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName" name="qualifiedName" type="Core-PrimitiveTypes-String" lower="0" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-qualifiedName">
<body>A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-NamedElement-namespace" name="namespace" type="Core-Abstractions-Namespaces-Namespace" lower="0" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Namespaces-A_ownedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-namespace-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-namespace">
<body>Specifies the namespace that owns the NamedElement.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-NamedElement-allNamespaces" name="allNamespaces" bodyCondition="Core-Abstractions-Namespaces-NamedElement-allNamespaces-spec" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-allNamespaces-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-allNamespaces">
<body>The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-NamedElement-allNamespaces-spec" name="spec" constrainedElement="Core-Abstractions-Namespaces-NamedElement-allNamespaces" namespace="Core-Abstractions-Namespaces-NamedElement-allNamespaces">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-NamedElement-allNamespaces-spec-_specification">
<language>OCL</language>
<body>if self.namespace->isEmpty()
then Sequence{}
else self.namespace.allNamespaces()->prepend(self.namespace)
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-NamedElement-allNamespaces-_ownedParameter.0" type="Core-Abstractions-Namespaces-Namespace" isOrdered="true" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom" name="isDistinguishableFrom" bodyCondition="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-spec" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom">
<body>The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace. By default, two named elements are distinguishable if (a) they have unrelated types or (b) they have related types but different names.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-spec" name="spec" constrainedElement="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom" namespace="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-spec-_specification">
<language>OCL</language>
<body>if self.oclIsKindOf(n.oclType) or n.oclIsKindOf(self.oclType)
then ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty()
else true
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-n" name="n" type="Core-Abstractions-Namespaces-NamedElement"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-ns" name="ns" type="Core-Abstractions-Namespaces-Namespace"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-NamedElement-separator" name="separator" bodyCondition="Core-Abstractions-Namespaces-NamedElement-separator-spec" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-separator-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-separator">
<body>The query separator() gives the string that is used to separate names when constructing a qualified name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-NamedElement-separator-spec" name="spec" constrainedElement="Core-Abstractions-Namespaces-NamedElement-separator" namespace="Core-Abstractions-Namespaces-NamedElement-separator">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-NamedElement-separator-spec-_specification">
<language>OCL</language>
<body>'::'</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-NamedElement-separator-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1" name="qualifiedName" bodyCondition="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1-spec" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1">
<body>When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1-spec" name="spec" constrainedElement="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1 Core-Abstractions-Namespaces-NamedElement-qualifiedName" namespace="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1-spec-_specification">
<language>OCL</language>
<body>if self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()
then
self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))
else
Set{}
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Namespaces-Namespace" name="Namespace" isAbstract="true" superClass="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-Namespace-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-Namespace">
<body>A namespace is an element in a model that contains a set of named elements that can be identified by name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-Namespace-members_distinguishable" name="members_distinguishable" constrainedElement="Core-Abstractions-Namespaces-Namespace" namespace="Core-Abstractions-Namespaces-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-Namespace-members_distinguishable-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-Namespace-members_distinguishable">
<body>All the members of a Namespace are distinguishable within it.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-Namespace-members_distinguishable-_specification">
<language>OCL</language>
<body>membersAreDistinguishable()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-Namespace-ownedMember" name="ownedMember" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*" isComposite="true" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement Core-Abstractions-Namespaces-Namespace-member" association="Core-Abstractions-Namespaces-A_ownedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-Namespace-ownedMember-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-Namespace-ownedMember">
<body>A collection of NamedElements owned by the Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-Namespace-member" name="member" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Namespaces-A_member_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-Namespace-member-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-Namespace-member">
<body>A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-Namespace-getNamesOfMember" name="getNamesOfMember" bodyCondition="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-spec" class="Core-Abstractions-Namespaces-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-Namespace-getNamesOfMember">
<body>The query getNamesOfMember() gives a set of all of the names that a member would have in a Namespace. In general a member can have multiple names in a Namespace if it is imported more than once with different aliases. Those semantics are specified by overriding the getNamesOfMember operation. The specification here simply returns a set containing a single name, or the empty set if no name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-spec" name="spec" constrainedElement="Core-Abstractions-Namespaces-Namespace-getNamesOfMember" namespace="Core-Abstractions-Namespaces-Namespace-getNamesOfMember">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-spec-_specification">
<language>OCL</language>
<body>if member->includes(element) then Set{}->including(element.name) else Set{} endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-_ownedParameter.0" type="Core-PrimitiveTypes-String" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-element" name="element" type="Core-Abstractions-Namespaces-NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable" name="membersAreDistinguishable" bodyCondition="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable-spec" class="Core-Abstractions-Namespaces-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable-_ownedComment.0" annotatedElement="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable">
<body>The Boolean query membersAreDistinguishable() determines whether all of the namespaces members are distinguishable within it.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable-spec" name="spec" constrainedElement="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable" namespace="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable-spec-_specification">
<language>OCL</language>
<body>self.member->forAll( memb |
self.member->excluding(memb)->forAll(other |
memb.isDistinguishableFrom(other, self)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Namespaces-A_ownedMember_namespace" name="A_ownedMember_namespace" memberEnd="Core-Abstractions-Namespaces-Namespace-ownedMember Core-Abstractions-Namespaces-NamedElement-namespace"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Namespaces-A_member_namespace" name="A_member_namespace" memberEnd="Core-Abstractions-Namespaces-Namespace-member Core-Abstractions-Namespaces-A_member_namespace-namespace">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-A_member_namespace-namespace" name="namespace" type="Core-Abstractions-Namespaces-Namespace" lower="0" upper="*" owningAssociation="Core-Abstractions-Namespaces-A_member_namespace" association="Core-Abstractions-Namespaces-A_member_namespace"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Classifiers" name="Classifiers">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Classifiers-_packageImport.0" importedPackage="Core-Abstractions-Namespaces" importingNamespace="Core-Abstractions-Classifiers"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Classifiers-_packageImport.1" importedPackage="Core-Abstractions-Ownerships" importingNamespace="Core-Abstractions-Classifiers"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Classifiers-Classifier" name="Classifier" isAbstract="true" superClass="Core-Abstractions-Namespaces-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Classifiers-Classifier-_ownedComment.0" annotatedElement="Core-Abstractions-Classifiers-Classifier">
<body>A classifier is a classification of instances - it describes a set of instances that have features in common.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Classifiers-Classifier-feature" name="feature" type="Core-Abstractions-Classifiers-Feature" lower="0" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Namespaces-Namespace-member" association="Core-Abstractions-Classifiers-A_feature_featuringClassifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Classifiers-Classifier-feature-_ownedComment.0" annotatedElement="Core-Abstractions-Classifiers-Classifier-feature">
<body>Specifies each feature defined in the classifier.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Classifiers-Classifier-allFeatures" name="allFeatures" bodyCondition="Core-Abstractions-Classifiers-Classifier-allFeatures-spec" class="Core-Abstractions-Classifiers-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Classifiers-Classifier-allFeatures-_ownedComment.0" annotatedElement="Core-Abstractions-Classifiers-Classifier-allFeatures">
<body>The query allFeatures() gives all of the features in the namespace of the classifier. In general, through mechanisms such as inheritance, this will be a larger set than feature.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Classifiers-Classifier-allFeatures-spec" name="spec" constrainedElement="Core-Abstractions-Classifiers-Classifier-allFeatures" namespace="Core-Abstractions-Classifiers-Classifier-allFeatures">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Classifiers-Classifier-allFeatures-spec-_specification">
<language>OCL</language>
<body>member->select(oclIsKindOf(Feature))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Classifiers-Classifier-allFeatures-_ownedParameter.0" type="Core-Abstractions-Classifiers-Feature" lower="0" upper="*" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Classifiers-Feature" name="Feature" isAbstract="true" superClass="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Classifiers-Feature-_ownedComment.0" annotatedElement="Core-Abstractions-Classifiers-Feature">
<body>A feature declares a behavioral or structural characteristic of instances of classifiers.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Classifiers-Feature-featuringClassifier" name="featuringClassifier" type="Core-Abstractions-Classifiers-Classifier" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Classifiers-A_feature_featuringClassifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Classifiers-Feature-featuringClassifier-_ownedComment.0" annotatedElement="Core-Abstractions-Classifiers-Feature-featuringClassifier">
<body>The Classifiers that have this Feature as a feature.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Classifiers-A_feature_featuringClassifier" name="A_feature_featuringClassifier" memberEnd="Core-Abstractions-Classifiers-Classifier-feature Core-Abstractions-Classifiers-Feature-featuringClassifier"/>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Expressions" name="Expressions">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Expressions-_packageImport.0" importedPackage="Core-Abstractions-Ownerships" importingNamespace="Core-Abstractions-Expressions"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Expressions-OpaqueExpression" name="OpaqueExpression" superClass="Core-Abstractions-Expressions-ValueSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-OpaqueExpression-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-OpaqueExpression">
<body>An opaque expression is an uninterpreted textual statement that denotes a (possibly empty) set of values when evaluated in a context.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Expressions-OpaqueExpression-body" name="body" type="Core-PrimitiveTypes-String" isOrdered="true" isUnique="false" lower="0" upper="*" isComposite="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-OpaqueExpression-body-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-OpaqueExpression-body">
<body>The text of the expression, possibly in multiple languages.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Expressions-OpaqueExpression-language" name="language" type="Core-PrimitiveTypes-String" isOrdered="true" lower="0" upper="*" isComposite="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-OpaqueExpression-language-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-OpaqueExpression-language">
<body>Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Expressions-ValueSpecification" name="ValueSpecification" isAbstract="true" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification">
<body>A value specification is the specification of a (possibly empty) set of instances, including both objects and data values.</body>
</ownedComment>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isComputable" name="isComputable" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-isComputable-spec" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isComputable-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<body>The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all value specifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute the value of all literals.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isComputable-spec" name="spec" constrainedElement="Core-Abstractions-Expressions-ValueSpecification-isComputable" namespace="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isComputable-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Expressions-ValueSpecification-integerValue" name="integerValue" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-integerValue-spec" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-integerValue-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification-integerValue">
<body>The query integerValue() gives a single Integer value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Expressions-ValueSpecification-integerValue-spec" name="spec" constrainedElement="Core-Abstractions-Expressions-ValueSpecification-integerValue" namespace="Core-Abstractions-Expressions-ValueSpecification-integerValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Expressions-ValueSpecification-integerValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Expressions-ValueSpecification-integerValue-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Expressions-ValueSpecification-booleanValue" name="booleanValue" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-booleanValue-spec" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-booleanValue-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification-booleanValue">
<body>The query booleanValue() gives a single Boolean value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Expressions-ValueSpecification-booleanValue-spec" name="spec" constrainedElement="Core-Abstractions-Expressions-ValueSpecification-booleanValue" namespace="Core-Abstractions-Expressions-ValueSpecification-booleanValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Expressions-ValueSpecification-booleanValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Expressions-ValueSpecification-booleanValue-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Expressions-ValueSpecification-stringValue" name="stringValue" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-stringValue-spec" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-stringValue-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification-stringValue">
<body>The query stringValue() gives a single String value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Expressions-ValueSpecification-stringValue-spec" name="spec" constrainedElement="Core-Abstractions-Expressions-ValueSpecification-stringValue" namespace="Core-Abstractions-Expressions-ValueSpecification-stringValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Expressions-ValueSpecification-stringValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Expressions-ValueSpecification-stringValue-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue" name="unlimitedValue" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue-spec" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue">
<body>The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue-spec" name="spec" constrainedElement="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue" namespace="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isNull" name="isNull" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-isNull-spec" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isNull-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-ValueSpecification-isNull">
<body>The query isNull() returns true when it can be computed that the value is null.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isNull-spec" name="spec" constrainedElement="Core-Abstractions-Expressions-ValueSpecification-isNull" namespace="Core-Abstractions-Expressions-ValueSpecification-isNull">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isNull-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Expressions-ValueSpecification-isNull-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Expressions-Expression" name="Expression" superClass="Core-Abstractions-Expressions-ValueSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-Expression-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-Expression">
<body>An expression is a structured tree of symbols that denotes a (possibly empty) set of values when evaluated in a context.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Expressions-Expression-symbol" name="symbol" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-Expression-symbol-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-Expression-symbol">
<body>The symbol associated with the node in the expression tree.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Expressions-Expression-operand" name="operand" type="Core-Abstractions-Expressions-ValueSpecification" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Expressions-A_operand_expression">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Expressions-Expression-operand-_ownedComment.0" annotatedElement="Core-Abstractions-Expressions-Expression-operand">
<body>Specifies a sequence of operands.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Expressions-A_operand_expression" name="A_operand_expression" memberEnd="Core-Abstractions-Expressions-Expression-operand Core-Abstractions-Expressions-A_operand_expression-expression">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Expressions-A_operand_expression-expression" name="expression" type="Core-Abstractions-Expressions-Expression" lower="0" owningAssociation="Core-Abstractions-Expressions-A_operand_expression" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Expressions-A_operand_expression"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-MultiplicityExpressions" name="MultiplicityExpressions">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-MultiplicityExpressions-_packageImport.0" importedPackage="Core-Abstractions-Expressions" importingNamespace="Core-Abstractions-MultiplicityExpressions"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-MultiplicityExpressions-_packageImport.1" importedPackage="Core-Abstractions-Multiplicities" importingNamespace="Core-Abstractions-MultiplicityExpressions"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" name="MultiplicityElement" isAbstract="true" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement">
<body>MultiplicityElement supports the use of value specifications to define each bound of the multiplicity.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower" name="lower" type="Core-PrimitiveTypes-Integer" lower="0" default="1" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower">
<body>Specifies the lower bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper" name="upper" type="Core-PrimitiveTypes-UnlimitedNatural" lower="0" default="1" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper">
<body>Specifies the upper bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperValue" name="upperValue" type="Core-Abstractions-Expressions-ValueSpecification" lower="0" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-MultiplicityExpressions-A_upperValue_owningUpper">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperValue-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperValue">
<body>The specification of the upper bound for this multiplicity.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerValue" name="lowerValue" type="Core-Abstractions-Expressions-ValueSpecification" lower="0" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-MultiplicityExpressions-A_lowerValue_owningLower">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerValue-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerValue">
<body>The specification of the lower bound for this multiplicity.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1" name="lower" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1-spec" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1">
<body>The derived lower attribute must equal the lowerBound.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1-spec" name="spec" constrainedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1 Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower" namespace="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1-spec-_specification">
<language>OCL</language>
<body>lowerBound()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1" name="upper" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1-spec" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1">
<body>The derived upper attribute must equal the upperBound.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1-spec" name="spec" constrainedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1 Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper" namespace="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1-spec-_specification">
<language>OCL</language>
<body>upperBound()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound" name="lowerBound" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound-spec" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound">
<body>The query lowerBound() returns the lower bound of the multiplicity as an integer.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound-spec" name="spec" constrainedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound" namespace="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound-spec-_specification">
<language>OCL</language>
<body>if lowerValue->isEmpty() then 1 else lowerValue.integerValue() endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound" name="upperBound" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound-spec" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound-_ownedComment.0" annotatedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound">
<body>The query upperBound() returns the upper bound of the multiplicity as an unlimited natural.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound-spec" name="spec" constrainedElement="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound" namespace="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound-spec-_specification">
<language>OCL</language>
<body>if upperValue->isEmpty() then 1 else upperValue.unlimitedValue() endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-MultiplicityExpressions-A_upperValue_owningUpper" name="A_upperValue_owningUpper" memberEnd="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperValue Core-Abstractions-MultiplicityExpressions-A_upperValue_owningUpper-owningUpper">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-MultiplicityExpressions-A_upperValue_owningUpper-owningUpper" name="owningUpper" type="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" lower="0" owningAssociation="Core-Abstractions-MultiplicityExpressions-A_upperValue_owningUpper" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-MultiplicityExpressions-A_upperValue_owningUpper"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-MultiplicityExpressions-A_lowerValue_owningLower" name="A_lowerValue_owningLower" memberEnd="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerValue Core-Abstractions-MultiplicityExpressions-A_lowerValue_owningLower-owningLower">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-MultiplicityExpressions-A_lowerValue_owningLower-owningLower" name="owningLower" type="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" lower="0" owningAssociation="Core-Abstractions-MultiplicityExpressions-A_lowerValue_owningLower" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-MultiplicityExpressions-A_lowerValue_owningLower"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-BehavioralFeatures" name="BehavioralFeatures">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-BehavioralFeatures-_packageImport.0" importedPackage="Core-Abstractions-Classifiers" importingNamespace="Core-Abstractions-BehavioralFeatures"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-BehavioralFeatures-_packageImport.1" importedPackage="Core-Abstractions-TypedElements" importingNamespace="Core-Abstractions-BehavioralFeatures"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature" name="BehavioralFeature" isAbstract="true" superClass="Core-Abstractions-Classifiers-Feature Core-Abstractions-Namespaces-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-_ownedComment.0" annotatedElement="Core-Abstractions-BehavioralFeatures-BehavioralFeature">
<body>A behavioral feature is a feature of a classifier that specifies an aspect of the behavior of its instances.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-parameter" name="parameter" type="Core-Abstractions-BehavioralFeatures-Parameter" isOrdered="true" lower="0" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Namespaces-Namespace-member" association="Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-parameter-_ownedComment.0" annotatedElement="Core-Abstractions-BehavioralFeatures-BehavioralFeature-parameter">
<body>Specifies the parameters of the BehavioralFeature.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom" name="isDistinguishableFrom" bodyCondition="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-spec" class="Core-Abstractions-BehavioralFeatures-BehavioralFeature" isQuery="true" redefinedOperation="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-_ownedComment.0" annotatedElement="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom">
<body>The query isDistinguishableFrom() determines whether two BehavioralFeatures may coexist in the same Namespace. It specifies that they have to have different signatures.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-spec" name="spec" constrainedElement="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom" namespace="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-spec-_specification">
<language>OCL</language>
<body>if n.oclIsKindOf(BehavioralFeature)
then
if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()
then Set{}->including(self)->including(n)->isUnique( bf | bf.parameter->collect(type))
else true
endif
else true
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-n" name="n" type="Core-Abstractions-Namespaces-NamedElement"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-ns" name="ns" type="Core-Abstractions-Namespaces-Namespace"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-BehavioralFeatures-Parameter" name="Parameter" isAbstract="true" superClass="Core-Abstractions-Namespaces-NamedElement Core-Abstractions-TypedElements-TypedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-BehavioralFeatures-Parameter-_ownedComment.0" annotatedElement="Core-Abstractions-BehavioralFeatures-Parameter">
<body>A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature" name="A_parameter_behavioralFeature" memberEnd="Core-Abstractions-BehavioralFeatures-BehavioralFeature-parameter Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature-behavioralFeature">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature-behavioralFeature" name="behavioralFeature" type="Core-Abstractions-BehavioralFeatures-BehavioralFeature" lower="0" owningAssociation="Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature" association="Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Instances" name="Instances">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Instances-_packageImport.0" importedPackage="Core-Abstractions-Expressions" importingNamespace="Core-Abstractions-Instances"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Instances-_packageImport.1" importedPackage="Core-Abstractions-StructuralFeatures" importingNamespace="Core-Abstractions-Instances"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Instances-InstanceSpecification" name="InstanceSpecification" superClass="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceSpecification-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceSpecification">
<body>An instance specification is a model element that represents an instance in a modeled system.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Instances-InstanceSpecification-slots_are_defined" name="slots_are_defined" constrainedElement="Core-Abstractions-Instances-InstanceSpecification" namespace="Core-Abstractions-Instances-InstanceSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceSpecification-slots_are_defined-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceSpecification-slots_are_defined">
<body>The defining feature of each slot is a structural feature (directly or inherited) of a classifier of the instance specification.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Instances-InstanceSpecification-slots_are_defined-_specification">
<language>OCL</language>
<body>slot->forAll(s |
classifier->exists(c | c.allFeatures()->includes(s.definingFeature))
)
</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Instances-InstanceSpecification-no_duplicate_slots" name="no_duplicate_slots" constrainedElement="Core-Abstractions-Instances-InstanceSpecification" namespace="Core-Abstractions-Instances-InstanceSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceSpecification-no_duplicate_slots-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceSpecification-no_duplicate_slots">
<body>One structural feature (including the same feature inherited from multiple classifiers) is the defining feature of at most one slot in an instance specification.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Instances-InstanceSpecification-no_duplicate_slots-_specification">
<language>OCL</language>
<body>classifier->forAll(c |
(c.allFeatures()->forAll(f | slot->select(s | s.definingFeature = f)->size() &lt;= 1)
)
</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-InstanceSpecification-slot" name="slot" type="Core-Abstractions-Instances-Slot" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Instances-A_slot_owningInstance">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceSpecification-slot-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceSpecification-slot">
<body>A slot giving the value or values of a structural feature of the instance. An instance specification can have one slot per structural feature of its classifiers, including inherited features. It is not necessary to model a slot for each structural feature, in which case the instance specification is a partial description.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-InstanceSpecification-classifier" name="classifier" type="Core-Abstractions-Classifiers-Classifier" lower="0" upper="*" association="Core-Abstractions-Instances-A_classifier_instanceSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceSpecification-classifier-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceSpecification-classifier">
<body>The classifier or classifiers of the represented instance. If multiple classifiers are specified, the instance is classified by all of them.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-InstanceSpecification-specification" name="specification" type="Core-Abstractions-Expressions-ValueSpecification" lower="0" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Instances-A_specification_owningInstanceSpec">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceSpecification-specification-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceSpecification-specification">
<body>A specification of how to compute, derive, or construct the instance.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Instances-Slot" name="Slot" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-Slot-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-Slot">
<body>A slot specifies that an entity modeled by an instance specification has a value or values for a specific structural feature.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-Slot-owningInstance" name="owningInstance" type="Core-Abstractions-Instances-InstanceSpecification" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Instances-A_slot_owningInstance">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-Slot-owningInstance-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-Slot-owningInstance">
<body>The instance specification that owns this slot.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-Slot-value" name="value" type="Core-Abstractions-Expressions-ValueSpecification" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Instances-A_value_owningSlot">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-Slot-value-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-Slot-value">
<body>The value or values corresponding to the defining feature for the owning instance specification.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-Slot-definingFeature" name="definingFeature" type="Core-Abstractions-StructuralFeatures-StructuralFeature" association="Core-Abstractions-Instances-A_definingFeature_slot">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-Slot-definingFeature-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-Slot-definingFeature">
<body>The structural feature that specifies the values that may be held by the slot.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Instances-InstanceValue" name="InstanceValue" superClass="Core-Abstractions-Expressions-ValueSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceValue-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceValue">
<body>An instance value is a value specification that identifies an instance.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-InstanceValue-instance" name="instance" type="Core-Abstractions-Instances-InstanceSpecification" association="Core-Abstractions-Instances-A_instance_instanceValue">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Instances-InstanceValue-instance-_ownedComment.0" annotatedElement="Core-Abstractions-Instances-InstanceValue-instance">
<body>The instance that is the specified value.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Instances-A_slot_owningInstance" name="A_slot_owningInstance" memberEnd="Core-Abstractions-Instances-InstanceSpecification-slot Core-Abstractions-Instances-Slot-owningInstance"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Instances-A_classifier_instanceSpecification" name="A_classifier_instanceSpecification" memberEnd="Core-Abstractions-Instances-InstanceSpecification-classifier Core-Abstractions-Instances-A_classifier_instanceSpecification-instanceSpecification">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_classifier_instanceSpecification-instanceSpecification" name="instanceSpecification" type="Core-Abstractions-Instances-InstanceSpecification" lower="0" upper="*" owningAssociation="Core-Abstractions-Instances-A_classifier_instanceSpecification" association="Core-Abstractions-Instances-A_classifier_instanceSpecification"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Instances-A_value_owningSlot" name="A_value_owningSlot" memberEnd="Core-Abstractions-Instances-Slot-value Core-Abstractions-Instances-A_value_owningSlot-owningSlot">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_value_owningSlot-owningSlot" name="owningSlot" type="Core-Abstractions-Instances-Slot" lower="0" owningAssociation="Core-Abstractions-Instances-A_value_owningSlot" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Instances-A_value_owningSlot"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Instances-A_specification_owningInstanceSpec" name="A_specification_owningInstanceSpec" memberEnd="Core-Abstractions-Instances-InstanceSpecification-specification Core-Abstractions-Instances-A_specification_owningInstanceSpec-owningInstanceSpec">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_specification_owningInstanceSpec-owningInstanceSpec" name="owningInstanceSpec" type="Core-Abstractions-Instances-InstanceSpecification" lower="0" owningAssociation="Core-Abstractions-Instances-A_specification_owningInstanceSpec" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Instances-A_specification_owningInstanceSpec"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Instances-A_instance_instanceValue" name="A_instance_instanceValue" memberEnd="Core-Abstractions-Instances-InstanceValue-instance Core-Abstractions-Instances-A_instance_instanceValue-instanceValue">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_instance_instanceValue-instanceValue" name="instanceValue" type="Core-Abstractions-Instances-InstanceValue" lower="0" upper="*" owningAssociation="Core-Abstractions-Instances-A_instance_instanceValue" association="Core-Abstractions-Instances-A_instance_instanceValue"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Instances-A_definingFeature_slot" name="A_definingFeature_slot" memberEnd="Core-Abstractions-Instances-Slot-definingFeature Core-Abstractions-Instances-A_definingFeature_slot-slot">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_definingFeature_slot-slot" name="slot" type="Core-Abstractions-Instances-Slot" lower="0" upper="*" owningAssociation="Core-Abstractions-Instances-A_definingFeature_slot" association="Core-Abstractions-Instances-A_definingFeature_slot"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Redefinitions" name="Redefinitions">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Redefinitions-_packageImport.0" importedPackage="Core-Abstractions-Super" importingNamespace="Core-Abstractions-Redefinitions"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement" name="RedefinableElement" isAbstract="true" superClass="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement">
<body>A redefinable element is an element that, when defined in the context of a classifier, can be redefined more specifically or differently in the context of another classifier that specializes (directly or indirectly) the context classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_context_valid" name="redefinition_context_valid" constrainedElement="Core-Abstractions-Redefinitions-RedefinableElement" namespace="Core-Abstractions-Redefinitions-RedefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_context_valid-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_context_valid">
<body>At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_context_valid-_specification">
<language>OCL</language>
<body>self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_consistent" name="redefinition_consistent" constrainedElement="Core-Abstractions-Redefinitions-RedefinableElement" namespace="Core-Abstractions-Redefinitions-RedefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_consistent-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_consistent">
<body>A redefining element must be consistent with each redefined element.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinition_consistent-_specification">
<language>OCL</language>
<body>self.redefinedElement->forAll(re | re.isConsistentWith(self))</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinedElement" name="redefinedElement" type="Core-Abstractions-Redefinitions-RedefinableElement" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement-redefinedElement">
<body>The redefinable element that is being redefined by this element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinitionContext" name="redefinitionContext" type="Core-Abstractions-Super-Classifier" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-redefinitionContext-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement-redefinitionContext">
<body>References the contexts that this element may be redefined from.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith" name="isConsistentWith" bodyCondition="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-spec" class="Core-Abstractions-Redefinitions-RedefinableElement" isQuery="true" precondition="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith">
<body>The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-_ownedRule.0" constrainedElement="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith" namespace="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-_ownedRule.0-_specification">
<language>OCL</language>
<body>redefinee.isRedefinitionContextValid(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-spec" name="spec" constrainedElement="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith" namespace="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-redefinee" name="redefinee" type="Core-Abstractions-Redefinitions-RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid" name="isRedefinitionContextValid" bodyCondition="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-spec" class="Core-Abstractions-Redefinitions-RedefinableElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-_ownedComment.0" annotatedElement="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid">
<body>The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-spec" name="spec" constrainedElement="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid" namespace="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-spec-_specification">
<language>OCL</language>
<body>redefinitionContext->exists(c | c.allParents()->includes (redefined.redefinitionContext)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-redefined" name="redefined" type="Core-Abstractions-Redefinitions-RedefinableElement"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement" name="A_redefinedElement_redefinableElement" memberEnd="Core-Abstractions-Redefinitions-RedefinableElement-redefinedElement Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement-redefinableElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement-redefinableElement" name="redefinableElement" type="Core-Abstractions-Redefinitions-RedefinableElement" lower="0" upper="*" owningAssociation="Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement" association="Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement" name="A_redefinitionContext_redefinableElement" memberEnd="Core-Abstractions-Redefinitions-RedefinableElement-redefinitionContext Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement-redefinableElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement-redefinableElement" name="redefinableElement" type="Core-Abstractions-Redefinitions-RedefinableElement" lower="0" upper="*" owningAssociation="Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement" association="Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Generalizations" name="Generalizations">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Generalizations-_packageImport.0" importedPackage="Core-Abstractions-Relationships" importingNamespace="Core-Abstractions-Generalizations"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Generalizations-_packageImport.1" importedPackage="Core-Abstractions-Super" importingNamespace="Core-Abstractions-Generalizations"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Generalizations-_packageImport.2" importedPackage="Core-Abstractions-TypedElements" importingNamespace="Core-Abstractions-Generalizations"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Generalizations-Generalization" name="Generalization" superClass="Core-Abstractions-Relationships-DirectedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Generalization-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Generalization">
<body>A generalization is a taxonomic relationship between a more general classifier and a more specific classifier. Each instance of the specific classifier is also an instance of the general classifier. Thus, the specific classifier indirectly has features of the more general classifier.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-Generalization-specific" name="specific" type="Core-Abstractions-Generalizations-Classifier" subsettedProperty="Core-Abstractions-Relationships-DirectedRelationship-source Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Generalizations-A_generalization_specific">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Generalization-specific-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Generalization-specific">
<body>References the specializing classifier in the Generalization relationship. </body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-Generalization-general" name="general" type="Core-Abstractions-Generalizations-Classifier" subsettedProperty="Core-Abstractions-Relationships-DirectedRelationship-target" association="Core-Abstractions-Generalizations-A_general_generalization">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Generalization-general-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Generalization-general">
<body>References the general classifier in the Generalization relationship.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Generalizations-Classifier" name="Classifier" isAbstract="true" superClass="Core-Abstractions-TypedElements-Type">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Classifier-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Classifier">
<body>A classifier is a type and can own generalizations, thereby making it possible to define generalization relationships to&#xD;
other classifiers.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-Classifier-generalization" name="generalization" type="Core-Abstractions-Generalizations-Generalization" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Generalizations-A_generalization_specific">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Classifier-generalization-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Classifier-generalization">
<body>Specifies the Generalization relationships for this Classifier. These Generalizations navigate to more general classifiers in the generalization hierarchy.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-Classifier-general" name="general" type="Core-Abstractions-Generalizations-Classifier" lower="0" upper="*" isDerived="true" association="Core-Abstractions-Generalizations-A_general_classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Classifier-general-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Classifier-general">
<body>Specifies the general Classifiers for this Classifier.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Generalizations-Classifier-general.1" name="general" bodyCondition="Core-Abstractions-Generalizations-Classifier-general.1-spec" class="Core-Abstractions-Generalizations-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Classifier-general.1-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Classifier-general.1">
<body>The general classifiers are the classifiers referenced by the generalization relationships.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Generalizations-Classifier-general.1-spec" name="spec" constrainedElement="Core-Abstractions-Generalizations-Classifier-general.1 Core-Abstractions-Generalizations-Classifier-general" namespace="Core-Abstractions-Generalizations-Classifier-general.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Generalizations-Classifier-general.1-spec-_specification">
<language>OCL</language>
<body>self.parents()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Generalizations-Classifier-general.1-_ownedParameter.0" type="Core-Abstractions-Generalizations-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Generalizations-Classifier-parents" name="parents" bodyCondition="Core-Abstractions-Generalizations-Classifier-parents-spec" class="Core-Abstractions-Generalizations-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Classifier-parents-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Classifier-parents">
<body>The query parents() gives all of the immediate ancestors of a generalized Classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Generalizations-Classifier-parents-spec" name="spec" constrainedElement="Core-Abstractions-Generalizations-Classifier-parents" namespace="Core-Abstractions-Generalizations-Classifier-parents">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Generalizations-Classifier-parents-spec-_specification">
<language>OCL</language>
<body>generalization.general</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Generalizations-Classifier-parents-_ownedParameter.0" type="Core-Abstractions-Generalizations-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo" name="conformsTo" bodyCondition="Core-Abstractions-Generalizations-Classifier-conformsTo-spec" class="Core-Abstractions-Generalizations-Classifier" isQuery="true" redefinedOperation="Core-Abstractions-TypedElements-Type-conformsTo">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo-_ownedComment.0" annotatedElement="Core-Abstractions-Generalizations-Classifier-conformsTo">
<body>The query conformsTo() gives true for a classifier that defines a type that conforms to another. This is used, for example, in the specification of signature conformance for operations.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo-spec" name="spec" constrainedElement="Core-Abstractions-Generalizations-Classifier-conformsTo" namespace="Core-Abstractions-Generalizations-Classifier-conformsTo">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo-spec-_specification">
<language>OCL</language>
<body>(self=other) or (self.allParents()->includes(other))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo-other" name="other" type="Core-Abstractions-Generalizations-Classifier"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Generalizations-A_generalization_specific" name="A_generalization_specific" memberEnd="Core-Abstractions-Generalizations-Classifier-generalization Core-Abstractions-Generalizations-Generalization-specific"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Generalizations-A_general_generalization" name="A_general_generalization" memberEnd="Core-Abstractions-Generalizations-Generalization-general Core-Abstractions-Generalizations-A_general_generalization-generalization">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-A_general_generalization-generalization" name="generalization" type="Core-Abstractions-Generalizations-Generalization" lower="0" upper="*" owningAssociation="Core-Abstractions-Generalizations-A_general_generalization" association="Core-Abstractions-Generalizations-A_general_generalization"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Generalizations-A_general_classifier" name="A_general_classifier" memberEnd="Core-Abstractions-Generalizations-Classifier-general Core-Abstractions-Generalizations-A_general_classifier-classifier">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-A_general_classifier-classifier" name="classifier" type="Core-Abstractions-Generalizations-Classifier" lower="0" upper="*" owningAssociation="Core-Abstractions-Generalizations-A_general_classifier" association="Core-Abstractions-Generalizations-A_general_classifier"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Comments" name="Comments">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Comments-_packageImport.0" importedPackage="Core-Abstractions-Ownerships" importingNamespace="Core-Abstractions-Comments"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Comments-Comment" name="Comment" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Comments-Comment-_ownedComment.0" annotatedElement="Core-Abstractions-Comments-Comment">
<body>A comment is a textual annotation that can be attached to a set of elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Comments-Comment-body" name="body" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Comments-Comment-body-_ownedComment.0" annotatedElement="Core-Abstractions-Comments-Comment-body">
<body>Specifies a string that is the comment</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Comments-Comment-annotatedElement" name="annotatedElement" type="Core-Abstractions-Ownerships-Element" lower="0" upper="*" association="Core-Abstractions-Comments-A_annotatedElement_comment">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Comments-Comment-annotatedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Comments-Comment-annotatedElement">
<body>References the Element(s) being commented.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Comments-A_annotatedElement_comment" name="A_annotatedElement_comment" memberEnd="Core-Abstractions-Comments-Comment-annotatedElement Core-Abstractions-Comments-A_annotatedElement_comment-comment">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Comments-A_annotatedElement_comment-comment" name="comment" type="Core-Abstractions-Comments-Comment" lower="0" upper="*" owningAssociation="Core-Abstractions-Comments-A_annotatedElement_comment" association="Core-Abstractions-Comments-A_annotatedElement_comment"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Relationships" name="Relationships">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Relationships-_packageImport.0" importedPackage="Core-Abstractions-Ownerships" importingNamespace="Core-Abstractions-Relationships"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Relationships-DirectedRelationship" name="DirectedRelationship" isAbstract="true" superClass="Core-Abstractions-Relationships-Relationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Relationships-DirectedRelationship-_ownedComment.0" annotatedElement="Core-Abstractions-Relationships-DirectedRelationship">
<body>A directed relationship represents a relationship between a collection of source model elements and a collection of target model elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-DirectedRelationship-source" name="source" type="Core-Abstractions-Ownerships-Element" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Relationships-Relationship-relatedElement" association="Core-Abstractions-Relationships-A_source_directedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Relationships-DirectedRelationship-source-_ownedComment.0" annotatedElement="Core-Abstractions-Relationships-DirectedRelationship-source">
<body>Specifies the sources of the DirectedRelationship.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-DirectedRelationship-target" name="target" type="Core-Abstractions-Ownerships-Element" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Relationships-Relationship-relatedElement" association="Core-Abstractions-Relationships-A_target_directedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Relationships-DirectedRelationship-target-_ownedComment.0" annotatedElement="Core-Abstractions-Relationships-DirectedRelationship-target">
<body>Specifies the targets of the DirectedRelationship.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Relationships-Relationship" name="Relationship" isAbstract="true" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Relationships-Relationship-_ownedComment.0" annotatedElement="Core-Abstractions-Relationships-Relationship">
<body>Relationship is an abstract concept that specifies some kind of relationship between elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-Relationship-relatedElement" name="relatedElement" type="Core-Abstractions-Ownerships-Element" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Relationships-A_relatedElement_relationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Relationships-Relationship-relatedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Relationships-Relationship-relatedElement">
<body>Specifies the elements related by the Relationship.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Relationships-A_relatedElement_relationship" name="A_relatedElement_relationship" memberEnd="Core-Abstractions-Relationships-Relationship-relatedElement Core-Abstractions-Relationships-A_relatedElement_relationship-relationship">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-A_relatedElement_relationship-relationship" name="relationship" type="Core-Abstractions-Relationships-Relationship" lower="0" upper="*" owningAssociation="Core-Abstractions-Relationships-A_relatedElement_relationship" association="Core-Abstractions-Relationships-A_relatedElement_relationship"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Relationships-A_source_directedRelationship" name="A_source_directedRelationship" memberEnd="Core-Abstractions-Relationships-DirectedRelationship-source Core-Abstractions-Relationships-A_source_directedRelationship-directedRelationship">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-A_source_directedRelationship-directedRelationship" name="directedRelationship" type="Core-Abstractions-Relationships-DirectedRelationship" lower="0" upper="*" owningAssociation="Core-Abstractions-Relationships-A_source_directedRelationship" association="Core-Abstractions-Relationships-A_source_directedRelationship"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Relationships-A_target_directedRelationship" name="A_target_directedRelationship" memberEnd="Core-Abstractions-Relationships-DirectedRelationship-target Core-Abstractions-Relationships-A_target_directedRelationship-directedRelationship">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-A_target_directedRelationship-directedRelationship" name="directedRelationship" type="Core-Abstractions-Relationships-DirectedRelationship" lower="0" upper="*" owningAssociation="Core-Abstractions-Relationships-A_target_directedRelationship" association="Core-Abstractions-Relationships-A_target_directedRelationship"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Changeabilities" name="Changeabilities">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Changeabilities-_packageImport.0" importedPackage="Core-Abstractions-StructuralFeatures" importingNamespace="Core-Abstractions-Changeabilities"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Changeabilities-StructuralFeature" name="StructuralFeature" isAbstract="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Changeabilities-StructuralFeature-_ownedComment.0" annotatedElement="Core-Abstractions-Changeabilities-StructuralFeature">
<body>StructuralFeature has an attribute that determines whether a client may modify its value.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Changeabilities-StructuralFeature-isReadOnly" name="isReadOnly" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Changeabilities-StructuralFeature-isReadOnly-_ownedComment.0" annotatedElement="Core-Abstractions-Changeabilities-StructuralFeature-isReadOnly">
<body>States whether the feature's value may be modified by a client.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-StructuralFeatures" name="StructuralFeatures">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-StructuralFeatures-_packageImport.0" importedPackage="Core-Abstractions-Classifiers" importingNamespace="Core-Abstractions-StructuralFeatures"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-StructuralFeatures-_packageImport.1" importedPackage="Core-Abstractions-TypedElements" importingNamespace="Core-Abstractions-StructuralFeatures"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-StructuralFeatures-StructuralFeature" name="StructuralFeature" isAbstract="true" superClass="Core-Abstractions-Classifiers-Feature Core-Abstractions-TypedElements-TypedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-StructuralFeatures-StructuralFeature-_ownedComment.0" annotatedElement="Core-Abstractions-StructuralFeatures-StructuralFeature">
<body>A structural feature is a typed feature of a classifier that specifies the structure of instances of the classifier.</body>
</ownedComment>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Constraints" name="Constraints">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Constraints-_packageImport.0" importedPackage="Core-Abstractions-Expressions" importingNamespace="Core-Abstractions-Constraints"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Constraints-_packageImport.1" importedPackage="Core-Abstractions-Namespaces" importingNamespace="Core-Abstractions-Constraints"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Constraints-_packageImport.2" importedPackage="Core-Abstractions-Ownerships" importingNamespace="Core-Abstractions-Constraints"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Constraints-Constraint" name="Constraint" superClass="Core-Abstractions-Constraints-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Constraint-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Constraint">
<body>A constraint is a condition or restriction expressed in natural language text or in a machine readable language for the purpose of declaring some of the semantics of an element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Constraints-Constraint-not_apply_to_self" name="not_apply_to_self" constrainedElement="Core-Abstractions-Constraints-Constraint" namespace="Core-Abstractions-Constraints-Constraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Constraint-not_apply_to_self-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Constraint-not_apply_to_self">
<body>A constraint cannot be applied to itself.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Constraints-Constraint-not_apply_to_self-_specification">
<language>OCL</language>
<body>not constrainedElement->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Constraints-Constraint-value_specification_boolean" name="value_specification_boolean" constrainedElement="Core-Abstractions-Constraints-Constraint" namespace="Core-Abstractions-Constraints-Constraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Constraint-value_specification_boolean-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Constraint-value_specification_boolean">
<body>The value specification for a constraint must evaluate to a Boolean value.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Constraints-Constraint-value_specification_boolean-_specification">
<language>OCL</language>
<body>self.specification.booleanValue().oclIsKindOf(Boolean)</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-Constraint-context" name="context" type="Core-Abstractions-Constraints-Namespace" lower="0" subsettedProperty="Core-Abstractions-Constraints-NamedElement-namespace" association="Core-Abstractions-Constraints-A_ownedRule_context">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Constraint-context-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Constraint-context">
<body>The Namespace that owns this NamedElement.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-Constraint-specification" name="specification" type="Core-Abstractions-Expressions-ValueSpecification" isComposite="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement" association="Core-Abstractions-Constraints-A_specification_owningConstraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Constraint-specification-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Constraint-specification">
<body>A condition that must be true when evaluated in order for the constraint to be satisfied.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-Constraint-constrainedElement" name="constrainedElement" type="Core-Abstractions-Ownerships-Element" isOrdered="true" lower="0" upper="*" association="Core-Abstractions-Constraints-A_constrainedElement_constraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Constraint-constrainedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Constraint-constrainedElement">
<body>The ordered set of Elements referenced by this Constraint.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Constraints-Namespace" name="Namespace" isAbstract="true" superClass="Core-Abstractions-Constraints-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Namespace-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Namespace">
<body>A namespace can own constraints. A constraint associated with a namespace may either apply to the namespace itself, or it may apply to elements in the namespace.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-Namespace-ownedRule" name="ownedRule" type="Core-Abstractions-Constraints-Constraint" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Abstractions-Constraints-Namespace-ownedMember" association="Core-Abstractions-Constraints-A_ownedRule_context">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Namespace-ownedRule-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Namespace-ownedRule">
<body>Specifies a set of Constraints owned by this Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-Namespace-ownedMember" name="ownedMember" type="Core-Abstractions-Constraints-NamedElement" lower="0" upper="*" isComposite="true" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Ownerships-Element-ownedElement Core-Abstractions-Constraints-Namespace-member" association="Core-Abstractions-Constraints-A_ownedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Namespace-ownedMember-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Namespace-ownedMember">
<body>A collection of NamedElements owned by the Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-Namespace-member" name="member" type="Core-Abstractions-Constraints-NamedElement" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Abstractions-Constraints-A_member_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-Namespace-member-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-Namespace-member">
<body>A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Constraints-NamedElement" name="NamedElement" isAbstract="true" superClass="Core-Abstractions-Ownerships-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-NamedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-NamedElement">
<body>A named element is an element in a model that may have a name.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-NamedElement-namespace" name="namespace" type="Core-Abstractions-Constraints-Namespace" lower="0" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Constraints-A_ownedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Constraints-NamedElement-namespace-_ownedComment.0" annotatedElement="Core-Abstractions-Constraints-NamedElement-namespace">
<body>Specifies the namespace that owns the NamedElement.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Constraints-A_ownedRule_context" name="A_ownedRule_context" memberEnd="Core-Abstractions-Constraints-Namespace-ownedRule Core-Abstractions-Constraints-Constraint-context"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Constraints-A_specification_owningConstraint" name="A_specification_owningConstraint" memberEnd="Core-Abstractions-Constraints-Constraint-specification Core-Abstractions-Constraints-A_specification_owningConstraint-owningConstraint">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-A_specification_owningConstraint-owningConstraint" name="owningConstraint" type="Core-Abstractions-Constraints-Constraint" lower="0" owningAssociation="Core-Abstractions-Constraints-A_specification_owningConstraint" subsettedProperty="Core-Abstractions-Ownerships-Element-owner" association="Core-Abstractions-Constraints-A_specification_owningConstraint"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Constraints-A_constrainedElement_constraint" name="A_constrainedElement_constraint" memberEnd="Core-Abstractions-Constraints-Constraint-constrainedElement Core-Abstractions-Constraints-A_constrainedElement_constraint-constraint">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-A_constrainedElement_constraint-constraint" name="constraint" type="Core-Abstractions-Constraints-Constraint" lower="0" upper="*" owningAssociation="Core-Abstractions-Constraints-A_constrainedElement_constraint" association="Core-Abstractions-Constraints-A_constrainedElement_constraint"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Constraints-A_ownedMember_namespace" name="A_ownedMember_namespace" memberEnd="Core-Abstractions-Constraints-Namespace-ownedMember Core-Abstractions-Constraints-NamedElement-namespace"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Constraints-A_member_namespace" name="A_member_namespace" memberEnd="Core-Abstractions-Constraints-Namespace-member Core-Abstractions-Constraints-A_member_namespace-namespace">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-A_member_namespace-namespace" name="namespace" type="Core-Abstractions-Constraints-Namespace" lower="0" upper="*" owningAssociation="Core-Abstractions-Constraints-A_member_namespace" association="Core-Abstractions-Constraints-A_member_namespace"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Visibilities" name="Visibilities">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Visibilities-_packageImport.0" importedPackage="Core-Abstractions-Namespaces" importingNamespace="Core-Abstractions-Visibilities"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Visibilities-NamedElement" name="NamedElement" isAbstract="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-NamedElement-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-NamedElement">
<body>NamedElement has a visibility attribute.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Visibilities-NamedElement-visibility_needs_ownership" name="visibility_needs_ownership" constrainedElement="Core-Abstractions-Visibilities-NamedElement" namespace="Core-Abstractions-Visibilities-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-NamedElement-visibility_needs_ownership-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-NamedElement-visibility_needs_ownership">
<body>If a NamedElement is not owned by a Namespace, it does not have a visibility.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Visibilities-NamedElement-visibility_needs_ownership-_specification">
<language>OCL</language>
<body>namespace->isEmpty() implies visibility->isEmpty()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Visibilities-NamedElement-visibility" name="visibility" type="Core-Abstractions-Visibilities-VisibilityKind" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-NamedElement-visibility-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-NamedElement-visibility">
<body>Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Enumeration" xmi:id="Core-Abstractions-Visibilities-VisibilityKind" name="VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-VisibilityKind">
<body>VisibilityKind is an enumeration type that defines literals to determine the visibility of elements in a model.</body>
</ownedComment>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility" name="bestVisibility" bodyCondition="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-spec" datatype="Core-Abstractions-Visibilities-VisibilityKind" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility">
<body>The query bestVisibility() examines a set of VisibilityKinds, and returns public as the preferred visibility.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-spec" name="spec" constrainedElement="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility" namespace="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-spec-_specification">
<language>OCL</language>
<body>if vis->includes(#public) then #public else #private endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-_ownedParameter.0" type="Core-Abstractions-Visibilities-VisibilityKind" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-vis" name="vis" type="Core-Abstractions-Visibilities-VisibilityKind" lower="0" upper="*"/>
</ownedOperation>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-public" name="public" classifier="#Core-Abstractions-Visibilities-VisibilityKind" enumeration="Core-Abstractions-Visibilities-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-public-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-VisibilityKind-public">
<body>A public element is visible to all elements that can access the contents of the namespace that owns it.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-private" name="private" classifier="#Core-Abstractions-Visibilities-VisibilityKind" enumeration="Core-Abstractions-Visibilities-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-private-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-VisibilityKind-private">
<body>A private element is only visible inside the namespace that owns it.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-protected" name="protected" classifier="#Core-Abstractions-Visibilities-VisibilityKind" enumeration="Core-Abstractions-Visibilities-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-protected-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-VisibilityKind-protected">
<body>A protected element is visible to elements that have a generalization relationship to the namespace that owns it.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-package" name="package" classifier="#Core-Abstractions-Visibilities-VisibilityKind" enumeration="Core-Abstractions-Visibilities-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-package-_ownedComment.0" annotatedElement="Core-Abstractions-Visibilities-VisibilityKind-package">
<body>A package element is owned by a namespace that is not a package, and is visible to elements that are in the same package as its owning namespace. Only named elements that are not owned by packages can be marked as having package visibility. Any element marked as having package visibility is visible to all elements within the nearest enclosing package (given that other owning elements have proper visibility). Outside the nearest enclosing package, an element marked as having package visibility is not visible.</body>
</ownedComment>
</ownedLiteral>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Super" name="Super">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Super-_packageImport.0" importedPackage="Core-Abstractions-Classifiers" importingNamespace="Core-Abstractions-Super"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Super-Classifier" name="Classifier" isAbstract="true" superClass="Core-Abstractions-Namespaces-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier">
<body>A classifier can specify a generalization hierarchy by referencing its general classifiers.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-no_cycles_in_generalization" name="no_cycles_in_generalization" constrainedElement="Core-Abstractions-Super-Classifier" namespace="Core-Abstractions-Super-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-no_cycles_in_generalization-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-no_cycles_in_generalization">
<body>Generalization hierarchies must be directed and acyclical. A classifier can not be both a transitively general and transitively specific classifier of the same classifier.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-no_cycles_in_generalization-_specification">
<language>OCL</language>
<body>not self.allParents()->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-specialize_type" name="specialize_type" constrainedElement="Core-Abstractions-Super-Classifier" namespace="Core-Abstractions-Super-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-specialize_type-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-specialize_type">
<body>A classifier may only specialize classifiers of a valid type.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-specialize_type-_specification">
<language>OCL</language>
<body>self.parents()->forAll(c | self.maySpecializeType(c))</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-Classifier-isAbstract" name="isAbstract" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-isAbstract-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-isAbstract">
<body>If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember" name="inheritedMember" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*" isDerived="true" subsettedProperty="Core-Abstractions-Namespaces-Namespace-member" association="Core-Abstractions-Super-A_inheritedMember_classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-inheritedMember">
<body>Specifies all elements inherited by this classifier from the general classifiers.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-Classifier-general" name="general" type="Core-Abstractions-Super-Classifier" lower="0" upper="*" association="Core-Abstractions-Super-A_general_classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-general-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-general">
<body>Specifies the more general classifiers in the generalization hierarchy for this Classifier.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember.1" name="inheritedMember" bodyCondition="Core-Abstractions-Super-Classifier-inheritedMember.1-spec" class="Core-Abstractions-Super-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember.1-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-inheritedMember.1">
<body>The inheritedMember association is derived by inheriting the inheritable members of the parents.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember.1-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-inheritedMember.1 Core-Abstractions-Super-Classifier-inheritedMember" namespace="Core-Abstractions-Super-Classifier-inheritedMember.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember.1-spec-_specification">
<language>OCL</language>
<body>self.inherit(self.parents()->collect(p | p.inheritableMembers(self))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inheritedMember.1-_ownedParameter.0" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-parents" name="parents" bodyCondition="Core-Abstractions-Super-Classifier-parents-spec" class="Core-Abstractions-Super-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-parents-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-parents">
<body>The query parents() gives all of the immediate ancestors of a generalized Classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-parents-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-parents" namespace="Core-Abstractions-Super-Classifier-parents">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-parents-spec-_specification">
<language>OCL</language>
<body>general</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-parents-_ownedParameter.0" type="Core-Abstractions-Super-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-allParents" name="allParents" bodyCondition="Core-Abstractions-Super-Classifier-allParents-spec" class="Core-Abstractions-Super-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-allParents-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-allParents">
<body>The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-allParents-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-allParents" namespace="Core-Abstractions-Super-Classifier-allParents">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-allParents-spec-_specification">
<language>OCL</language>
<body>self.parents()->union(self.parents()->collect(p | p.allParents())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-allParents-_ownedParameter.0" type="Core-Abstractions-Super-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers" name="inheritableMembers" bodyCondition="Core-Abstractions-Super-Classifier-inheritableMembers-spec" class="Core-Abstractions-Super-Classifier" isQuery="true" precondition="Core-Abstractions-Super-Classifier-inheritableMembers-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-inheritableMembers">
<body>The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-_ownedRule.0" constrainedElement="Core-Abstractions-Super-Classifier-inheritableMembers" namespace="Core-Abstractions-Super-Classifier-inheritableMembers">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-_ownedRule.0-_specification">
<language>OCL</language>
<body>c.allParents()->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-inheritableMembers" namespace="Core-Abstractions-Super-Classifier-inheritableMembers">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-spec-_specification">
<language>OCL</language>
<body>member->select(m | c.hasVisibilityOf(m))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-_ownedParameter.0" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers-c" name="c" type="Core-Abstractions-Super-Classifier"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf" name="hasVisibilityOf" bodyCondition="Core-Abstractions-Super-Classifier-hasVisibilityOf-spec" class="Core-Abstractions-Super-Classifier" isQuery="true" precondition="Core-Abstractions-Super-Classifier-hasVisibilityOf-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-hasVisibilityOf">
<body>The query hasVisibilityOf() determines whether a named element is visible in the classifier. By default all are visible. It is only called when the argument is something owned by a parent.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-_ownedRule.0" constrainedElement="Core-Abstractions-Super-Classifier-hasVisibilityOf" namespace="Core-Abstractions-Super-Classifier-hasVisibilityOf">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-_ownedRule.0-_specification">
<language>OCL</language>
<body>self.allParents()->collect(c | c.member)->includes(n)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-hasVisibilityOf" namespace="Core-Abstractions-Super-Classifier-hasVisibilityOf">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-spec-_specification">
<language>OCL</language>
<body>if (self.inheritedMember->includes (n)) then (n.visibility &lt;> #private) else true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-hasVisibilityOf-n" name="n" type="Core-Abstractions-Namespaces-NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-inherit" name="inherit" bodyCondition="Core-Abstractions-Super-Classifier-inherit-spec" class="Core-Abstractions-Super-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-inherit-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-inherit">
<body>The query inherit() defines how to inherit a set of elements. Here the operation is defined to inherit them all. It is intended to be redefined in circumstances where inheritance is affected by redefinition.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-inherit-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-inherit" namespace="Core-Abstractions-Super-Classifier-inherit">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-inherit-spec-_specification">
<language>OCL</language>
<body>inhs</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inherit-_ownedParameter.0" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inherit-inhs" name="inhs" type="Core-Abstractions-Namespaces-NamedElement" lower="0" upper="*"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType" name="maySpecializeType" bodyCondition="Core-Abstractions-Super-Classifier-maySpecializeType-spec" class="Core-Abstractions-Super-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType-_ownedComment.0" annotatedElement="Core-Abstractions-Super-Classifier-maySpecializeType">
<body>The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. By default a classifier may specialize classifiers of the same or a more general type. It is intended to be redefined by classifiers that have different specialization constraints.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType-spec" name="spec" constrainedElement="Core-Abstractions-Super-Classifier-maySpecializeType" namespace="Core-Abstractions-Super-Classifier-maySpecializeType">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType-spec-_specification">
<language>OCL</language>
<body>self.oclIsKindOf(c.oclType)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType-c" name="c" type="Core-Abstractions-Super-Classifier"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Super-A_inheritedMember_classifier" name="A_inheritedMember_classifier" memberEnd="Core-Abstractions-Super-Classifier-inheritedMember Core-Abstractions-Super-A_inheritedMember_classifier-classifier">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-A_inheritedMember_classifier-classifier" name="classifier" type="Core-Abstractions-Super-Classifier" lower="0" upper="*" owningAssociation="Core-Abstractions-Super-A_inheritedMember_classifier" association="Core-Abstractions-Super-A_inheritedMember_classifier"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-Super-A_general_classifier" name="A_general_classifier" memberEnd="Core-Abstractions-Super-Classifier-general Core-Abstractions-Super-A_general_classifier-classifier">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-A_general_classifier-classifier" name="classifier" type="Core-Abstractions-Super-Classifier" lower="0" upper="*" owningAssociation="Core-Abstractions-Super-A_general_classifier" association="Core-Abstractions-Super-A_general_classifier"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Literals" name="Literals">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Literals-_packageImport.0" importedPackage="Core-Abstractions-Expressions" importingNamespace="Core-Abstractions-Literals"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Literals-LiteralBoolean" name="LiteralBoolean" superClass="Core-Abstractions-Literals-LiteralSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralBoolean-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralBoolean">
<body>A literal Boolean is a specification of a Boolean value.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Literals-LiteralBoolean-value" name="value" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralBoolean-value-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralBoolean-value">
<body>The specified Boolean value.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralBoolean-isComputable" name="isComputable" bodyCondition="Core-Abstractions-Literals-LiteralBoolean-isComputable-spec" class="Core-Abstractions-Literals-LiteralBoolean" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralBoolean-isComputable-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralBoolean-isComputable">
<body>The query isComputable() is redefined to be true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralBoolean-isComputable-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralBoolean-isComputable" namespace="Core-Abstractions-Literals-LiteralBoolean-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralBoolean-isComputable-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralBoolean-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralBoolean-booleanValue" name="booleanValue" bodyCondition="Core-Abstractions-Literals-LiteralBoolean-booleanValue-spec" class="Core-Abstractions-Literals-LiteralBoolean" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-booleanValue">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralBoolean-booleanValue-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralBoolean-booleanValue">
<body>The query booleanValue() gives the value.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralBoolean-booleanValue-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralBoolean-booleanValue" namespace="Core-Abstractions-Literals-LiteralBoolean-booleanValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralBoolean-booleanValue-spec-_specification">
<language>OCL</language>
<body>value</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralBoolean-booleanValue-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Literals-LiteralString" name="LiteralString" superClass="Core-Abstractions-Literals-LiteralSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralString-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralString">
<body>A literal string is a specification of a string value.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Literals-LiteralString-value" name="value" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralString-value-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralString-value">
<body>The specified String value.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralString-isComputable" name="isComputable" bodyCondition="Core-Abstractions-Literals-LiteralString-isComputable-spec" class="Core-Abstractions-Literals-LiteralString" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralString-isComputable-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralString-isComputable">
<body>The query isComputable() is redefined to be true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralString-isComputable-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralString-isComputable" namespace="Core-Abstractions-Literals-LiteralString-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralString-isComputable-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralString-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralString-stringValue" name="stringValue" bodyCondition="Core-Abstractions-Literals-LiteralString-stringValue-spec" class="Core-Abstractions-Literals-LiteralString" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-stringValue">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralString-stringValue-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralString-stringValue">
<body>The query stringValue() gives the value.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralString-stringValue-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralString-stringValue" namespace="Core-Abstractions-Literals-LiteralString-stringValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralString-stringValue-spec-_specification">
<language>OCL</language>
<body>value</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralString-stringValue-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Literals-LiteralSpecification" name="LiteralSpecification" isAbstract="true" superClass="Core-Abstractions-Expressions-ValueSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralSpecification-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralSpecification">
<body>A literal specification identifies a literal constant being modeled.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Literals-LiteralNull" name="LiteralNull" superClass="Core-Abstractions-Literals-LiteralSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralNull-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralNull">
<body>A literal null specifies the lack of a value.</body>
</ownedComment>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralNull-isComputable" name="isComputable" bodyCondition="Core-Abstractions-Literals-LiteralNull-isComputable-spec" class="Core-Abstractions-Literals-LiteralNull" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralNull-isComputable-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralNull-isComputable">
<body>The query isComputable() is redefined to be true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralNull-isComputable-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralNull-isComputable" namespace="Core-Abstractions-Literals-LiteralNull-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralNull-isComputable-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralNull-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralNull-isNull" name="isNull" bodyCondition="Core-Abstractions-Literals-LiteralNull-isNull-spec" class="Core-Abstractions-Literals-LiteralNull" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isNull">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralNull-isNull-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralNull-isNull">
<body>The query isNull() returns true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralNull-isNull-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralNull-isNull" namespace="Core-Abstractions-Literals-LiteralNull-isNull">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralNull-isNull-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralNull-isNull-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Literals-LiteralInteger" name="LiteralInteger" superClass="Core-Abstractions-Literals-LiteralSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralInteger-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralInteger">
<body>A literal integer is a specification of an integer value.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Literals-LiteralInteger-value" name="value" type="Core-PrimitiveTypes-Integer" default="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralInteger-value-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralInteger-value">
<body>The specified Integer value.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralInteger-isComputable" name="isComputable" bodyCondition="Core-Abstractions-Literals-LiteralInteger-isComputable-spec" class="Core-Abstractions-Literals-LiteralInteger" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralInteger-isComputable-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralInteger-isComputable">
<body>The query isComputable() is redefined to be true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralInteger-isComputable-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralInteger-isComputable" namespace="Core-Abstractions-Literals-LiteralInteger-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralInteger-isComputable-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralInteger-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralInteger-integerValue" name="integerValue" bodyCondition="Core-Abstractions-Literals-LiteralInteger-integerValue-spec" class="Core-Abstractions-Literals-LiteralInteger" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-integerValue">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralInteger-integerValue-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralInteger-integerValue">
<body>The query integerValue() gives the value.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralInteger-integerValue-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralInteger-integerValue" namespace="Core-Abstractions-Literals-LiteralInteger-integerValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralInteger-integerValue-spec-_specification">
<language>OCL</language>
<body>value</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralInteger-integerValue-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural" name="LiteralUnlimitedNatural" superClass="Core-Abstractions-Literals-LiteralSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralUnlimitedNatural">
<body>A literal unlimited natural is a specification of an unlimited natural number.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-value" name="value" type="Core-PrimitiveTypes-UnlimitedNatural" default="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-value-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralUnlimitedNatural-value">
<body>The specified UnlimitedNatural value.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable" name="isComputable" bodyCondition="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable-spec" class="Core-Abstractions-Literals-LiteralUnlimitedNatural" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable">
<body>The query isComputable() is redefined to be true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable" namespace="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue" name="unlimitedValue" bodyCondition="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue-spec" class="Core-Abstractions-Literals-LiteralUnlimitedNatural" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue-_ownedComment.0" annotatedElement="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue">
<body>The query unlimitedValue() gives the value.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue-spec" name="spec" constrainedElement="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue" namespace="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue-spec-_specification">
<language>OCL</language>
<body>value</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Multiplicities" name="Multiplicities">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-Multiplicities-_packageImport.0" importedPackage="Core-Abstractions-Elements" importingNamespace="Core-Abstractions-Multiplicities"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement" name="MultiplicityElement" isAbstract="true" superClass="Core-Abstractions-Elements-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement">
<body>A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A multiplicity element embeds this information to specify the allowable cardinalities for an instantiation of this element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lower_ge_0" name="lower_ge_0" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement" namespace="Core-Abstractions-Multiplicities-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lower_ge_0-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-lower_ge_0">
<body>The lower bound must be a non-negative integer literal.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lower_ge_0-_specification">
<language>OCL</language>
<body>lowerBound()->notEmpty() implies lowerBound() >= 0</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper_ge_lower" name="upper_ge_lower" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement" namespace="Core-Abstractions-Multiplicities-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper_ge_lower-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-upper_ge_lower">
<body>The upper bound must be greater than or equal to the lower bound.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper_ge_lower-_specification">
<language>OCL</language>
<body>(upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isOrdered" name="isOrdered" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isOrdered-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-isOrdered">
<body>For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isUnique" name="isUnique" type="Core-PrimitiveTypes-Boolean" default="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isUnique-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-isUnique">
<body>For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lower" name="lower" type="Core-PrimitiveTypes-Integer" lower="0" default="1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lower-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-lower">
<body>Specifies the lower bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper" name="upper" type="Core-PrimitiveTypes-UnlimitedNatural" lower="0" default="1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-upper">
<body>Specifies the upper bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound" name="lowerBound" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound-spec" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound">
<body>The query lowerBound() returns the lower bound of the multiplicity as an integer.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound-spec" name="spec" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound-spec-_specification">
<language>OCL</language>
<body>if lower->notEmpty() then lower else 1 endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound" name="upperBound" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound-spec" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound">
<body>The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound-spec" name="spec" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound-spec-_specification">
<language>OCL</language>
<body>if upper->notEmpty() then upper else 1 endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued" name="isMultivalued" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-spec" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" precondition="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued">
<body>The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-_ownedRule.0" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-_ownedRule.0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-spec" name="spec" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-spec-_specification">
<language>OCL</language>
<body>upperBound() > 1</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality" name="includesCardinality" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-spec" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" precondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality">
<body>The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-_ownedRule.0" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-_ownedRule.0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty() and lowerBound()->notEmpty()
includesCardinality = (lowerBound() &lt;= C) and (upperBound() >= C)
</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-spec" name="spec" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-spec-_specification">
<language>OCL</language>
<body>(lowerBound() &lt;= C) and (upperBound() >= C)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-C" name="C" type="Core-PrimitiveTypes-Integer"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity" name="includesMultiplicity" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-spec" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" precondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity">
<body>The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-_ownedRule.0" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-_ownedRule.0-_specification">
<language>OCL</language>
<body>self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-spec" name="spec" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity" namespace="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-spec-_specification">
<language>OCL</language>
<body>(self.lowerBound() &lt;= M.lowerBound()) and (self.upperBound() >= M.upperBound())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-M" name="M" type="Core-Basic-MultiplicityElement"/>
</ownedOperation>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-Elements" name="Elements">
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-Elements-Element" name="Element" isAbstract="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Elements-Element-_ownedComment.0" annotatedElement="Core-Abstractions-Elements-Element">
<body>An element is a constituent of a model.</body>
</ownedComment>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Abstractions-TypedElements" name="TypedElements">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Abstractions-TypedElements-_packageImport.0" importedPackage="Core-Abstractions-Namespaces" importingNamespace="Core-Abstractions-TypedElements"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-TypedElements-Type" name="Type" isAbstract="true" superClass="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-TypedElements-Type-_ownedComment.0" annotatedElement="Core-Abstractions-TypedElements-Type">
<body>A type constrains the values represented by a typed element.</body>
</ownedComment>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-TypedElements-Type-conformsTo" name="conformsTo" bodyCondition="Core-Abstractions-TypedElements-Type-conformsTo-spec" class="Core-Abstractions-TypedElements-Type" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-TypedElements-Type-conformsTo-_ownedComment.0" annotatedElement="Core-Abstractions-TypedElements-Type-conformsTo">
<body>The query conformsTo() gives true for a type that conforms to another. By default, two types do not conform to each other. This query is intended to be redefined for specific conformance situations.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Abstractions-TypedElements-Type-conformsTo-spec" name="spec" constrainedElement="Core-Abstractions-TypedElements-Type-conformsTo" namespace="Core-Abstractions-TypedElements-Type-conformsTo">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-TypedElements-Type-conformsTo-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-TypedElements-Type-conformsTo-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-TypedElements-Type-conformsTo-other" name="other" type="Core-Abstractions-TypedElements-Type"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Abstractions-TypedElements-TypedElement" name="TypedElement" isAbstract="true" superClass="Core-Abstractions-Namespaces-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-TypedElements-TypedElement-_ownedComment.0" annotatedElement="Core-Abstractions-TypedElements-TypedElement">
<body>A typed element has a type.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-TypedElements-TypedElement-type" name="type" type="Core-Abstractions-TypedElements-Type" lower="0" association="Core-Abstractions-TypedElements-A_type_typedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-TypedElements-TypedElement-type-_ownedComment.0" annotatedElement="Core-Abstractions-TypedElements-TypedElement-type">
<body>The type of the TypedElement.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Abstractions-TypedElements-A_type_typedElement" name="A_type_typedElement" memberEnd="Core-Abstractions-TypedElements-TypedElement-type Core-Abstractions-TypedElements-A_type_typedElement-typedElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-TypedElements-A_type_typedElement-typedElement" name="typedElement" type="Core-Abstractions-TypedElements-TypedElement" lower="0" upper="*" owningAssociation="Core-Abstractions-TypedElements-A_type_typedElement" association="Core-Abstractions-TypedElements-A_type_typedElement"/>
</ownedMember>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-PrimitiveTypes" name="PrimitiveTypes">
<ownedMember xmi:type="cmof:PrimitiveType" xmi:id="Core-PrimitiveTypes-Integer" name="Integer">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-PrimitiveTypes-Integer-_ownedComment.0" annotatedElement="Core-PrimitiveTypes-Integer">
<body>An integer is a primitive type representing integer values.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:PrimitiveType" xmi:id="Core-PrimitiveTypes-Boolean" name="Boolean">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-PrimitiveTypes-Boolean-_ownedComment.0" annotatedElement="Core-PrimitiveTypes-Boolean">
<body>A Boolean type is used for logical expression, consisting of the predefined values true and false.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:PrimitiveType" xmi:id="Core-PrimitiveTypes-String" name="String">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-PrimitiveTypes-String-_ownedComment.0" annotatedElement="Core-PrimitiveTypes-String">
<body>A string is a sequence of characters in some suitable character set used to display information about the model. Character sets may include non-Roman alphabets and characters.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:PrimitiveType" xmi:id="Core-PrimitiveTypes-UnlimitedNatural" name="UnlimitedNatural">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-PrimitiveTypes-UnlimitedNatural-_ownedComment.0" annotatedElement="Core-PrimitiveTypes-UnlimitedNatural">
<body>An unlimited natural is a primitive type representing unlimited natural values.</body>
</ownedComment>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Basic" name="Basic">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Basic-_packageImport.0" importedPackage="Core-PrimitiveTypes" importingNamespace="Core-Basic"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Class" name="Class" superClass="Core-Basic-Type">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Class-_ownedComment.0" annotatedElement="Core-Basic-Class">
<body>A class is a type that has objects as its instances.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Class-isAbstract" name="isAbstract" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Class-isAbstract-_ownedComment.0" annotatedElement="Core-Basic-Class-isAbstract">
<body>True when a class is abstract.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Class-ownedAttribute" name="ownedAttribute" type="Core-Basic-Property" isOrdered="true" lower="0" upper="*" isComposite="true" association="Core-Basic-A_ownedAttribute_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Class-ownedAttribute-_ownedComment.0" annotatedElement="Core-Basic-Class-ownedAttribute">
<body>The attributes owned by a class. These do not include the inherited attributes. Attributes are represented by instances of Property.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Class-ownedOperation" name="ownedOperation" type="Core-Basic-Operation" isOrdered="true" lower="0" upper="*" isComposite="true" association="Core-Basic-A_ownedOperation_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Class-ownedOperation-_ownedComment.0" annotatedElement="Core-Basic-Class-ownedOperation">
<body>The operations owned by a class. These do not include the inherited operations.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Class-superClass" name="superClass" type="Core-Basic-Class" lower="0" upper="*" association="Core-Basic-A_superClass_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Class-superClass-_ownedComment.0" annotatedElement="Core-Basic-Class-superClass">
<body>The immediate superclasses of a class, from which the class inherits.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Operation" name="Operation" superClass="Core-Basic-TypedElement Core-Basic-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Operation-_ownedComment.0" annotatedElement="Core-Basic-Operation">
<body>An operation is owned by a class and may be invoked in the context of objects that are instances of that class. It is a typed element and a multiplicity element.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Operation-raisedException" name="raisedException" type="Core-Basic-Type" lower="0" upper="*" association="Core-Basic-A_raisedException_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Operation-raisedException-_ownedComment.0" annotatedElement="Core-Basic-Operation-raisedException">
<body>The exceptions that are declared as possible during an invocation of the operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Operation-ownedParameter" name="ownedParameter" type="Core-Basic-Parameter" isOrdered="true" lower="0" upper="*" isComposite="true" association="Core-Basic-A_ownedParameter_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Operation-ownedParameter-_ownedComment.0" annotatedElement="Core-Basic-Operation-ownedParameter">
<body>The parameters to the operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Operation-class" name="class" type="Core-Basic-Class" lower="0" association="Core-Basic-A_ownedOperation_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Operation-class-_ownedComment.0" annotatedElement="Core-Basic-Operation-class">
<body>The class that owns the operation.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Parameter" name="Parameter" superClass="Core-Basic-TypedElement Core-Basic-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Parameter-_ownedComment.0" annotatedElement="Core-Basic-Parameter">
<body>A parameter is a typed element that represents a parameter of an operation.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Parameter-operation" name="operation" type="Core-Basic-Operation" lower="0" association="Core-Basic-A_ownedParameter_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Parameter-operation-_ownedComment.0" annotatedElement="Core-Basic-Parameter-operation">
<body>The operation that owns the parameter.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Property" name="Property" superClass="Core-Basic-TypedElement Core-Basic-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-_ownedComment.0" annotatedElement="Core-Basic-Property">
<body>A property is a typed element that represents an attribute of a class.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Property-isReadOnly" name="isReadOnly" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-isReadOnly-_ownedComment.0" annotatedElement="Core-Basic-Property-isReadOnly">
<body>If isReadOnly is true, the attribute may not be written to after initialization.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Property-default" name="default" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-default-_ownedComment.0" annotatedElement="Core-Basic-Property-default">
<body>A string that is evaluated to give a default value for the attribute when an object of the owning class is instantiated.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Property-isComposite" name="isComposite" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-isComposite-_ownedComment.0" annotatedElement="Core-Basic-Property-isComposite">
<body>If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Property-isDerived" name="isDerived" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-isDerived-_ownedComment.0" annotatedElement="Core-Basic-Property-isDerived">
<body>If isDerived is true, the value of the attribute is derived from information elsewhere.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Property-class" name="class" type="Core-Basic-Class" lower="0" association="Core-Basic-A_ownedAttribute_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-class-_ownedComment.0" annotatedElement="Core-Basic-Property-class">
<body>The class that owns the property, and of which the property is an attribute.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Property-opposite" name="opposite" type="Core-Basic-Property" lower="0" association="Core-Basic-A_opposite_property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Property-opposite-_ownedComment.0" annotatedElement="Core-Basic-Property-opposite">
<body>Two attributes attr1 and attr2 of two objects o1 and o2 (which may be the same object) may be paired with each other so that o1.attr1 refers to o2 if and only if o2.attr2 refers to o1. In such a case attr1 is the opposite of attr2 and attr2 is the opposite of attr1.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Type" name="Type" isAbstract="true" superClass="Core-Basic-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Type-_ownedComment.0" annotatedElement="Core-Basic-Type">
<body>A type is a named element that is used as the type for a typed element. A type can be contained in a package.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Type-package" name="package" type="Core-Basic-Package" lower="0" association="Core-Basic-A_ownedType_package">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Type-package-_ownedComment.0" annotatedElement="Core-Basic-Type-package">
<body>Specifies the owning package of this classifier, if any.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-NamedElement" name="NamedElement" isAbstract="true" superClass="Core-Basic-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-NamedElement-_ownedComment.0" annotatedElement="Core-Basic-NamedElement">
<body>A named element represents an element with a name.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-NamedElement-name" name="name" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-NamedElement-name-_ownedComment.0" annotatedElement="Core-Basic-NamedElement-name">
<body>The name of the NamedElement.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-TypedElement" name="TypedElement" isAbstract="true" superClass="Core-Basic-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-TypedElement-_ownedComment.0" annotatedElement="Core-Basic-TypedElement">
<body>A typed element is a kind of named element that represents an element with a type.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-TypedElement-type" name="type" type="Core-Basic-Type" lower="0" association="Core-Basic-A_type_typedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-TypedElement-type-_ownedComment.0" annotatedElement="Core-Basic-TypedElement-type">
<body>The type of the TypedElement.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Enumeration" name="Enumeration" superClass="Core-Basic-DataType">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Enumeration-_ownedComment.0" annotatedElement="Core-Basic-Enumeration">
<body>An enumeration defines a set of literals that can be used as its values.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Enumeration-ownedLiteral" name="ownedLiteral" type="Core-Basic-EnumerationLiteral" isOrdered="true" lower="0" upper="*" isComposite="true" association="Core-Basic-A_ownedLiteral_enumeration">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Enumeration-ownedLiteral-_ownedComment.0" annotatedElement="Core-Basic-Enumeration-ownedLiteral">
<body>The ordered set of literals for this Enumeration.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-EnumerationLiteral" name="EnumerationLiteral" superClass="Core-Basic-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-EnumerationLiteral-_ownedComment.0" annotatedElement="Core-Basic-EnumerationLiteral">
<body>An enumeration literal is a value of an enumeration.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-EnumerationLiteral-enumeration" name="enumeration" type="Core-Basic-Enumeration" lower="0" association="Core-Basic-A_ownedLiteral_enumeration">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-EnumerationLiteral-enumeration-_ownedComment.0" annotatedElement="Core-Basic-EnumerationLiteral-enumeration">
<body>The Enumeration that this EnumerationLiteral is a member of.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-PrimitiveType" name="PrimitiveType" superClass="Core-Basic-DataType">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-PrimitiveType-_ownedComment.0" annotatedElement="Core-Basic-PrimitiveType">
<body>A primitive type is a data type implemented by the underlying infrastructure and made available for modeling.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Package" name="Package" superClass="Core-Basic-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Package-_ownedComment.0" annotatedElement="Core-Basic-Package">
<body>A package is a container for types and other packages.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Package-nestedPackage" name="nestedPackage" type="Core-Basic-Package" lower="0" upper="*" isComposite="true" association="Core-Basic-A_nestedPackage_nestingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Package-nestedPackage-_ownedComment.0" annotatedElement="Core-Basic-Package-nestedPackage">
<body>The set of contained packages.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Package-nestingPackage" name="nestingPackage" type="Core-Basic-Package" lower="0" association="Core-Basic-A_nestedPackage_nestingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Package-nestingPackage-_ownedComment.0" annotatedElement="Core-Basic-Package-nestingPackage">
<body>The containing package.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Package-ownedType" name="ownedType" type="Core-Basic-Type" lower="0" upper="*" isComposite="true" association="Core-Basic-A_ownedType_package">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Package-ownedType-_ownedComment.0" annotatedElement="Core-Basic-Package-ownedType">
<body>The set of contained types.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-DataType" name="DataType" isAbstract="true" superClass="Core-Basic-Type">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-DataType-_ownedComment.0" annotatedElement="Core-Basic-DataType">
<body>DataType is an abstract class that acts as a common superclass for different kinds of data types.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-MultiplicityElement" name="MultiplicityElement" isAbstract="true" superClass="Core-Basic-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement">
<body>A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A multiplicity element embeds this information to specify the allowable cardinalities for an instantiation of this element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-lower_ge_0" name="lower_ge_0" constrainedElement="Core-Basic-MultiplicityElement" namespace="Core-Basic-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-lower_ge_0-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-lower_ge_0">
<body>The lower bound must be a non-negative integer literal.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-lower_ge_0-_specification">
<language>OCL</language>
<body>lowerBound()->notEmpty() implies lowerBound() >= 0</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-upper_ge_lower" name="upper_ge_lower" constrainedElement="Core-Basic-MultiplicityElement" namespace="Core-Basic-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-upper_ge_lower-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-upper_ge_lower">
<body>The upper bound must be greater than or equal to the lower bound.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-upper_ge_lower-_specification">
<language>OCL</language>
<body>(upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-MultiplicityElement-isOrdered" name="isOrdered" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-isOrdered-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-isOrdered">
<body>For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-MultiplicityElement-isUnique" name="isUnique" type="Core-PrimitiveTypes-Boolean" default="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-isUnique-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-isUnique">
<body>For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-MultiplicityElement-lower" name="lower" type="Core-PrimitiveTypes-Integer" lower="0" default="1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-lower-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-lower">
<body>Specifies the lower bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-MultiplicityElement-upper" name="upper" type="Core-PrimitiveTypes-UnlimitedNatural" lower="0" default="1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-upper-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-upper">
<body>Specifies the upper bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Basic-MultiplicityElement-lowerBound" name="lowerBound" bodyCondition="Core-Basic-MultiplicityElement-lowerBound-spec" class="Core-Basic-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-lowerBound-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-lowerBound">
<body>The query lowerBound() returns the lower bound of the multiplicity as an integer.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-lowerBound-spec" name="spec" constrainedElement="Core-Basic-MultiplicityElement-lowerBound" namespace="Core-Basic-MultiplicityElement-lowerBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-lowerBound-spec-_specification">
<language>OCL</language>
<body>if lower->notEmpty() then lower else 1 endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-lowerBound-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Basic-MultiplicityElement-upperBound" name="upperBound" bodyCondition="Core-Basic-MultiplicityElement-upperBound-spec" class="Core-Basic-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-upperBound-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-upperBound">
<body>The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-upperBound-spec" name="spec" constrainedElement="Core-Basic-MultiplicityElement-upperBound" namespace="Core-Basic-MultiplicityElement-upperBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-upperBound-spec-_specification">
<language>OCL</language>
<body>if upper->notEmpty() then upper else 1 endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-upperBound-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Basic-MultiplicityElement-isMultivalued" name="isMultivalued" bodyCondition="Core-Basic-MultiplicityElement-isMultivalued-spec" class="Core-Basic-MultiplicityElement" isQuery="true" precondition="Core-Basic-MultiplicityElement-isMultivalued-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-isMultivalued-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-isMultivalued">
<body>The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-isMultivalued-_ownedRule.0" constrainedElement="Core-Basic-MultiplicityElement-isMultivalued" namespace="Core-Basic-MultiplicityElement-isMultivalued">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-isMultivalued-_ownedRule.0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-isMultivalued-spec" name="spec" constrainedElement="Core-Basic-MultiplicityElement-isMultivalued" namespace="Core-Basic-MultiplicityElement-isMultivalued">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-isMultivalued-spec-_specification">
<language>OCL</language>
<body>upperBound() > 1</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-isMultivalued-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Basic-MultiplicityElement-includesCardinality" name="includesCardinality" bodyCondition="Core-Basic-MultiplicityElement-includesCardinality-spec" class="Core-Basic-MultiplicityElement" isQuery="true" precondition="Core-Basic-MultiplicityElement-includesCardinality-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-includesCardinality">
<body>The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-_ownedRule.0" constrainedElement="Core-Basic-MultiplicityElement-includesCardinality" namespace="Core-Basic-MultiplicityElement-includesCardinality">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-_ownedRule.0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty() and lowerBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-spec" name="spec" constrainedElement="Core-Basic-MultiplicityElement-includesCardinality" namespace="Core-Basic-MultiplicityElement-includesCardinality">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-spec-_specification">
<language>OCL</language>
<body>(lowerBound() &lt;= C) and (upperBound() >= C)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-includesCardinality-C" name="C" type="Core-PrimitiveTypes-Integer"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity" name="includesMultiplicity" bodyCondition="Core-Basic-MultiplicityElement-includesMultiplicity-spec" class="Core-Basic-MultiplicityElement" isQuery="true" precondition="Core-Basic-MultiplicityElement-includesMultiplicity-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-includesMultiplicity">
<body>The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-_ownedRule.0" constrainedElement="Core-Basic-MultiplicityElement-includesMultiplicity" namespace="Core-Basic-MultiplicityElement-includesMultiplicity">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-_ownedRule.0-_specification">
<language>OCL</language>
<body>self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-spec" name="spec" constrainedElement="Core-Basic-MultiplicityElement-includesMultiplicity" namespace="Core-Basic-MultiplicityElement-includesMultiplicity">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-spec-_specification">
<language>OCL</language>
<body>(self.lowerBound() &lt;= M.lowerBound()) and (self.upperBound() >= M.upperBound())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Basic-MultiplicityElement-includesMultiplicity-M" name="M" type="Core-Basic-MultiplicityElement"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Element" name="Element" isAbstract="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Element-_ownedComment.0" annotatedElement="Core-Basic-Element">
<body>An element is a constituent of a model.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Element-ownedComment" name="ownedComment" type="Core-Basic-Comment" lower="0" upper="*" isComposite="true" association="Core-Basic-A_ownedComment_owningElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Element-ownedComment-_ownedComment.0" annotatedElement="Core-Basic-Element-ownedComment">
<body>The Comments owned by this element.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Basic-Comment" name="Comment" superClass="Core-Basic-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Comment-_ownedComment.0" annotatedElement="Core-Basic-Comment">
<body>A comment is a textual annotation that can be attached to a set of elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Comment-body" name="body" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Comment-body-_ownedComment.0" annotatedElement="Core-Basic-Comment-body">
<body>Specifies a string that is the comment.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Basic-Comment-annotatedElement" name="annotatedElement" type="Core-Basic-Element" lower="0" upper="*" association="Core-Basic-A_annotatedElement_comment">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-Comment-annotatedElement-_ownedComment.0" annotatedElement="Core-Basic-Comment-annotatedElement">
<body>References the Element(s) being commented.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_raisedException_operation" name="A_raisedException_operation" memberEnd="Core-Basic-Operation-raisedException Core-Basic-A_raisedException_operation-operation">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_raisedException_operation-operation" name="operation" type="Core-Basic-Operation" lower="0" upper="*" owningAssociation="Core-Basic-A_raisedException_operation" association="Core-Basic-A_raisedException_operation"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_ownedAttribute_class" name="A_ownedAttribute_class" memberEnd="Core-Basic-Class-ownedAttribute Core-Basic-Property-class"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_opposite_property" name="A_opposite_property" memberEnd="Core-Basic-Property-opposite Core-Basic-A_opposite_property-property">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_opposite_property-property" name="property" type="Core-Basic-Property" lower="0" owningAssociation="Core-Basic-A_opposite_property" association="Core-Basic-A_opposite_property"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_ownedParameter_operation" name="A_ownedParameter_operation" memberEnd="Core-Basic-Operation-ownedParameter Core-Basic-Parameter-operation"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_ownedOperation_class" name="A_ownedOperation_class" memberEnd="Core-Basic-Class-ownedOperation Core-Basic-Operation-class"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_superClass_class" name="A_superClass_class" memberEnd="Core-Basic-Class-superClass Core-Basic-A_superClass_class-class">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_superClass_class-class" name="class" type="Core-Basic-Class" lower="0" upper="*" owningAssociation="Core-Basic-A_superClass_class" association="Core-Basic-A_superClass_class"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_type_typedElement" name="A_type_typedElement" memberEnd="Core-Basic-TypedElement-type Core-Basic-A_type_typedElement-typedElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_type_typedElement-typedElement" name="typedElement" type="Core-Basic-TypedElement" lower="0" upper="*" owningAssociation="Core-Basic-A_type_typedElement" association="Core-Basic-A_type_typedElement"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_ownedLiteral_enumeration" name="A_ownedLiteral_enumeration" memberEnd="Core-Basic-Enumeration-ownedLiteral Core-Basic-EnumerationLiteral-enumeration"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_nestedPackage_nestingPackage" name="A_nestedPackage_nestingPackage" memberEnd="Core-Basic-Package-nestedPackage Core-Basic-Package-nestingPackage"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_ownedType_package" name="A_ownedType_package" memberEnd="Core-Basic-Package-ownedType Core-Basic-Type-package"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_annotatedElement_comment" name="A_annotatedElement_comment" memberEnd="Core-Basic-Comment-annotatedElement Core-Basic-A_annotatedElement_comment-comment">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_annotatedElement_comment-comment" name="comment" type="Core-Basic-Comment" lower="0" upper="*" owningAssociation="Core-Basic-A_annotatedElement_comment" association="Core-Basic-A_annotatedElement_comment"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Basic-A_ownedComment_owningElement" name="A_ownedComment_owningElement" memberEnd="Core-Basic-Element-ownedComment Core-Basic-A_ownedComment_owningElement-owningElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_ownedComment_owningElement-owningElement" name="owningElement" type="Core-Basic-Element" lower="0" owningAssociation="Core-Basic-A_ownedComment_owningElement" association="Core-Basic-A_ownedComment_owningElement"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Core-Constructs" name="Constructs">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Core-Constructs-_packageImport.0" importedPackage="Core-PrimitiveTypes" importingNamespace="Core-Constructs"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Classifier" name="Classifier" isAbstract="true" superClass="Core-Constructs-Namespace Core-Constructs-Type">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-_ownedComment.0" annotatedElement="Core-Constructs-Classifier">
<body>A classifier is a classification of instances - it describes a set of instances that have features in common. A classifier can specify a generalization hierarchy by referencing its general classifiers.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-no_cycles_in_generalization" name="no_cycles_in_generalization" constrainedElement="Core-Constructs-Classifier" namespace="Core-Constructs-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-no_cycles_in_generalization-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-no_cycles_in_generalization">
<body>Generalization hierarchies must be directed and acyclical. A classifier can not be both a transitively general and transitively specific classifier of the same classifier.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-no_cycles_in_generalization-_specification">
<language>OCL</language>
<body>not self.allParents()->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-specialize_type" name="specialize_type" constrainedElement="Core-Constructs-Classifier" namespace="Core-Constructs-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-specialize_type-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-specialize_type">
<body>A classifier may only specialize classifiers of a valid type.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-specialize_type-_specification">
<language>OCL</language>
<body>self.parents()->forAll(c | self.maySpecializeType(c))</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Classifier-attribute" name="attribute" type="Core-Constructs-Property" lower="0" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Constructs-Classifier-feature" association="Core-Constructs-A_attribute_classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-attribute-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-attribute">
<body>Refers to all of the Properties that are direct (i.e. not inherited or imported) attributes of the classifier.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Classifier-feature" name="feature" type="Core-Constructs-Feature" lower="0" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Constructs-Namespace-member" association="Core-Constructs-A_feature_featuringClassifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-feature-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-feature">
<body>Note that there may be members of the Classifier that are of the type Feature but are not included in this association, e.g. inherited features.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Classifier-general" name="general" type="Core-Constructs-Classifier" lower="0" upper="*" association="Core-Constructs-A_general_classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-general-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-general">
<body>References the general classifier in the Generalization relationship.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Classifier-inheritedMember" name="inheritedMember" type="Core-Constructs-NamedElement" lower="0" upper="*" isDerived="true" subsettedProperty="Core-Constructs-Namespace-member" association="Core-Constructs-A_inheritedMember_classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-inheritedMember-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-inheritedMember">
<body>Specifies all elements inherited by this classifier from the general classifiers.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Classifier-isFinalSpecialization" name="isFinalSpecialization" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-isFinalSpecialization-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-isFinalSpecialization">
<body>If true, the Classifier cannot be specialized by generalization. Note that this property is preserved through package merge operations; that is, the capability to specialize a Classifier (i.e., isFinalSpecialization =false) must be preserved in the resulting Classifier of a package merge operation where a Classifier with isFinalSpecialization =false is merged with a matching Classifier with isFinalSpecialization =true: the resulting Classifier will have isFinalSpecialization =false.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-conformsTo" name="conformsTo" bodyCondition="Core-Constructs-Classifier-conformsTo-spec" class="Core-Constructs-Classifier" isQuery="true" redefinedOperation="Core-Constructs-Type-conformsTo">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-conformsTo-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-conformsTo">
<body>The query conformsTo() gives true for a classifier that defines a type that conforms to another. This is used, for example, in the specification of signature conformance for operations.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-conformsTo-spec" name="spec" constrainedElement="Core-Constructs-Classifier-conformsTo" namespace="Core-Constructs-Classifier-conformsTo">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-conformsTo-spec-_specification">
<language>OCL</language>
<body>(self=other) or (self.allParents()->includes(other))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-conformsTo-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-conformsTo-other" name="other" type="Core-Constructs-Classifier"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-allFeatures" name="allFeatures" bodyCondition="Core-Constructs-Classifier-allFeatures-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-allFeatures-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-allFeatures">
<body>The query allFeatures() gives all of the features in the namespace of the classifier. In general, through mechanisms such as inheritance, this will be a larger set than feature.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-allFeatures-spec" name="spec" constrainedElement="Core-Constructs-Classifier-allFeatures" namespace="Core-Constructs-Classifier-allFeatures">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-allFeatures-spec-_specification">
<language>OCL</language>
<body>member->select(oclIsKindOf(Feature))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-allFeatures-_ownedParameter.0" type="Core-Constructs-Feature" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-general.1" name="general" bodyCondition="Core-Constructs-Classifier-general.1-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-general.1-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-general.1">
<body>The general classifiers are the classifiers referenced by the generalization relationships.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-general.1-spec" name="spec" constrainedElement="Core-Constructs-Classifier-general.1 Core-Constructs-Classifier-general" namespace="Core-Constructs-Classifier-general.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-general.1-spec-_specification">
<language>OCL</language>
<body>self.parents()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-general.1-_ownedParameter.0" type="Core-Constructs-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-parents" name="parents" bodyCondition="Core-Constructs-Classifier-parents-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-parents-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-parents">
<body>The query parents() gives all of the immediate ancestors of a generalized Classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-parents-spec" name="spec" constrainedElement="Core-Constructs-Classifier-parents" namespace="Core-Constructs-Classifier-parents">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-parents-spec-_specification">
<language>OCL</language>
<body>generalization.general</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-parents-_ownedParameter.0" type="Core-Constructs-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-inheritedMember.1" name="inheritedMember" bodyCondition="Core-Constructs-Classifier-inheritedMember.1-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-inheritedMember.1-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-inheritedMember.1">
<body>The inheritedMember association is derived by inheriting the inheritable members of the parents.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-inheritedMember.1-spec" name="spec" constrainedElement="Core-Constructs-Classifier-inheritedMember.1 Core-Constructs-Classifier-inheritedMember" namespace="Core-Constructs-Classifier-inheritedMember.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-inheritedMember.1-spec-_specification">
<language>OCL</language>
<body>self.inherit(self.parents()->collect(p | p.inheritableMembers(self))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inheritedMember.1-_ownedParameter.0" type="Core-Constructs-NamedElement" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-allParents" name="allParents" bodyCondition="Core-Constructs-Classifier-allParents-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-allParents-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-allParents">
<body>The query allParents() gives all of the direct and indirect ancestors of a generalized Classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-allParents-spec" name="spec" constrainedElement="Core-Constructs-Classifier-allParents" namespace="Core-Constructs-Classifier-allParents">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-allParents-spec-_specification">
<language>OCL</language>
<body>self.parents()->union(self.parents()->collect(p | p.allParents())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-allParents-_ownedParameter.0" type="Core-Constructs-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-inheritableMembers" name="inheritableMembers" bodyCondition="Core-Constructs-Classifier-inheritableMembers-spec" class="Core-Constructs-Classifier" isQuery="true" precondition="Core-Constructs-Classifier-inheritableMembers-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-inheritableMembers-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-inheritableMembers">
<body>The query inheritableMembers() gives all of the members of a classifier that may be inherited in one of its descendants, subject to whatever visibility restrictions apply.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-inheritableMembers-_ownedRule.0" constrainedElement="Core-Constructs-Classifier-inheritableMembers" namespace="Core-Constructs-Classifier-inheritableMembers">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-inheritableMembers-_ownedRule.0-_specification">
<language>OCL</language>
<body>c.allParents()->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-inheritableMembers-spec" name="spec" constrainedElement="Core-Constructs-Classifier-inheritableMembers" namespace="Core-Constructs-Classifier-inheritableMembers">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-inheritableMembers-spec-_specification">
<language>OCL</language>
<body>member->select(m | c.hasVisibilityOf(m))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inheritableMembers-_ownedParameter.0" type="Core-Constructs-NamedElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inheritableMembers-c" name="c" type="Core-Constructs-Classifier"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-hasVisibilityOf" name="hasVisibilityOf" bodyCondition="Core-Constructs-Classifier-hasVisibilityOf-spec" class="Core-Constructs-Classifier" isQuery="true" precondition="Core-Constructs-Classifier-hasVisibilityOf-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-hasVisibilityOf">
<body>The query hasVisibilityOf() determines whether a named element is visible in the classifier. By default all are visible. It is only called when the argument is something owned by a parent.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-_ownedRule.0" constrainedElement="Core-Constructs-Classifier-hasVisibilityOf" namespace="Core-Constructs-Classifier-hasVisibilityOf">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-_ownedRule.0-_specification">
<language>OCL</language>
<body>self.allParents()->collect(c | c.member)->includes(n)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-spec" name="spec" constrainedElement="Core-Constructs-Classifier-hasVisibilityOf" namespace="Core-Constructs-Classifier-hasVisibilityOf">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-spec-_specification">
<language>OCL</language>
<body>if (self.inheritedMember->includes(n)) then (n.visibility &lt;> #private) else true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-hasVisibilityOf-n" name="n" type="Core-Constructs-NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-inherit" name="inherit" bodyCondition="Core-Constructs-Classifier-inherit-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-inherit-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-inherit">
<body>The inherit operation is overridden to exclude redefined properties.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-inherit-spec" name="spec" constrainedElement="Core-Constructs-Classifier-inherit" namespace="Core-Constructs-Classifier-inherit">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-inherit-spec-_specification">
<language>OCL</language>
<body>inhs</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inherit-_ownedParameter.0" type="Core-Constructs-NamedElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inherit-inhs" name="inhs" type="Core-Constructs-NamedElement" lower="0" upper="*"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-maySpecializeType" name="maySpecializeType" bodyCondition="Core-Constructs-Classifier-maySpecializeType-spec" class="Core-Constructs-Classifier" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Classifier-maySpecializeType-_ownedComment.0" annotatedElement="Core-Constructs-Classifier-maySpecializeType">
<body>The query maySpecializeType() determines whether this classifier may have a generalization relationship to classifiers of the specified type. By default a classifier may specialize classifiers of the same or a more general type. It is intended to be redefined by classifiers that have different specialization constraints.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Classifier-maySpecializeType-spec" name="spec" constrainedElement="Core-Constructs-Classifier-maySpecializeType" namespace="Core-Constructs-Classifier-maySpecializeType">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Classifier-maySpecializeType-spec-_specification">
<language>OCL</language>
<body>self.oclIsKindOf(c.oclType)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-maySpecializeType-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-maySpecializeType-c" name="c" type="Core-Constructs-Classifier"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-DirectedRelationship" name="DirectedRelationship" isAbstract="true" superClass="Core-Constructs-Relationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DirectedRelationship-_ownedComment.0" annotatedElement="Core-Constructs-DirectedRelationship">
<body>A directed relationship represents a relationship between a collection of source model elements and a collection of target model elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-DirectedRelationship-source" name="source" type="Core-Constructs-Element" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Constructs-Relationship-relatedElement" association="Core-Constructs-A_source_directedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DirectedRelationship-source-_ownedComment.0" annotatedElement="Core-Constructs-DirectedRelationship-source">
<body>Specifies the sources of the DirectedRelationship.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-DirectedRelationship-target" name="target" type="Core-Constructs-Element" upper="*" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Constructs-Relationship-relatedElement" association="Core-Constructs-A_target_directedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DirectedRelationship-target-_ownedComment.0" annotatedElement="Core-Constructs-DirectedRelationship-target">
<body>Specifies the targets of the DirectedRelationship.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Element" name="Element" isAbstract="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-_ownedComment.0" annotatedElement="Core-Constructs-Element">
<body>An element is a constituent of a model. As such, it has the capability of owning other elements.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Element-not_own_self" name="not_own_self" constrainedElement="Core-Constructs-Element" namespace="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-not_own_self-_ownedComment.0" annotatedElement="Core-Constructs-Element-not_own_self">
<body>An element may not directly or indirectly own itself.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Element-not_own_self-_specification">
<language>OCL</language>
<body>not self.allOwnedElements()->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Element-has_owner" name="has_owner" constrainedElement="Core-Constructs-Element" namespace="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-has_owner-_ownedComment.0" annotatedElement="Core-Constructs-Element-has_owner">
<body>Elements that must be owned must have an owner.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Element-has_owner-_specification">
<language>OCL</language>
<body>self.mustBeOwned() implies owner->notEmpty()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Element-ownedElement" name="ownedElement" type="Core-Constructs-Element" lower="0" upper="*" isComposite="true" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_ownedElement_owner">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-ownedElement-_ownedComment.0" annotatedElement="Core-Constructs-Element-ownedElement">
<body>The Elements owned by this element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Element-owner" name="owner" type="Core-Constructs-Element" lower="0" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_ownedElement_owner">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-owner-_ownedComment.0" annotatedElement="Core-Constructs-Element-owner">
<body>The Element that owns this element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Element-ownedComment" name="ownedComment" type="Core-Constructs-Comment" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Core-Constructs-A_ownedComment_owningElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-ownedComment-_ownedComment.0" annotatedElement="Core-Constructs-Element-ownedComment">
<body>The Comments owned by this element.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Element-allOwnedElements" name="allOwnedElements" bodyCondition="Core-Constructs-Element-allOwnedElements-spec" class="Core-Constructs-Element" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-allOwnedElements-_ownedComment.0" annotatedElement="Core-Constructs-Element-allOwnedElements">
<body>The query allOwnedElements() gives all of the direct and indirect owned elements of an element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Element-allOwnedElements-spec" name="spec" constrainedElement="Core-Constructs-Element-allOwnedElements" namespace="Core-Constructs-Element-allOwnedElements">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Element-allOwnedElements-spec-_specification">
<language>OCL</language>
<body>ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Element-allOwnedElements-_ownedParameter.0" type="Core-Constructs-Element" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Element-mustBeOwned" name="mustBeOwned" bodyCondition="Core-Constructs-Element-mustBeOwned-spec" class="Core-Constructs-Element" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Element-mustBeOwned-_ownedComment.0" annotatedElement="Core-Constructs-Element-mustBeOwned">
<body>The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Element-mustBeOwned-spec" name="spec" constrainedElement="Core-Constructs-Element-mustBeOwned" namespace="Core-Constructs-Element-mustBeOwned">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Element-mustBeOwned-spec-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Element-mustBeOwned-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Feature" name="Feature" isAbstract="true" superClass="Core-Constructs-RedefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Feature-_ownedComment.0" annotatedElement="Core-Constructs-Feature">
<body>A feature declares a behavioral or structural characteristic of instances of classifiers.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Feature-featuringClassifier" name="featuringClassifier" type="Core-Constructs-Classifier" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_feature_featuringClassifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Feature-featuringClassifier-_ownedComment.0" annotatedElement="Core-Constructs-Feature-featuringClassifier">
<body>The Classifiers that have this Feature as a feature.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-MultiplicityElement" name="MultiplicityElement" isAbstract="true" superClass="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement">
<body>A multiplicity is a definition of an inclusive interval of non-negative integers beginning with a lower bound and ending with a (possibly infinite) upper bound. A multiplicity element embeds this information to specify the allowable cardinalities for an instantiation of this element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-upper_ge_lower" name="upper_ge_lower" constrainedElement="Core-Constructs-MultiplicityElement" namespace="Core-Constructs-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-upper_ge_lower-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-upper_ge_lower">
<body>The upper bound must be greater than or equal to the lower bound.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-upper_ge_lower-_specification">
<language>OCL</language>
<body>(upperBound()->notEmpty() and lowerBound()->notEmpty()) implies upperBound() >= lowerBound()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-lower_ge_0" name="lower_ge_0" constrainedElement="Core-Constructs-MultiplicityElement" namespace="Core-Constructs-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-lower_ge_0-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-lower_ge_0">
<body>The lower bound must be a non-negative integer literal.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-lower_ge_0-_specification">
<language>OCL</language>
<body>lowerBound()->notEmpty() implies lowerBound() >= 0</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-MultiplicityElement-isOrdered" name="isOrdered" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-isOrdered-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-isOrdered">
<body>For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-MultiplicityElement-isUnique" name="isUnique" type="Core-PrimitiveTypes-Boolean" default="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-isUnique-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-isUnique">
<body>For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-MultiplicityElement-lower" name="lower" type="Core-PrimitiveTypes-Integer" lower="0" default="1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-lower-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-lower">
<body>Specifies the lower bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-MultiplicityElement-upper" name="upper" type="Core-PrimitiveTypes-UnlimitedNatural" lower="0" default="1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-upper-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-upper">
<body>Specifies the upper bound of the multiplicity interval.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued" name="isMultivalued" bodyCondition="Core-Constructs-MultiplicityElement-isMultivalued-spec" class="Core-Constructs-MultiplicityElement" isQuery="true" precondition="Core-Constructs-MultiplicityElement-isMultivalued-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-isMultivalued">
<body>The query isMultivalued() checks whether this multiplicity has an upper bound greater than one.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued-_ownedRule.0" constrainedElement="Core-Constructs-MultiplicityElement-isMultivalued" namespace="Core-Constructs-MultiplicityElement-isMultivalued">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued-_ownedRule.0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued-spec" name="spec" constrainedElement="Core-Constructs-MultiplicityElement-isMultivalued" namespace="Core-Constructs-MultiplicityElement-isMultivalued">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued-spec-_specification">
<language>OCL</language>
<body>upperBound() > 1</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-isMultivalued-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity" name="includesMultiplicity" bodyCondition="Core-Constructs-MultiplicityElement-includesMultiplicity-spec" class="Core-Constructs-MultiplicityElement" isQuery="true" precondition="Core-Constructs-MultiplicityElement-includesMultiplicity-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-includesMultiplicity">
<body>The query includesMultiplicity() checks whether this multiplicity includes all the cardinalities allowed by the specified multiplicity.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-_ownedRule.0" constrainedElement="Core-Constructs-MultiplicityElement-includesMultiplicity" namespace="Core-Constructs-MultiplicityElement-includesMultiplicity">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-_ownedRule.0-_specification">
<language>OCL</language>
<body>self.upperBound()->notEmpty() and self.lowerBound()->notEmpty() and M.upperBound()->notEmpty() and M.lowerBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-spec" name="spec" constrainedElement="Core-Constructs-MultiplicityElement-includesMultiplicity" namespace="Core-Constructs-MultiplicityElement-includesMultiplicity">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-spec-_specification">
<language>OCL</language>
<body>(self.lowerBound() &lt;= M.lowerBound()) and (self.upperBound() >= M.upperBound())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-includesMultiplicity-M" name="M" type="Core-Constructs-MultiplicityElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality" name="includesCardinality" bodyCondition="Core-Constructs-MultiplicityElement-includesCardinality-spec" class="Core-Constructs-MultiplicityElement" isQuery="true" precondition="Core-Constructs-MultiplicityElement-includesCardinality-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-includesCardinality">
<body>The query includesCardinality() checks whether the specified cardinality is valid for this multiplicity.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-_ownedRule.0" constrainedElement="Core-Constructs-MultiplicityElement-includesCardinality" namespace="Core-Constructs-MultiplicityElement-includesCardinality">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-_ownedRule.0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty() and lowerBound()->notEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-spec" name="spec" constrainedElement="Core-Constructs-MultiplicityElement-includesCardinality" namespace="Core-Constructs-MultiplicityElement-includesCardinality">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-spec-_specification">
<language>OCL</language>
<body>(lowerBound() &lt;= C) and (upperBound() >= C)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-includesCardinality-C" name="C" type="Core-PrimitiveTypes-Integer"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-MultiplicityElement-lowerBound" name="lowerBound" bodyCondition="Core-Constructs-MultiplicityElement-lowerBound-spec" class="Core-Constructs-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-lowerBound-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-lowerBound">
<body>The query lowerBound() returns the lower bound of the multiplicity as an integer.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-lowerBound-spec" name="spec" constrainedElement="Core-Constructs-MultiplicityElement-lowerBound" namespace="Core-Constructs-MultiplicityElement-lowerBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-lowerBound-spec-_specification">
<language>OCL</language>
<body>if lower->notEmpty() then lower else 1 endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-lowerBound-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-MultiplicityElement-upperBound" name="upperBound" bodyCondition="Core-Constructs-MultiplicityElement-upperBound-spec" class="Core-Constructs-MultiplicityElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-upperBound-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-upperBound">
<body>The query upperBound() returns the upper bound of the multiplicity for a bounded multiplicity as an unlimited natural.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-MultiplicityElement-upperBound-spec" name="spec" constrainedElement="Core-Constructs-MultiplicityElement-upperBound" namespace="Core-Constructs-MultiplicityElement-upperBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-upperBound-spec-_specification">
<language>OCL</language>
<body>if upper->notEmpty() then upper else 1 endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-MultiplicityElement-upperBound-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Namespace" name="Namespace" isAbstract="true" superClass="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-_ownedComment.0" annotatedElement="Core-Constructs-Namespace">
<body>A namespace is an element in a model that contains a set of named elements that can be identified by name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Namespace-members_distinguishable" name="members_distinguishable" constrainedElement="Core-Constructs-Namespace" namespace="Core-Constructs-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-members_distinguishable-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-members_distinguishable">
<body>All the members of a Namespace are distinguishable within it.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Namespace-members_distinguishable-_specification">
<language>OCL</language>
<body>membersAreDistinguishable()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Namespace-importedMember" name="importedMember" type="Core-Constructs-PackageableElement" lower="0" upper="*" isDerived="true" subsettedProperty="Core-Constructs-Namespace-member" association="Core-Constructs-A_importedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-importedMember-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-importedMember">
<body>References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Namespace-elementImport" name="elementImport" type="Core-Constructs-ElementImport" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Core-Constructs-A_elementImport_importingNamespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-elementImport-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-elementImport">
<body>References the ElementImports owned by the Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Namespace-packageImport" name="packageImport" type="Core-Constructs-PackageImport" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Core-Constructs-A_packageImport_importingNamespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-packageImport-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-packageImport">
<body>References the PackageImports owned by the Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Namespace-ownedMember" name="ownedMember" type="Core-Constructs-NamedElement" lower="0" upper="*" isComposite="true" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Constructs-Namespace-member Core-Constructs-Element-ownedElement" association="Core-Constructs-A_ownedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-ownedMember-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-ownedMember">
<body>A collection of NamedElements owned by the Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Namespace-member" name="member" type="Core-Constructs-NamedElement" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_member_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-member-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-member">
<body>A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Namespace-ownedRule" name="ownedRule" type="Core-Constructs-Constraint" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedRule_context"/>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-importedMember.1" name="importedMember" bodyCondition="Core-Constructs-Namespace-importedMember.1-spec" class="Core-Constructs-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-importedMember.1-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-importedMember.1">
<body>The importedMember property is derived from the ElementImports and the PackageImports. References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Namespace-importedMember.1-spec" name="spec" constrainedElement="Core-Constructs-Namespace-importedMember.1 Core-Constructs-Namespace-importedMember" namespace="Core-Constructs-Namespace-importedMember.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Namespace-importedMember.1-spec-_specification">
<language>OCL</language>
<body>self.importMembers(self.elementImport.importedElement.asSet()->union(self.packageImport.importedPackage->collect(p | p.visibleMembers())))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-importedMember.1-_ownedParameter.0" type="Core-Constructs-PackageableElement" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-getNamesOfMember" name="getNamesOfMember" bodyCondition="Core-Constructs-Namespace-getNamesOfMember-spec" class="Core-Constructs-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-getNamesOfMember-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-getNamesOfMember">
<body>The query getNamesOfMember() takes importing into account. It gives back the set of names that an element would have in an importing namespace, either because it is owned, or if not owned then imported individually, or if not individually then from a package.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Namespace-getNamesOfMember-spec" name="spec" constrainedElement="Core-Constructs-Namespace-getNamesOfMember" namespace="Core-Constructs-Namespace-getNamesOfMember">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Namespace-getNamesOfMember-spec-_specification">
<language>OCL</language>
<body>if self.ownedMember->includes(element)
then Set{}->include(element.name)
else let elementImports: ElementImport = self.elementImport->select(ei | ei.importedElement = element) in
if elementImports->notEmpty()
then elementImports->collect(el | el.getName())
else self.packageImport->select(pi | pi.importedPackage.visibleMembers()->includes(element))->collect(pi | pi.importedPackage.getNamesOfMember(element))
endif
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-getNamesOfMember-_ownedParameter.0" type="Core-PrimitiveTypes-String" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-getNamesOfMember-element" name="element" type="Core-Constructs-NamedElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-importMembers" name="importMembers" bodyCondition="Core-Constructs-Namespace-importMembers-spec" class="Core-Constructs-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-importMembers-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-importMembers">
<body>The query importMembers() defines which of a set of PackageableElements are actually imported into the namespace. This excludes hidden ones, i.e., those which have names that conflict with names of owned members, and also excludes elements which would have the same name when imported.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Namespace-importMembers-spec" name="spec" constrainedElement="Core-Constructs-Namespace-importMembers" namespace="Core-Constructs-Namespace-importMembers">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Namespace-importMembers-spec-_specification">
<language>OCL</language>
<body>self.excludeCollisions(imps)->select(imp | self.ownedMember->forAll(mem | mem.imp.isDistinguishableFrom(mem, self)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-importMembers-_ownedParameter.0" type="Core-Constructs-PackageableElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-importMembers-imps" name="imps" type="Core-Constructs-PackageableElement" lower="0" upper="*"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-excludeCollisions" name="excludeCollisions" bodyCondition="Core-Constructs-Namespace-excludeCollisions-spec" class="Core-Constructs-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-excludeCollisions-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-excludeCollisions">
<body>The query excludeCollisions() excludes from a set of PackageableElements any that would not be distinguishable from each other in this namespace.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Namespace-excludeCollisions-spec" name="spec" constrainedElement="Core-Constructs-Namespace-excludeCollisions" namespace="Core-Constructs-Namespace-excludeCollisions">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Namespace-excludeCollisions-spec-_specification">
<language>OCL</language>
<body>imps->reject(imp1 | imps.exists(imp2 | not imp1.isDistinguishableFrom(imp2, self)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-excludeCollisions-_ownedParameter.0" type="Core-Constructs-PackageableElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-excludeCollisions-imps" name="imps" type="Core-Constructs-PackageableElement" lower="0" upper="*"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-membersAreDistinguishable" name="membersAreDistinguishable" bodyCondition="Core-Constructs-Namespace-membersAreDistinguishable-spec" class="Core-Constructs-Namespace" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Namespace-membersAreDistinguishable-_ownedComment.0" annotatedElement="Core-Constructs-Namespace-membersAreDistinguishable">
<body>The Boolean query membersAreDistinguishable() determines whether all of the namespace's members are distinguishable within it.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Namespace-membersAreDistinguishable-spec" name="spec" constrainedElement="Core-Constructs-Namespace-membersAreDistinguishable" namespace="Core-Constructs-Namespace-membersAreDistinguishable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Namespace-membersAreDistinguishable-spec-_specification">
<language>OCL</language>
<body>self.member->forAll( memb |
self.member->excluding(memb)->forAll(other |
memb.isDistinguishableFrom(other, self)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-membersAreDistinguishable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-PackageableElement" name="PackageableElement" isAbstract="true" superClass="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageableElement-_ownedComment.0" annotatedElement="Core-Constructs-PackageableElement">
<body>A packageable element indicates a named element that may be owned directly by a package.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-RedefinableElement" name="RedefinableElement" isAbstract="true" superClass="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement">
<body>A redefinable element is an element that, when defined in the context of a classifier, can be redefined more specifically or differently in the context of another classifier that specializes (directly or indirectly) the context classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-RedefinableElement-redefinition_context_valid" name="redefinition_context_valid" constrainedElement="Core-Constructs-RedefinableElement" namespace="Core-Constructs-RedefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-redefinition_context_valid-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-redefinition_context_valid">
<body>At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-RedefinableElement-redefinition_context_valid-_specification">
<language>OCL</language>
<body>self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-RedefinableElement-redefinition_consistent" name="redefinition_consistent" constrainedElement="Core-Constructs-RedefinableElement" namespace="Core-Constructs-RedefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-redefinition_consistent-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-redefinition_consistent">
<body>A redefining element must be consistent with each redefined element.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-RedefinableElement-redefinition_consistent-_specification">
<language>OCL</language>
<body>self.redefinedElement->forAll(re | re.isConsistentWith(self))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-RedefinableElement-non_leaf_redefinition" name="non_leaf_redefinition" constrainedElement="Core-Constructs-RedefinableElement" namespace="Core-Constructs-RedefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-non_leaf_redefinition-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-non_leaf_redefinition">
<body>A redefinable element can only redefine non-leaf redefinable elements</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-RedefinableElement-non_leaf_redefinition-_specification">
<language>OCL</language>
<body>self.redefinedElement->forAll(not isLeaf)</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-RedefinableElement-redefinitionContext" name="redefinitionContext" type="Core-Constructs-Classifier" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_redefinitionContext_redefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-redefinitionContext-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-redefinitionContext">
<body>References the contexts that this element may be redefined from.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-RedefinableElement-redefinedElement" name="redefinedElement" type="Core-Constructs-RedefinableElement" lower="0" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_redefinedElement_redefinableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-redefinedElement-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-redefinedElement">
<body>The redefinable element that is being redefined by this element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-RedefinableElement-isLeaf" name="isLeaf" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-isLeaf-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-isLeaf">
<body>Indicates whether it is possible to further redefine a RedefinableElement. If the value is true, then it is not possible to further redefine the RedefinableElement. Note that this property is preserved through package merge operations; that is, the capability to redefine a RedefinableElement (i.e., isLeaf=false) must be preserved in the resulting RedefinableElement of a package merge operation where a RedefinableElement with isLeaf=false is merged with a matching RedefinableElement with isLeaf=true: the resulting RedefinableElement will have isLeaf=false. Default value is false.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith" name="isConsistentWith" bodyCondition="Core-Constructs-RedefinableElement-isConsistentWith-spec" class="Core-Constructs-RedefinableElement" isQuery="true" precondition="Core-Constructs-RedefinableElement-isConsistentWith-_ownedRule.1">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-isConsistentWith">
<body>The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-spec" name="spec" constrainedElement="Core-Constructs-RedefinableElement-isConsistentWith" namespace="Core-Constructs-RedefinableElement-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-_ownedRule.1" constrainedElement="Core-Constructs-RedefinableElement-isConsistentWith" namespace="Core-Constructs-RedefinableElement-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-_ownedRule.1-_specification">
<language>OCL</language>
<body>redefinee.isRedefinitionContextValid(self)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith-redefinee" name="redefinee" type="Core-Constructs-RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-RedefinableElement-isRedefinitionContextValid" name="isRedefinitionContextValid" bodyCondition="Core-Constructs-RedefinableElement-isRedefinitionContextValid-spec" class="Core-Constructs-RedefinableElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-RedefinableElement-isRedefinitionContextValid-_ownedComment.0" annotatedElement="Core-Constructs-RedefinableElement-isRedefinitionContextValid">
<body>The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-RedefinableElement-isRedefinitionContextValid-spec" name="spec" constrainedElement="Core-Constructs-RedefinableElement-isRedefinitionContextValid" namespace="Core-Constructs-RedefinableElement-isRedefinitionContextValid">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-RedefinableElement-isRedefinitionContextValid-spec-_specification">
<language>OCL</language>
<body>self.redefinitionContext->exists(c | redefined.redefinitionContext->exists(r | c.allParents()->includes(r)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-RedefinableElement-isRedefinitionContextValid-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-RedefinableElement-isRedefinitionContextValid-redefined" name="redefined" type="Core-Constructs-RedefinableElement"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Relationship" name="Relationship" isAbstract="true" superClass="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Relationship-_ownedComment.0" annotatedElement="Core-Constructs-Relationship">
<body>Relationship is an abstract concept that specifies some kind of relationship between elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Relationship-relatedElement" name="relatedElement" type="Core-Constructs-Element" upper="*" isDerived="true" isDerivedUnion="true" association="Core-Constructs-A_relatedElement_relationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Relationship-relatedElement-_ownedComment.0" annotatedElement="Core-Constructs-Relationship-relatedElement">
<body>Specifies the elements related by the Relationship.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-StructuralFeature" name="StructuralFeature" isAbstract="true" superClass="Core-Constructs-Feature Core-Constructs-TypedElement Core-Constructs-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-StructuralFeature-_ownedComment.0" annotatedElement="Core-Constructs-StructuralFeature">
<body>A structural feature is a typed feature of a classifier that specifies the structure of instances of the classifier.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-TypedElement" name="TypedElement" isAbstract="true" superClass="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-TypedElement-_ownedComment.0" annotatedElement="Core-Constructs-TypedElement">
<body>A typed element is a kind of named element that represents an element with a type.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-TypedElement-type" name="type" type="Core-Constructs-Type" lower="0" association="Core-Constructs-A_type_typedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-TypedElement-type-_ownedComment.0" annotatedElement="Core-Constructs-TypedElement-type">
<body>This information is derived from the return result for this Operation.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-ValueSpecification" name="ValueSpecification" isAbstract="true" superClass="Core-Constructs-TypedElement Core-Constructs-PackageableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification">
<body>A value specification is the specification of a (possibly empty) set of instances, including both objects and data values.</body>
</ownedComment>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ValueSpecification-isComputable" name="isComputable" bodyCondition="Core-Constructs-ValueSpecification-isComputable-spec" class="Core-Constructs-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-isComputable-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification-isComputable">
<body>The query isComputable() determines whether a value specification can be computed in a model. This operation cannot be fully defined in OCL. A conforming implementation is expected to deliver true for this operation for all value specifications that it can compute, and to compute all of those for which the operation is true. A conforming implementation is expected to be able to compute the value of all literals.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ValueSpecification-isComputable-spec" name="spec" constrainedElement="Core-Constructs-ValueSpecification-isComputable" namespace="Core-Constructs-ValueSpecification-isComputable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ValueSpecification-isComputable-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ValueSpecification-isComputable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ValueSpecification-integerValue" name="integerValue" bodyCondition="Core-Constructs-ValueSpecification-integerValue-spec" class="Core-Constructs-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-integerValue-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification-integerValue">
<body>The query integerValue() gives a single Integer value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ValueSpecification-integerValue-spec" name="spec" constrainedElement="Core-Constructs-ValueSpecification-integerValue" namespace="Core-Constructs-ValueSpecification-integerValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ValueSpecification-integerValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ValueSpecification-integerValue-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ValueSpecification-booleanValue" name="booleanValue" bodyCondition="Core-Constructs-ValueSpecification-booleanValue-spec" class="Core-Constructs-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-booleanValue-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification-booleanValue">
<body>The query booleanValue() gives a single Boolean value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ValueSpecification-booleanValue-spec" name="spec" constrainedElement="Core-Constructs-ValueSpecification-booleanValue" namespace="Core-Constructs-ValueSpecification-booleanValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ValueSpecification-booleanValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ValueSpecification-booleanValue-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ValueSpecification-stringValue" name="stringValue" bodyCondition="Core-Constructs-ValueSpecification-stringValue-spec" class="Core-Constructs-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-stringValue-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification-stringValue">
<body>The query stringValue() gives a single String value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ValueSpecification-stringValue-spec" name="spec" constrainedElement="Core-Constructs-ValueSpecification-stringValue" namespace="Core-Constructs-ValueSpecification-stringValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ValueSpecification-stringValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ValueSpecification-stringValue-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ValueSpecification-unlimitedValue" name="unlimitedValue" bodyCondition="Core-Constructs-ValueSpecification-unlimitedValue-spec" class="Core-Constructs-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-unlimitedValue-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification-unlimitedValue">
<body>The query unlimitedValue() gives a single UnlimitedNatural value when one can be computed.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ValueSpecification-unlimitedValue-spec" name="spec" constrainedElement="Core-Constructs-ValueSpecification-unlimitedValue" namespace="Core-Constructs-ValueSpecification-unlimitedValue">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ValueSpecification-unlimitedValue-spec-_specification">
<language>OCL</language>
<body>Set{}</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ValueSpecification-unlimitedValue-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ValueSpecification-isNull" name="isNull" bodyCondition="Core-Constructs-ValueSpecification-isNull-spec" class="Core-Constructs-ValueSpecification" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ValueSpecification-isNull-_ownedComment.0" annotatedElement="Core-Constructs-ValueSpecification-isNull">
<body>The query isNull() returns true when it can be computed that the value is null.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ValueSpecification-isNull-spec" name="spec" constrainedElement="Core-Constructs-ValueSpecification-isNull" namespace="Core-Constructs-ValueSpecification-isNull">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ValueSpecification-isNull-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ValueSpecification-isNull-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Association" name="Association" superClass="Core-Constructs-Classifier Core-Constructs-Relationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-_ownedComment.0" annotatedElement="Core-Constructs-Association">
<body>An association describes a set of tuples whose values refer to typed instances. An instance of an association is called a link.A link is a tuple with one value for each end of the association, where each value is an instance of the type of the end.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Association-association_ends" name="association_ends" constrainedElement="Core-Constructs-Association" namespace="Core-Constructs-Association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-association_ends-_ownedComment.0" annotatedElement="Core-Constructs-Association-association_ends">
<body>Association ends of associations with more than two ends must be owned by the association.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Association-association_ends-_specification">
<language>OCL</language>
<body>if memberEnd->size() > 2 then ownedEnd->includesAll(memberEnd)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Association-binary_associations" name="binary_associations" constrainedElement="Core-Constructs-Association" namespace="Core-Constructs-Association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-binary_associations-_ownedComment.0" annotatedElement="Core-Constructs-Association-binary_associations">
<body>Only binary associations can be aggregations.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Association-binary_associations-_specification">
<language>OCL</language>
<body>self.memberEnd->exists(isComposite) implies self.memberEnd->size() = 2</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Association-specialized_end_number" name="specialized_end_number" constrainedElement="Core-Constructs-Association" namespace="Core-Constructs-Association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-specialized_end_number-_ownedComment.0" annotatedElement="Core-Constructs-Association-specialized_end_number">
<body>An association specializing another association has the same number of ends as the other association.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Association-specialized_end_number-_specification">
<language>OCL</language>
<body>parents()->select(oclIsKindOf(Association)).oclAsType(Association)->forAll(p | p.memberEnd->size() = self.memberEnd->size())</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Association-specialized_end_types" name="specialized_end_types" constrainedElement="Core-Constructs-Association" namespace="Core-Constructs-Association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-specialized_end_types-_ownedComment.0" annotatedElement="Core-Constructs-Association-specialized_end_types">
<body>When an association specializes another association, every end of the specific association corresponds to an end of the general association, and the specific end reaches the same type or a subtype of the more general end.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Association-specialized_end_types-_specification">
<language>OCL</language>
<body>Sequence{1..self.memberEnd->size()}->&#xD;
forAll(i | self.general->select(oclIsKindOf(Association)).oclAsType(Association)->&#xD;
forAll(ga |self.memberEnd->at(i).type.conformsTo(ga.memberEnd->at(i).type)))</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Association-isDerived" name="isDerived" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-isDerived-_ownedComment.0" annotatedElement="Core-Constructs-Association-isDerived">
<body>Specifies whether the association is derived from other model elements such as other associations or constraints.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Association-ownedEnd" name="ownedEnd" type="Core-Constructs-Property" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Association-memberEnd Core-Constructs-Classifier-feature Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedEnd_owningAssociation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-ownedEnd-_ownedComment.0" annotatedElement="Core-Constructs-Association-ownedEnd">
<body>The ends that are owned by the association itself.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Association-endType" name="endType" type="Core-Constructs-Type" upper="*" isDerived="true" subsettedProperty="Core-Constructs-Relationship-relatedElement" association="Core-Constructs-A_endType_association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-endType-_ownedComment.0" annotatedElement="Core-Constructs-Association-endType">
<body>References the classifiers that are used as types of the ends of the association.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Association-memberEnd" name="memberEnd" type="Core-Constructs-Property" isOrdered="true" lower="2" upper="*" subsettedProperty="Core-Constructs-Namespace-member" association="Core-Constructs-A_memberEnd_association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-memberEnd-_ownedComment.0" annotatedElement="Core-Constructs-Association-memberEnd">
<body>Each end represents participation of instances of the classifier connected to the end in links of the association.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Association-navigableOwnedEnd" name="navigableOwnedEnd" type="Core-Constructs-Property" lower="0" upper="*" subsettedProperty="Core-Constructs-Association-ownedEnd" association="Core-Constructs-A_navigableOwnedEnd_association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-navigableOwnedEnd-_ownedComment.0" annotatedElement="Core-Constructs-Association-navigableOwnedEnd">
<body>The navigable ends that are owned by the association itself.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Association-endType.1" name="endType" bodyCondition="Core-Constructs-Association-endType.1-spec" class="Core-Constructs-Association" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Association-endType.1-_ownedComment.0" annotatedElement="Core-Constructs-Association-endType.1">
<body>endType is derived from the types of the member ends.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Association-endType.1-spec" name="spec" constrainedElement="Core-Constructs-Association-endType.1 Core-Constructs-Association-endType" namespace="Core-Constructs-Association-endType.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Association-endType.1-spec-_specification">
<language>OCL</language>
<body>self.memberEnd->collect(e | e.type)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Association-endType.1-_ownedParameter.0" type="Core-Constructs-Type" isOrdered="true" lower="0" upper="*" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Class" name="Class" superClass="Core-Constructs-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Class-_ownedComment.0" annotatedElement="Core-Constructs-Class">
<body>A class describes a set of objects that share the same specifications of features, constraints, and semantics.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Class-isAbstract" name="isAbstract" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Class-isAbstract-_ownedComment.0" annotatedElement="Core-Constructs-Class-isAbstract">
<body>True when a class is abstract.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Class-ownedAttribute" name="ownedAttribute" type="Core-Constructs-Property" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Classifier-attribute Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedAttribute_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Class-ownedAttribute-_ownedComment.0" annotatedElement="Core-Constructs-Class-ownedAttribute">
<body>The attributes (i.e. the properties) owned by the class.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Class-ownedOperation" name="ownedOperation" type="Core-Constructs-Operation" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Classifier-feature Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedOperation_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Class-ownedOperation-_ownedComment.0" annotatedElement="Core-Constructs-Class-ownedOperation">
<body>The operations owned by the class.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Class-superClass" name="superClass" type="Core-Constructs-Class" lower="0" upper="*" redefinedProperty="Core-Constructs-Classifier-general" association="Core-Constructs-A_superClass_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Class-superClass-_ownedComment.0" annotatedElement="Core-Constructs-Class-superClass">
<body>This gives the superclasses of a class.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Class-inherit" name="inherit" bodyCondition="Core-Constructs-Class-inherit-spec" class="Core-Constructs-Class" isQuery="true" redefinedOperation="Core-Constructs-Classifier-inherit">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Class-inherit-_ownedComment.0" annotatedElement="Core-Constructs-Class-inherit">
<body>The inherit operation is overridden to exclude redefined properties.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Class-inherit-spec" name="spec" constrainedElement="Core-Constructs-Class-inherit" namespace="Core-Constructs-Class-inherit">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Class-inherit-spec-_specification">
<language>OCL</language>
<body>inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Class-inherit-_ownedParameter.0" type="Core-Constructs-NamedElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Class-inherit-inhs" name="inhs" type="Core-Constructs-NamedElement" lower="0" upper="*"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Property" name="Property" superClass="Core-Constructs-StructuralFeature">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-_ownedComment.0" annotatedElement="Core-Constructs-Property">
<body>A property is a structural feature of a classifier that characterizes instances of the classifier. A property related by ownedAttribute to a classifier (other than an association) represents an attribute and might also represent an association end. It relates an instance of the class to a value or set of values of the type of the attribute. A property related by memberEnd or its specializations to an association represents an end of the association. The type of the property is the type of the end of the association.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-multiplicity_of_composite" name="multiplicity_of_composite" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-multiplicity_of_composite-_ownedComment.0" annotatedElement="Core-Constructs-Property-multiplicity_of_composite">
<body>A multiplicity of a composite aggregation must not have an upper bound greater than 1.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-multiplicity_of_composite-_specification">
<language>OCL</language>
<body>isComposite implies (upperBound()->isEmpty() or upperBound() &lt;= 1)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-subsetting_context_conforms" name="subsetting_context_conforms" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-subsetting_context_conforms-_ownedComment.0" annotatedElement="Core-Constructs-Property-subsetting_context_conforms">
<body>Subsetting may only occur when the context of the subsetting property conforms to the context of the subsetted property.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-subsetting_context_conforms-_specification">
<language>OCL</language>
<body>self.subsettedProperty->notEmpty() implies
(self.subsettingContext()->notEmpty() and self.subsettingContext()->forAll (sc |
self.subsettedProperty->forAll(sp |
sp.subsettingContext()->exists(c | sc.conformsTo(c)))))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-redefined_property_inherited" name="redefined_property_inherited" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-redefined_property_inherited-_ownedComment.0" annotatedElement="Core-Constructs-Property-redefined_property_inherited">
<body>A redefined property must be inherited from a more general classifier containing the redefining property.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-redefined_property_inherited-_specification">
<language>OCL</language>
<body>if (redefinedProperty->notEmpty()) then
(redefinitionContext->notEmpty() and
redefinedProperty->forAll(rp|
((redefinitionContext->collect(fc|
fc.allParents()))->asSet())->collect(c| c.allFeatures())->asSet()->includes(rp))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-subsetting_rules" name="subsetting_rules" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-subsetting_rules-_ownedComment.0" annotatedElement="Core-Constructs-Property-subsetting_rules">
<body>A subsetting property may strengthen the type of the subsetted property, and its upper bound may be less.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-subsetting_rules-_specification">
<language>OCL</language>
<body>self.subsettedProperty->forAll(sp |
self.type.conformsTo(sp.type) and
((self.upperBound()->notEmpty() and sp.upperBound()->notEmpty()) implies
self.upperBound()&lt;=sp.upperBound() ))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-navigable_readonly" name="navigable_readonly" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-navigable_readonly-_ownedComment.0" annotatedElement="Core-Constructs-Property-navigable_readonly">
<body>Only a navigable property can be marked as readOnly.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-navigable_readonly-_specification">
<language>OCL</language>
<body>isReadOnly implies isNavigable()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-derived_union_is_derived" name="derived_union_is_derived" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-derived_union_is_derived-_ownedComment.0" annotatedElement="Core-Constructs-Property-derived_union_is_derived">
<body>A derived union is derived.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-derived_union_is_derived-_specification">
<language>OCL</language>
<body>isDerivedUnion implies isDerived</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-subsetted_property_names" name="subsetted_property_names" constrainedElement="Core-Constructs-Property" namespace="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-subsetted_property_names-_ownedComment.0" annotatedElement="Core-Constructs-Property-subsetted_property_names">
<body>A property may not subset a property with the same name.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-subsetted_property_names-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-isReadOnly" name="isReadOnly" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isReadOnly-_ownedComment.0" annotatedElement="Core-Constructs-Property-isReadOnly">
<body>If isReadOnly is true, the attribute may not be written to after initialization.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-default" name="default" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-default-_ownedComment.0" annotatedElement="Core-Constructs-Property-default">
<body>Specifies a String that represents a value to be used when no argument is supplied for the Property.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-isComposite" name="isComposite" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isComposite-_ownedComment.0" annotatedElement="Core-Constructs-Property-isComposite">
<body>If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-isDerived" name="isDerived" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isDerived-_ownedComment.0" annotatedElement="Core-Constructs-Property-isDerived">
<body>If isDerived is true, the value of the attribute is derived from information elsewhere.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-isDerivedUnion" name="isDerivedUnion" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isDerivedUnion-_ownedComment.0" annotatedElement="Core-Constructs-Property-isDerivedUnion">
<body>Specifies whether the property is derived as the union of all of the properties that are constrained to subset it.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-class" name="class" type="Core-Constructs-Class" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace Core-Constructs-Feature-featuringClassifier Core-Constructs-A_attribute_classifier-classifier" association="Core-Constructs-A_ownedAttribute_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-class-_ownedComment.0" annotatedElement="Core-Constructs-Property-class">
<body>References the Class that owns the Property.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-owningAssociation" name="owningAssociation" type="Core-Constructs-Association" lower="0" subsettedProperty="Core-Constructs-Property-association Core-Constructs-NamedElement-namespace Core-Constructs-Feature-featuringClassifier" association="Core-Constructs-A_ownedEnd_owningAssociation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-owningAssociation-_ownedComment.0" annotatedElement="Core-Constructs-Property-owningAssociation">
<body>References the owning association of this property, if any.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-redefinedProperty" name="redefinedProperty" type="Core-Constructs-Property" lower="0" upper="*" subsettedProperty="Core-Constructs-RedefinableElement-redefinedElement" association="Core-Constructs-A_redefinedProperty_property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-redefinedProperty-_ownedComment.0" annotatedElement="Core-Constructs-Property-redefinedProperty">
<body>References the properties that are redefined by this property.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-subsettedProperty" name="subsettedProperty" type="Core-Constructs-Property" lower="0" upper="*" association="Core-Constructs-A_subsettedProperty_property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-subsettedProperty-_ownedComment.0" annotatedElement="Core-Constructs-Property-subsettedProperty">
<body>References the properties of which this property is constrained to be a subset.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-opposite" name="opposite" type="Core-Constructs-Property" lower="0" isDerived="true" association="Core-Constructs-A_opposite_property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-opposite-_ownedComment.0" annotatedElement="Core-Constructs-Property-opposite">
<body>In the case where the property is one navigable end of a binary association with both ends navigable, this gives the other end.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-datatype" name="datatype" type="Core-Constructs-DataType" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace Core-Constructs-Feature-featuringClassifier Core-Constructs-A_attribute_classifier-classifier" association="Core-Constructs-A_ownedAttribute_datatype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-datatype-_ownedComment.0" annotatedElement="Core-Constructs-Property-datatype">
<body>The DataType that owns this Property.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Property-association" name="association" type="Core-Constructs-Association" lower="0" association="Core-Constructs-A_memberEnd_association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-association-_ownedComment.0" annotatedElement="Core-Constructs-Property-association">
<body>References the association of which this property is a member, if any.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Property-opposite.1" name="opposite" bodyCondition="Core-Constructs-Property-opposite.1-spec" class="Core-Constructs-Property" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-opposite.1-_ownedComment.0" annotatedElement="Core-Constructs-Property-opposite.1">
<body>If this property is owned by a class, associated with a binary association, and the other end of the association is also owned by a class, then opposite gives the other end.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-opposite.1-spec" name="spec" constrainedElement="Core-Constructs-Property-opposite.1 Core-Constructs-Property-opposite" namespace="Core-Constructs-Property-opposite.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-opposite.1-spec-_specification">
<language>OCL</language>
<body>if owningAssociation->isEmpty() and association.memberEnd->size() = 2
then
let otherEnd = (association.memberEnd - self)->any() in
if otherEnd.owningAssociation->isEmpty() then otherEnd else Set{} endif
else Set {}
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-opposite.1-_ownedParameter.0" type="Core-Constructs-Property" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Property-isConsistentWith" name="isConsistentWith" bodyCondition="Core-Constructs-Property-isConsistentWith-spec" class="Core-Constructs-Property" isQuery="true" precondition="Core-Constructs-Property-isConsistentWith-_ownedRule.0" redefinedOperation="Core-Constructs-RedefinableElement-isConsistentWith">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isConsistentWith-_ownedComment.0" annotatedElement="Core-Constructs-Property-isConsistentWith">
<body>The query isConsistentWith() specifies, for any two Properties in a context in which redefinition is possible, whether redefinition would be logically consistent. A redefining property is consistent with a redefined property if the type of the redefining property conforms to the type of the redefined property, the multiplicity of the redefining property (if specified) is contained in the multiplicity of the redefined property, and the redefining property is derived if the redefined property is derived.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-isConsistentWith-_ownedRule.0" constrainedElement="Core-Constructs-Property-isConsistentWith" namespace="Core-Constructs-Property-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-isConsistentWith-_ownedRule.0-_specification">
<language>OCL</language>
<body>redefinee.isRedefinitionContextValid(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-isConsistentWith-spec" name="spec" constrainedElement="Core-Constructs-Property-isConsistentWith" namespace="Core-Constructs-Property-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-isConsistentWith-spec-_specification">
<language>OCL</language>
<body>redefinee.oclIsKindOf(Property) and
let prop : Property = redefinee.oclAsType(Property) in
(prop.type.conformsTo(self.type) and
((prop.lowerBound()->notEmpty() and self.lowerBound()->notEmpty()) implies prop.lowerBound() >= self.lowerBound()) and
((prop.upperBound()->notEmpty() and self.upperBound()->notEmpty()) implies prop.lowerBound() &lt;= self.lowerBound()) and
(self.isDerived implies prop.isDerived) and
(self.isComposite implies prop.isComposite))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-isConsistentWith-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-isConsistentWith-redefinee" name="redefinee" type="Core-Constructs-RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Property-subsettingContext" name="subsettingContext" bodyCondition="Core-Constructs-Property-subsettingContext-spec" class="Core-Constructs-Property" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-subsettingContext-_ownedComment.0" annotatedElement="Core-Constructs-Property-subsettingContext">
<body>The query subsettingContext() gives the context for subsetting a property. It consists, in the case of an attribute, of the corresponding classifier, and in the case of an association end, all of the classifiers at the other ends.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-subsettingContext-spec" name="spec" constrainedElement="Core-Constructs-Property-subsettingContext" namespace="Core-Constructs-Property-subsettingContext">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-subsettingContext-spec-_specification">
<language>OCL</language>
<body>if association->notEmpty()
then association.endType-type
else if classifier->notEmpty then Set{classifier} else Set{} endif
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-subsettingContext-_ownedParameter.0" type="Core-Constructs-Classifier" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Property-isNavigable" name="isNavigable" bodyCondition="Core-Constructs-Property-isNavigable-spec" class="Core-Constructs-Property" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isNavigable-_ownedComment.0" annotatedElement="Core-Constructs-Property-isNavigable">
<body>The query isNavigable() indicates whether it is possible to navigate across the property.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-isNavigable-spec" name="spec" constrainedElement="Core-Constructs-Property-isNavigable" namespace="Core-Constructs-Property-isNavigable">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-isNavigable-spec-_specification">
<language>OCL</language>
<body>not classifier->isEmpty() or
association.owningAssociation.navigableOwnedEnd->includes(self)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-isNavigable-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Property-isAttribute" name="isAttribute" bodyCondition="Core-Constructs-Property-isAttribute-spec" class="Core-Constructs-Property" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Property-isAttribute-_ownedComment.0" annotatedElement="Core-Constructs-Property-isAttribute">
<body>The query isAttribute() is true if the Property is defined as an attribute of some classifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Property-isAttribute-spec" name="spec" constrainedElement="Core-Constructs-Property-isAttribute" namespace="Core-Constructs-Property-isAttribute">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Property-isAttribute-spec-_specification">
<language>OCL</language>
<body>Classifier->allInstances->exists(c | c.attribute->includes(p))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-isAttribute-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-isAttribute-p" name="p" type="Core-Constructs-Property"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-DataType" name="DataType" superClass="Core-Constructs-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DataType-_ownedComment.0" annotatedElement="Core-Constructs-DataType">
<body>A data type is a type whose instances are identified only by their value. A data type may contain attributes to support the modeling of structured data types.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-DataType-ownedAttribute" name="ownedAttribute" type="Core-Constructs-Property" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Classifier-attribute Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedAttribute_datatype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DataType-ownedAttribute-_ownedComment.0" annotatedElement="Core-Constructs-DataType-ownedAttribute">
<body>The Attributes owned by the DataType.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-DataType-ownedOperation" name="ownedOperation" type="Core-Constructs-Operation" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Classifier-feature Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedOperation_datatype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DataType-ownedOperation-_ownedComment.0" annotatedElement="Core-Constructs-DataType-ownedOperation">
<body>The Operations owned by the DataType.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-DataType-inherit" name="inherit" bodyCondition="Core-Constructs-DataType-inherit-spec" class="Core-Constructs-DataType" isQuery="true" redefinedOperation="Core-Constructs-Classifier-inherit">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-DataType-inherit-_ownedComment.0" annotatedElement="Core-Constructs-DataType-inherit">
<body>The inherit operation is overridden to exclude redefined properties.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-DataType-inherit-spec" name="spec" constrainedElement="Core-Constructs-DataType-inherit" namespace="Core-Constructs-DataType-inherit">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-DataType-inherit-spec-_specification">
<language>OCL</language>
<body>inhs->excluding(inh | ownedMember->select(oclIsKindOf(RedefinableElement))->select(redefinedElement->includes(inh)))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-DataType-inherit-_ownedParameter.0" type="Core-Constructs-NamedElement" lower="0" upper="*" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-DataType-inherit-inhs" name="inhs" type="Core-Constructs-NamedElement" lower="0" upper="*"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Enumeration" name="Enumeration" superClass="Core-Constructs-DataType">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Enumeration-_ownedComment.0" annotatedElement="Core-Constructs-Enumeration">
<body>An enumeration is a data type whose values are enumerated in the model as enumeration literals.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Enumeration-ownedLiteral" name="ownedLiteral" type="Core-Constructs-EnumerationLiteral" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedLiteral_enumeration">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Enumeration-ownedLiteral-_ownedComment.0" annotatedElement="Core-Constructs-Enumeration-ownedLiteral">
<body>The ordered set of literals for this Enumeration.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-EnumerationLiteral" name="EnumerationLiteral" superClass="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-EnumerationLiteral-_ownedComment.0" annotatedElement="Core-Constructs-EnumerationLiteral">
<body>An enumeration literal is a user-defined data value for an enumeration.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-EnumerationLiteral-enumeration" name="enumeration" type="Core-Constructs-Enumeration" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_ownedLiteral_enumeration">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-EnumerationLiteral-enumeration-_ownedComment.0" annotatedElement="Core-Constructs-EnumerationLiteral-enumeration">
<body>The Enumeration that this EnumerationLiteral is a member of.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-PrimitiveType" name="PrimitiveType" superClass="Core-Constructs-DataType">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PrimitiveType-_ownedComment.0" annotatedElement="Core-Constructs-PrimitiveType">
<body>A primitive type defines a predefined data type, without any relevant substructure (i.e., it has no parts in the context of UML). A primitive datatype may have an algebra and operations defined outside of UML, for example, mathematically.</body>
</ownedComment>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Constraint" name="Constraint" superClass="Core-Constructs-PackageableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Constraint-_ownedComment.0" annotatedElement="Core-Constructs-Constraint">
<body>A constraint is a condition or restriction expressed in natural language text or in a machine readable language for the purpose of declaring some of the semantics of an element.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Constraint-not_apply_to_self" name="not_apply_to_self" constrainedElement="Core-Constructs-Constraint" namespace="Core-Constructs-Constraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Constraint-not_apply_to_self-_ownedComment.0" annotatedElement="Core-Constructs-Constraint-not_apply_to_self">
<body>A constraint cannot be applied to itself.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Constraint-not_apply_to_self-_specification">
<language>OCL</language>
<body>not constrainedElement->includes(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Constraint-value_specification_boolean" name="value_specification_boolean" constrainedElement="Core-Constructs-Constraint" namespace="Core-Constructs-Constraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Constraint-value_specification_boolean-_ownedComment.0" annotatedElement="Core-Constructs-Constraint-value_specification_boolean">
<body>The value specification for a constraint must evaluate to a Boolean value.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Constraint-value_specification_boolean-_specification">
<language>OCL</language>
<body>self.specification.booleanValue().oclIsKindOf(Boolean)</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Constraint-constrainedElement" name="constrainedElement" type="Core-Constructs-Element" isOrdered="true" lower="0" upper="*" association="Core-Constructs-A_constrainedElement_constraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Constraint-constrainedElement-_ownedComment.0" annotatedElement="Core-Constructs-Constraint-constrainedElement">
<body>The ordered set of Elements referenced by this Constraint.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Constraint-specification" name="specification" type="Core-Constructs-ValueSpecification" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Core-Constructs-A_specification_owningConstraint">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Constraint-specification-_ownedComment.0" annotatedElement="Core-Constructs-Constraint-specification">
<body>A condition that must be true when evaluated in order for the constraint to be satisfied.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Constraint-context" name="context" type="Core-Constructs-Namespace" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_ownedRule_context"/>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-OpaqueExpression" name="OpaqueExpression" superClass="Core-Constructs-ValueSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-OpaqueExpression-_ownedComment.0" annotatedElement="Core-Constructs-OpaqueExpression">
<body>An opaque expression is an uninterpreted textual statement that denotes a (possibly empty) set of values when evaluated in a context.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-OpaqueExpression-language_body_size" name="language_body_size" constrainedElement="Core-Constructs-OpaqueExpression" namespace="Core-Constructs-OpaqueExpression">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-OpaqueExpression-language_body_size-_ownedComment.0" annotatedElement="Core-Constructs-OpaqueExpression-language_body_size">
<body>If the language attribute is not empty, then the size of the body and language arrays must be the same.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-OpaqueExpression-language_body_size-_specification">
<language>OCL</language>
<body>language->notEmpty() implies (body->size() = language->size())</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-OpaqueExpression-body" name="body" type="Core-PrimitiveTypes-String" isOrdered="true" isUnique="false" lower="0" upper="*" isComposite="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-OpaqueExpression-body-_ownedComment.0" annotatedElement="Core-Constructs-OpaqueExpression-body">
<body>The text of the expression, possibly in multiple languages.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-OpaqueExpression-language" name="language" type="Core-PrimitiveTypes-String" isOrdered="true" lower="0" upper="*" isComposite="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-OpaqueExpression-language-_ownedComment.0" annotatedElement="Core-Constructs-OpaqueExpression-language">
<body>Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Operation" name="Operation" superClass="Core-Constructs-BehavioralFeature">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-_ownedComment.0" annotatedElement="Core-Constructs-Operation">
<body>An operation is a behavioral feature of a classifier that specifies the name, type, parameters, and constraints for invoking an associated behavior.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-only_body_for_query" name="only_body_for_query" constrainedElement="Core-Constructs-Operation" namespace="Core-Constructs-Operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-only_body_for_query-_ownedComment.0" annotatedElement="Core-Constructs-Operation-only_body_for_query">
<body>A bodyCondition can only be specified for a query operation.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-only_body_for_query-_specification">
<language>OCL</language>
<body>bodyCondition->notEmpty() implies isQuery</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-at_most_one_return" name="at_most_one_return" constrainedElement="Core-Constructs-Operation" namespace="Core-Constructs-Operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-at_most_one_return-_ownedComment.0" annotatedElement="Core-Constructs-Operation-at_most_one_return">
<body>An operation can have at most one return parameter; i.e., an owned parameter with the direction set to 'return'</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-at_most_one_return-_specification">
<language>OCL</language>
<body>self.ownedParameter->select(par | par.direction = #return)->size() &lt;= 1</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-isQuery" name="isQuery" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-isQuery-_ownedComment.0" annotatedElement="Core-Constructs-Operation-isQuery">
<body>Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false).</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-isOrdered" name="isOrdered" type="Core-PrimitiveTypes-Boolean" default="false" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-isOrdered-_ownedComment.0" annotatedElement="Core-Constructs-Operation-isOrdered">
<body>This information is derived from the return result for this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-isUnique" name="isUnique" type="Core-PrimitiveTypes-Boolean" default="true" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-isUnique-_ownedComment.0" annotatedElement="Core-Constructs-Operation-isUnique">
<body>This information is derived from the return result for this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-lower" name="lower" type="Core-PrimitiveTypes-Integer" lower="0" default="1" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-lower-_ownedComment.0" annotatedElement="Core-Constructs-Operation-lower">
<body>This information is derived from the return result for this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-upper" name="upper" type="Core-PrimitiveTypes-UnlimitedNatural" lower="0" default="1" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-upper-_ownedComment.0" annotatedElement="Core-Constructs-Operation-upper">
<body>This information is derived from the return result for this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-class" name="class" type="Core-Constructs-Class" lower="0" subsettedProperty="Core-Constructs-RedefinableElement-redefinitionContext Core-Constructs-NamedElement-namespace Core-Constructs-Feature-featuringClassifier" association="Core-Constructs-A_ownedOperation_class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-class-_ownedComment.0" annotatedElement="Core-Constructs-Operation-class">
<body>The class that owns the operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-datatype" name="datatype" type="Core-Constructs-DataType" lower="0" subsettedProperty="Core-Constructs-RedefinableElement-redefinitionContext Core-Constructs-NamedElement-namespace Core-Constructs-Feature-featuringClassifier" association="Core-Constructs-A_ownedOperation_datatype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-datatype-_ownedComment.0" annotatedElement="Core-Constructs-Operation-datatype">
<body>The DataType that owns this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-raisedException" name="raisedException" type="Core-Constructs-Type" lower="0" upper="*" redefinedProperty="Core-Constructs-BehavioralFeature-raisedException" association="Core-Constructs-A_raisedException_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-raisedException-_ownedComment.0" annotatedElement="Core-Constructs-Operation-raisedException">
<body>References the Types representing exceptions that may be raised during an invocation of this operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-redefinedOperation" name="redefinedOperation" type="Core-Constructs-Operation" lower="0" upper="*" subsettedProperty="Core-Constructs-RedefinableElement-redefinedElement" association="Core-Constructs-A_redefinedOperation_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-redefinedOperation-_ownedComment.0" annotatedElement="Core-Constructs-Operation-redefinedOperation">
<body>References the Operations that are redefined by this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-type" name="type" type="Core-Constructs-Type" lower="0" isDerived="true" association="Core-Constructs-A_type_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-type-_ownedComment.0" annotatedElement="Core-Constructs-Operation-type">
<body>This information is derived from the return result for this Operation.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-ownedParameter" name="ownedParameter" type="Core-Constructs-Parameter" isOrdered="true" lower="0" upper="*" isComposite="true" redefinedProperty="Core-Constructs-BehavioralFeature-ownedParameter" association="Core-Constructs-A_ownedParameter_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-ownedParameter-_ownedComment.0" annotatedElement="Core-Constructs-Operation-ownedParameter">
<body>Specifies the ordered set of formal parameters of this BehavioralFeature.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-precondition" name="precondition" type="Core-Constructs-Constraint" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedRule" association="Core-Constructs-A_precondition_preContext"/>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-postcondition" name="postcondition" type="Core-Constructs-Constraint" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedRule" association="Core-Constructs-A_postcondition_postContext"/>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Operation-bodyCondition" name="bodyCondition" type="Core-Constructs-Constraint" lower="0" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedRule" association="Core-Constructs-A_bodyCondition_bodyContext"/>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-isOrdered.1" name="isOrdered" bodyCondition="Core-Constructs-Operation-isOrdered.1-spec" class="Core-Constructs-Operation" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-isOrdered.1-_ownedComment.0" annotatedElement="Core-Constructs-Operation-isOrdered.1">
<body>If this operation has a return parameter, isOrdered equals the value of isOrdered for that parameter. Otherwise isOrdered is false.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-isOrdered.1-spec" name="spec" constrainedElement="Core-Constructs-Operation-isOrdered.1 Core-Constructs-Operation-isOrdered" namespace="Core-Constructs-Operation-isOrdered.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-isOrdered.1-spec-_specification">
<language>OCL</language>
<body>if returnResult->size() = 1 then returnResult->any().isOrdered else false endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-isOrdered.1-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-isUnique.1" name="isUnique" bodyCondition="Core-Constructs-Operation-isUnique.1-spec" class="Core-Constructs-Operation" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-isUnique.1-_ownedComment.0" annotatedElement="Core-Constructs-Operation-isUnique.1">
<body>If this operation has a return parameter, isUnique equals the value of isUnique for that parameter. Otherwise isUnique is true.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-isUnique.1-spec" name="spec" constrainedElement="Core-Constructs-Operation-isUnique.1 Core-Constructs-Operation-isUnique" namespace="Core-Constructs-Operation-isUnique.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-isUnique.1-spec-_specification">
<language>OCL</language>
<body>if returnResult->size() = 1 then returnResult->any().isUnique else true endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-isUnique.1-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-lower.1" name="lower" bodyCondition="Core-Constructs-Operation-lower.1-spec" class="Core-Constructs-Operation" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-lower.1-_ownedComment.0" annotatedElement="Core-Constructs-Operation-lower.1">
<body>If this operation has a return parameter, lower equals the value of lower for that parameter. Otherwise lower is not defined.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-lower.1-spec" name="spec" constrainedElement="Core-Constructs-Operation-lower.1 Core-Constructs-Operation-lower" namespace="Core-Constructs-Operation-lower.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-lower.1-spec-_specification">
<language>OCL</language>
<body>if returnResult->size() = 1 then returnResult->any().lower else Set{} endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-lower.1-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-upper.1" name="upper" bodyCondition="Core-Constructs-Operation-upper.1-spec" class="Core-Constructs-Operation" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-upper.1-_ownedComment.0" annotatedElement="Core-Constructs-Operation-upper.1">
<body>If this operation has a return parameter, upper equals the value of upper for that parameter. Otherwise upper is not defined.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-upper.1-spec" name="spec" constrainedElement="Core-Constructs-Operation-upper.1 Core-Constructs-Operation-upper" namespace="Core-Constructs-Operation-upper.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-upper.1-spec-_specification">
<language>OCL</language>
<body>if returnResult->size() = 1 then returnResult->any().upper else Set{} endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-upper.1-_ownedParameter.0" type="Core-PrimitiveTypes-UnlimitedNatural" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-type.1" name="type" bodyCondition="Core-Constructs-Operation-type.1-spec" class="Core-Constructs-Operation" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-type.1-_ownedComment.0" annotatedElement="Core-Constructs-Operation-type.1">
<body>If this operation has a return parameter, type equals the value of type for that parameter. Otherwise type is not defined.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-type.1-spec" name="spec" constrainedElement="Core-Constructs-Operation-type.1 Core-Constructs-Operation-type" namespace="Core-Constructs-Operation-type.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-type.1-spec-_specification">
<language>OCL</language>
<body>if returnResult->size() = 1 then returnResult->any().type else Set{} endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-type.1-_ownedParameter.0" type="Core-Constructs-Type" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-isConsistentWith" name="isConsistentWith" bodyCondition="Core-Constructs-Operation-isConsistentWith-spec" class="Core-Constructs-Operation" isQuery="true" precondition="Core-Constructs-Operation-isConsistentWith-_ownedRule.0" redefinedOperation="Core-Constructs-RedefinableElement-isConsistentWith">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Operation-isConsistentWith-_ownedComment.0" annotatedElement="Core-Constructs-Operation-isConsistentWith">
<body>The query isConsistentWith() specifies, for any two Operations in a context in which redefinition is possible, whether redefinition would be consistent in the sense of maintaining type covariance. Other senses of consistency may be required, for example to determine consistency in the sense of contravariance. Users may define alternative queries under names different from 'isConsistentWith()', as for example, users may define a query named 'isContravariantWith()'.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-isConsistentWith-_ownedRule.0" constrainedElement="Core-Constructs-Operation-isConsistentWith" namespace="Core-Constructs-Operation-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-isConsistentWith-_ownedRule.0-_specification">
<language>OCL</language>
<body>redefinee.isRedefinitionContextValid(self)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-isConsistentWith-spec" name="spec" constrainedElement="Core-Constructs-Operation-isConsistentWith" namespace="Core-Constructs-Operation-isConsistentWith">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-isConsistentWith-spec-_specification">
<language>OCL</language>
<body>(redefinee.oclIsKindOf(Operation) and&#xD;
let op: Operation = redefinee.oclAsType(Operation) in&#xD;
self.ownedParameter.size() = op.ownedParameter.size() and&#xD;
forAll(i | op.ownedParameter[i].type.conformsTo(self.ownedParameter[i].type))&#xD;
)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-isConsistentWith-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-isConsistentWith-redefinee" name="redefinee" type="Core-Constructs-RedefinableElement"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Operation-returnResult" name="returnResult" bodyCondition="Core-Constructs-Operation-returnResult-spec" class="Core-Constructs-Operation" isQuery="true">
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Operation-returnResult-spec" name="spec" constrainedElement="Core-Constructs-Operation-returnResult" namespace="Core-Constructs-Operation-returnResult">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Operation-returnResult-spec-_specification">
<language>OCL</language>
<body>ownedParameter->select (par | par.direction = #return)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Operation-returnResult-_ownedParameter.0" type="Core-Constructs-Parameter" lower="0" upper="*" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Parameter" name="Parameter" superClass="Core-Constructs-TypedElement Core-Constructs-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Parameter-_ownedComment.0" annotatedElement="Core-Constructs-Parameter">
<body>A parameter is a specification of an argument used to pass information into or out of an invocation of a behavioral feature.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Parameter-default" name="default" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Parameter-default-_ownedComment.0" annotatedElement="Core-Constructs-Parameter-default">
<body>Specifies a String that represents a value to be used when no argument is supplied for the Parameter.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Parameter-direction" name="direction" type="Core-Constructs-ParameterDirectionKind" default="in">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Parameter-direction-_ownedComment.0" annotatedElement="Core-Constructs-Parameter-direction">
<body>Indicates whether a parameter is being sent into or out of a behavioral element.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Parameter-operation" name="operation" type="Core-Constructs-Operation" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_ownedParameter_operation">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Parameter-operation-_ownedComment.0" annotatedElement="Core-Constructs-Parameter-operation">
<body>References the Operation owning this parameter.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-BehavioralFeature" name="BehavioralFeature" isAbstract="true" superClass="Core-Constructs-Feature Core-Constructs-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-BehavioralFeature-_ownedComment.0" annotatedElement="Core-Constructs-BehavioralFeature">
<body>A behavioral feature is a feature of a classifier that specifies an aspect of the behavior of its instances.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-BehavioralFeature-ownedParameter" name="ownedParameter" type="Core-Constructs-Parameter" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_ownedParameter_ownerFormalParam">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-BehavioralFeature-ownedParameter-_ownedComment.0" annotatedElement="Core-Constructs-BehavioralFeature-ownedParameter">
<body>Specifies the ordered set of formal parameters of this BehavioralFeature.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-BehavioralFeature-raisedException" name="raisedException" type="Core-Constructs-Type" lower="0" upper="*" association="Core-Constructs-A_raisedException_behavioralFeature">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-BehavioralFeature-raisedException-_ownedComment.0" annotatedElement="Core-Constructs-BehavioralFeature-raisedException">
<body>References the Types representing exceptions that may be raised during an invocation of this feature.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom" name="isDistinguishableFrom" bodyCondition="Core-Constructs-BehavioralFeature-isDistinguishableFrom-spec" class="Core-Constructs-BehavioralFeature" isQuery="true" redefinedOperation="Core-Constructs-NamedElement-isDistinguishableFrom">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom-_ownedComment.0" annotatedElement="Core-Constructs-BehavioralFeature-isDistinguishableFrom">
<body>The query isDistinguishableFrom() determines whether two BehavioralFeatures may coexist in the same Namespace. It specifies that they have to have different signatures.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom-spec" name="spec" constrainedElement="Core-Constructs-BehavioralFeature-isDistinguishableFrom" namespace="Core-Constructs-BehavioralFeature-isDistinguishableFrom">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom-spec-_specification">
<language>OCL</language>
<body>if n.oclIsKindOf(BehavioralFeature)
then
if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()
then Set{}->include(self)->include(n)->isUnique( bf | bf.parameter->collect(type))
else true
endif
else true
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom-n" name="n" type="Core-Constructs-NamedElement"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-BehavioralFeature-isDistinguishableFrom-ns" name="ns" type="Core-Constructs-Namespace"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-ElementImport" name="ElementImport" superClass="Core-Constructs-DirectedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport">
<body>An element import identifies an element in another package, and allows the element to be referenced using its name without a qualifier.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ElementImport-visibility_public_or_private" name="visibility_public_or_private" constrainedElement="Core-Constructs-ElementImport" namespace="Core-Constructs-ElementImport">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-visibility_public_or_private-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-visibility_public_or_private">
<body>The visibility of an ElementImport is either public or private.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ElementImport-visibility_public_or_private-_specification">
<language>OCL</language>
<body>self.visibility = #public or self.visibility = #private</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ElementImport-imported_element_is_public" name="imported_element_is_public" constrainedElement="Core-Constructs-ElementImport" namespace="Core-Constructs-ElementImport">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-imported_element_is_public-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-imported_element_is_public">
<body>An importedElement has either public visibility or no visibility at all.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ElementImport-imported_element_is_public-_specification">
<language>OCL</language>
<body>self.importedElement.visibility.notEmpty() implies self.importedElement.visibility = #public</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-ElementImport-visibility" name="visibility" type="Core-Constructs-VisibilityKind" default="public">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-visibility-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-visibility">
<body>Specifies the visibility of the imported PackageableElement within the importing Package. The default visibility is the same as that of the imported element. If the imported element does not have a visibility, it is possible to add visibility to the element import.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-ElementImport-alias" name="alias" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-alias-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-alias">
<body>Specifies the name that should be added to the namespace of the importing package in lieu of the name of the imported packagable element. The aliased name must not clash with any other member name in the importing package. By default, no alias is used.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-ElementImport-importedElement" name="importedElement" type="Core-Constructs-PackageableElement" subsettedProperty="Core-Constructs-DirectedRelationship-target" association="Core-Constructs-A_importedElement_elementImport">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-importedElement-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-importedElement">
<body>Specifies the PackageableElement whose name is to be added to a Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-ElementImport-importingNamespace" name="importingNamespace" type="Core-Constructs-Namespace" subsettedProperty="Core-Constructs-DirectedRelationship-source Core-Constructs-Element-owner" association="Core-Constructs-A_elementImport_importingNamespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-importingNamespace-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-importingNamespace">
<body>Specifies the Namespace that imports a PackageableElement from another Package.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-ElementImport-getName" name="getName" bodyCondition="Core-Constructs-ElementImport-getName-spec" class="Core-Constructs-ElementImport" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ElementImport-getName-_ownedComment.0" annotatedElement="Core-Constructs-ElementImport-getName">
<body>The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-ElementImport-getName-spec" name="spec" constrainedElement="Core-Constructs-ElementImport-getName" namespace="Core-Constructs-ElementImport-getName">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-ElementImport-getName-spec-_specification">
<language>OCL</language>
<body>if self.alias->notEmpty() then
self.alias
else
self.importedElement.name
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-ElementImport-getName-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Package" name="Package" superClass="Core-Constructs-PackageableElement Core-Constructs-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-_ownedComment.0" annotatedElement="Core-Constructs-Package">
<body>A package is used to group elements, and provides a namespace for the grouped elements.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Package-elements_public_or_private" name="elements_public_or_private" constrainedElement="Core-Constructs-Package" namespace="Core-Constructs-Package">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-elements_public_or_private-_ownedComment.0" annotatedElement="Core-Constructs-Package-elements_public_or_private">
<body>If an element that is owned by a package has visibility, it is public or private.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Package-elements_public_or_private-_specification">
<language>OCL</language>
<body>self.ownedElements->forAll(e | e.visibility->notEmpty() implies e.visbility = #public or e.visibility = #private)</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Package-packagedElement" name="packagedElement" type="Core-Constructs-PackageableElement" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-ownedMember" association="Core-Constructs-A_packagedElement_owningPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-packagedElement-_ownedComment.0" annotatedElement="Core-Constructs-Package-packagedElement">
<body>Specifies the packageable elements that are owned by this Package.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Package-ownedType" name="ownedType" type="Core-Constructs-Type" lower="0" upper="*" isComposite="true" isDerived="true" subsettedProperty="Core-Constructs-Package-packagedElement" association="Core-Constructs-A_ownedType_package">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-ownedType-_ownedComment.0" annotatedElement="Core-Constructs-Package-ownedType">
<body>References the packaged elements that are Types.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Package-nestedPackage" name="nestedPackage" type="Core-Constructs-Package" lower="0" upper="*" isComposite="true" isDerived="true" subsettedProperty="Core-Constructs-Package-packagedElement" association="Core-Constructs-A_nestedPackage_nestingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-nestedPackage-_ownedComment.0" annotatedElement="Core-Constructs-Package-nestedPackage">
<body>References the packaged elements that are Packages.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Package-nestingPackage" name="nestingPackage" type="Core-Constructs-Package" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_nestedPackage_nestingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-nestingPackage-_ownedComment.0" annotatedElement="Core-Constructs-Package-nestingPackage">
<body>References the Package that owns this Package.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Package-packageMerge" name="packageMerge" type="Core-Constructs-PackageMerge" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Core-Constructs-A_packageMerge_receivingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-packageMerge-_ownedComment.0" annotatedElement="Core-Constructs-Package-packageMerge">
<body>References the PackageMerges that are owned by this Package.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Package-mustBeOwned" name="mustBeOwned" bodyCondition="Core-Constructs-Package-mustBeOwned-spec" class="Core-Constructs-Package" isQuery="true" redefinedOperation="Core-Constructs-Element-mustBeOwned">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-mustBeOwned-_ownedComment.0" annotatedElement="Core-Constructs-Package-mustBeOwned">
<body>The query mustBeOwned() indicates whether elements of this type must have an owner.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Package-mustBeOwned-spec" name="spec" constrainedElement="Core-Constructs-Package-mustBeOwned" namespace="Core-Constructs-Package-mustBeOwned">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Package-mustBeOwned-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Package-mustBeOwned-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Package-visibleMembers" name="visibleMembers" bodyCondition="Core-Constructs-Package-visibleMembers-spec" class="Core-Constructs-Package" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-visibleMembers-_ownedComment.0" annotatedElement="Core-Constructs-Package-visibleMembers">
<body>The query visibleMembers() defines which members of a Package can be accessed outside it.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Package-visibleMembers-spec" name="spec" constrainedElement="Core-Constructs-Package-visibleMembers" namespace="Core-Constructs-Package-visibleMembers">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Package-visibleMembers-spec-_specification">
<language>OCL</language>
<body>member->select( m | self.makesVisible(m))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Package-visibleMembers-_ownedParameter.0" type="Core-Constructs-PackageableElement" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Package-makesVisible" name="makesVisible" bodyCondition="Core-Constructs-Package-makesVisible-spec" class="Core-Constructs-Package" isQuery="true" precondition="Core-Constructs-Package-makesVisible-_ownedRule.0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Package-makesVisible-_ownedComment.0" annotatedElement="Core-Constructs-Package-makesVisible">
<body>The query makesVisible() defines whether a Package makes an element visible outside itself. Elements with no visibility and elements with public visibility are made visible.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Package-makesVisible-_ownedRule.0" constrainedElement="Core-Constructs-Package-makesVisible" namespace="Core-Constructs-Package-makesVisible">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Package-makesVisible-_ownedRule.0-_specification">
<language>OCL</language>
<body>self.member->includes(el)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Package-makesVisible-spec" name="spec" constrainedElement="Core-Constructs-Package-makesVisible" namespace="Core-Constructs-Package-makesVisible">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Package-makesVisible-spec-_specification">
<language>OCL</language>
<body>(ownedMember->includes(el)) or
(elementImport->
select(ei|ei.visibility = #public)->
collect(ei|ei.importedElement)->includes(el)) or
(packageImport->
select(pi|pi.visibility = #public)->
collect(pi|
pi.importedPackage.member->includes(el))->notEmpty())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Package-makesVisible-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Package-makesVisible-el" name="el" type="Core-Constructs-NamedElement"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-PackageImport" name="PackageImport" superClass="Core-Constructs-DirectedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageImport-_ownedComment.0" annotatedElement="Core-Constructs-PackageImport">
<body>A package import is a relationship that allows the use of unqualified names to refer to package members from other namespaces.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-PackageImport-public_or_private" name="public_or_private" constrainedElement="Core-Constructs-PackageImport" namespace="Core-Constructs-PackageImport">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageImport-public_or_private-_ownedComment.0" annotatedElement="Core-Constructs-PackageImport-public_or_private">
<body>The visibility of a PackageImport is either public or private.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-PackageImport-public_or_private-_specification">
<language>OCL</language>
<body>self.visibility = #public or self.visibility = #private</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-PackageImport-visibility" name="visibility" type="Core-Constructs-VisibilityKind" default="public">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageImport-visibility-_ownedComment.0" annotatedElement="Core-Constructs-PackageImport-visibility">
<body>Specifies the visibility of the imported PackageableElements within the importing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-PackageImport-importedPackage" name="importedPackage" type="Core-Constructs-Package" subsettedProperty="Core-Constructs-DirectedRelationship-target" association="Core-Constructs-A_importedPackage_packageImport">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageImport-importedPackage-_ownedComment.0" annotatedElement="Core-Constructs-PackageImport-importedPackage">
<body>Specifies the Package whose members are imported into a Namespace.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-PackageImport-importingNamespace" name="importingNamespace" type="Core-Constructs-Namespace" subsettedProperty="Core-Constructs-DirectedRelationship-source Core-Constructs-Element-owner" association="Core-Constructs-A_packageImport_importingNamespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageImport-importingNamespace-_ownedComment.0" annotatedElement="Core-Constructs-PackageImport-importingNamespace">
<body>Specifies the Namespace that imports the members from a Package.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-PackageMerge" name="PackageMerge" superClass="Core-Constructs-DirectedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageMerge-_ownedComment.0" annotatedElement="Core-Constructs-PackageMerge">
<body>A package merge defines how the contents of one package are extended by the contents of another package.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-PackageMerge-receivingPackage" name="receivingPackage" type="Core-Constructs-Package" subsettedProperty="Core-Constructs-DirectedRelationship-source Core-Constructs-Element-owner" association="Core-Constructs-A_packageMerge_receivingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageMerge-receivingPackage-_ownedComment.0" annotatedElement="Core-Constructs-PackageMerge-receivingPackage">
<body>References the Package that is being extended with the contents of the merged package of the PackageMerge.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-PackageMerge-mergedPackage" name="mergedPackage" type="Core-Constructs-Package" subsettedProperty="Core-Constructs-DirectedRelationship-target" association="Core-Constructs-A_mergedPackage_packageMerge">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-PackageMerge-mergedPackage-_ownedComment.0" annotatedElement="Core-Constructs-PackageMerge-mergedPackage">
<body>References the Package that is to be merged with the receiving package of the PackageMerge.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Type" name="Type" isAbstract="true" superClass="Core-Constructs-NamedElement Core-Constructs-PackageableElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Type-_ownedComment.0" annotatedElement="Core-Constructs-Type">
<body>A type is a named element that is used as the type for a typed element. A type can be contained in a package.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Type-package" name="package" type="Core-Constructs-Package" lower="0" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_ownedType_package">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Type-package-_ownedComment.0" annotatedElement="Core-Constructs-Type-package">
<body>Specifies the owning package of this classifier, if any.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Type-conformsTo" name="conformsTo" bodyCondition="Core-Constructs-Type-conformsTo-spec" class="Core-Constructs-Type" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Type-conformsTo-_ownedComment.0" annotatedElement="Core-Constructs-Type-conformsTo">
<body>The query conformsTo() gives true for a type that conforms to another. By default, two types do not conform to each other. This query is intended to be redefined for specific conformance situations.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-Type-conformsTo-spec" name="spec" constrainedElement="Core-Constructs-Type-conformsTo" namespace="Core-Constructs-Type-conformsTo">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-Type-conformsTo-spec-_specification">
<language>OCL</language>
<body>false</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Type-conformsTo-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Type-conformsTo-other" name="other" type="Core-Constructs-Type"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-NamedElement" name="NamedElement" isAbstract="true" superClass="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement">
<body>A named element is an element in a model that may have a name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-has_no_qualified_name" name="has_no_qualified_name" constrainedElement="Core-Constructs-NamedElement" namespace="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-has_no_qualified_name-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-has_no_qualified_name">
<body>If there is no name, or one of the containing namespaces has no name, there is no qualified name.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-has_no_qualified_name-_specification">
<language>OCL</language>
<body>(self.name->isEmpty() or self.allNamespaces()->select(ns | ns.name->isEmpty())->notEmpty())&#xD;
implies self.qualifiedName->isEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-has_qualified_name" name="has_qualified_name" constrainedElement="Core-Constructs-NamedElement" namespace="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-has_qualified_name-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-has_qualified_name">
<body>When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-has_qualified_name-_specification">
<language>OCL</language>
<body>(self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()) implies
self.qualifiedName = self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-visibility_needs_ownership" name="visibility_needs_ownership" constrainedElement="Core-Constructs-NamedElement" namespace="Core-Constructs-NamedElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-visibility_needs_ownership-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-visibility_needs_ownership">
<body>If a NamedElement is not owned by a Namespace, it does not have a visibility.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-visibility_needs_ownership-_specification">
<language>OCL</language>
<body>namespace->isEmpty() implies visibility->isEmpty()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-NamedElement-name" name="name" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-name-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-name">
<body>The name of the NamedElement.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-NamedElement-visibility" name="visibility" type="Core-Constructs-VisibilityKind" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-visibility-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-visibility">
<body>Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-NamedElement-namespace" name="namespace" type="Core-Constructs-Namespace" lower="0" isDerived="true" isDerivedUnion="true" subsettedProperty="Core-Constructs-Element-owner" association="Core-Constructs-A_ownedMember_namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-namespace-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-namespace">
<body>Specifies the namespace that owns the NamedElement.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-NamedElement-qualifiedName" name="qualifiedName" type="Core-PrimitiveTypes-String" lower="0" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-qualifiedName-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-qualifiedName">
<body>A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-NamedElement-allNamespaces" name="allNamespaces" bodyCondition="Core-Constructs-NamedElement-allNamespaces-spec" class="Core-Constructs-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-allNamespaces-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-allNamespaces">
<body>The query allNamespaces() gives the sequence of namespaces in which the NamedElement is nested, working outwards.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-allNamespaces-spec" name="spec" constrainedElement="Core-Constructs-NamedElement-allNamespaces" namespace="Core-Constructs-NamedElement-allNamespaces">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-allNamespaces-spec-_specification">
<language>OCL</language>
<body>if self.namespace->isEmpty()
then Sequence{}
else self.namespace.allNamespaces()->prepend(self.namespace)
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-NamedElement-allNamespaces-_ownedParameter.0" type="Core-Constructs-Namespace" isOrdered="true" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom" name="isDistinguishableFrom" bodyCondition="Core-Constructs-NamedElement-isDistinguishableFrom-spec" class="Core-Constructs-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-isDistinguishableFrom">
<body>The query isDistinguishableFrom() determines whether two NamedElements may logically co-exist within a Namespace. By default, two named elements are distinguishable if (a) they have unrelated types or (b) they have related types but different names.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom-spec" name="spec" constrainedElement="Core-Constructs-NamedElement-isDistinguishableFrom" namespace="Core-Constructs-NamedElement-isDistinguishableFrom">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom-spec-_specification">
<language>OCL</language>
<body>if self.oclIsKindOf(n.oclType) or n.oclIsKindOf(self.oclType)
then ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty()
else true
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom-n" name="n" type="Core-Constructs-NamedElement"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-NamedElement-isDistinguishableFrom-ns" name="ns" type="Core-Constructs-Namespace"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-NamedElement-separator" name="separator" bodyCondition="Core-Constructs-NamedElement-separator-spec" class="Core-Constructs-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-separator-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-separator">
<body>The query separator() gives the string that is used to separate names when constructing a qualified name.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-separator-spec" name="spec" constrainedElement="Core-Constructs-NamedElement-separator" namespace="Core-Constructs-NamedElement-separator">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-separator-spec-_specification">
<language>OCL</language>
<body>'::'</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-NamedElement-separator-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-NamedElement-qualifiedName.1" name="qualifiedName" bodyCondition="Core-Constructs-NamedElement-qualifiedName.1-spec" class="Core-Constructs-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-NamedElement-qualifiedName.1-_ownedComment.0" annotatedElement="Core-Constructs-NamedElement-qualifiedName.1">
<body>When there is a name, and all of the containing namespaces have a name, the qualified name is constructed from the names of the containing namespaces.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-NamedElement-qualifiedName.1-spec" name="spec" constrainedElement="Core-Constructs-NamedElement-qualifiedName.1" namespace="Core-Constructs-NamedElement-qualifiedName.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-NamedElement-qualifiedName.1-spec-_specification">
<language>OCL</language>
<body>if self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()
then
self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))
else
Set{}
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-NamedElement-qualifiedName.1-_ownedParameter.0" type="Core-PrimitiveTypes-String" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Expression" name="Expression" superClass="Core-Constructs-ValueSpecification">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Expression-_ownedComment.0" annotatedElement="Core-Constructs-Expression">
<body>An expression is a structured tree of symbols that denotes a (possibly empty) set of values when evaluated in a context.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Expression-operand" name="operand" type="Core-Constructs-ValueSpecification" isOrdered="true" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Core-Constructs-A_operand_expression">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Expression-operand-_ownedComment.0" annotatedElement="Core-Constructs-Expression-operand">
<body>Specifies a sequence of operands.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Core-Constructs-Comment" name="Comment" superClass="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Comment-_ownedComment.0" annotatedElement="Core-Constructs-Comment">
<body>A comment is a textual annotation that can be attached to a set of elements.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Comment-body" name="body" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Comment-body-_ownedComment.0" annotatedElement="Core-Constructs-Comment-body">
<body>Specifies a string that is the comment.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Comment-annotatedElement" name="annotatedElement" type="Core-Constructs-Element" lower="0" upper="*" association="Core-Constructs-A_annotatedElement_comment">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-Comment-annotatedElement-_ownedComment.0" annotatedElement="Core-Constructs-Comment-annotatedElement">
<body>References the Element(s) being commented.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Enumeration" xmi:id="Core-Constructs-ParameterDirectionKind" name="ParameterDirectionKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ParameterDirectionKind-_ownedComment.0" annotatedElement="Core-Constructs-ParameterDirectionKind">
<body>Parameter direction kind is an enumeration type that defines literals used to specify direction of parameters.</body>
</ownedComment>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-ParameterDirectionKind-in" name="in" classifier="#Core-Constructs-ParameterDirectionKind" enumeration="Core-Constructs-ParameterDirectionKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ParameterDirectionKind-in-_ownedComment.0" annotatedElement="Core-Constructs-ParameterDirectionKind-in">
<body>Indicates that parameter values are passed into the behavioral element by the caller.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-ParameterDirectionKind-inout" name="inout" classifier="#Core-Constructs-ParameterDirectionKind" enumeration="Core-Constructs-ParameterDirectionKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ParameterDirectionKind-inout-_ownedComment.0" annotatedElement="Core-Constructs-ParameterDirectionKind-inout">
<body>Indicates that parameter values are passed into a behavioral element by the caller and then back out to the caller from the behavioral element.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-ParameterDirectionKind-out" name="out" classifier="#Core-Constructs-ParameterDirectionKind" enumeration="Core-Constructs-ParameterDirectionKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ParameterDirectionKind-out-_ownedComment.0" annotatedElement="Core-Constructs-ParameterDirectionKind-out">
<body>Indicates that parameter values are passed from a behavioral element out to the caller.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-ParameterDirectionKind-return" name="return" classifier="#Core-Constructs-ParameterDirectionKind" enumeration="Core-Constructs-ParameterDirectionKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-ParameterDirectionKind-return-_ownedComment.0" annotatedElement="Core-Constructs-ParameterDirectionKind-return">
<body>Indicates that parameter values are passed as return values from a behavioral element back to the caller.</body>
</ownedComment>
</ownedLiteral>
</ownedMember>
<ownedMember xmi:type="cmof:Enumeration" xmi:id="Core-Constructs-VisibilityKind" name="VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-VisibilityKind-_ownedComment.0" annotatedElement="Core-Constructs-VisibilityKind">
<body>VisibilityKind is an enumeration type that defines literals to determine the visibility of elements in a model.</body>
</ownedComment>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-VisibilityKind-bestVisibility" name="bestVisibility" bodyCondition="Core-Constructs-VisibilityKind-bestVisibility-spec" datatype="Core-Constructs-VisibilityKind" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-VisibilityKind-bestVisibility-_ownedComment.0" annotatedElement="Core-Constructs-VisibilityKind-bestVisibility">
<body>The query bestVisibility() examines a set of VisibilityKinds, and returns public as the preferred visibility.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Core-Constructs-VisibilityKind-bestVisibility-spec" name="spec" constrainedElement="Core-Constructs-VisibilityKind-bestVisibility" namespace="Core-Constructs-VisibilityKind-bestVisibility">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-VisibilityKind-bestVisibility-spec-_specification">
<language>OCL</language>
<body>if vis->includes(#public) then #public else #private endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-VisibilityKind-bestVisibility-_ownedParameter.0" type="Core-Constructs-VisibilityKind" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-VisibilityKind-bestVisibility-vis" name="vis" type="Core-Constructs-VisibilityKind" lower="0" upper="*"/>
</ownedOperation>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-VisibilityKind-public" name="public" classifier="#Core-Constructs-VisibilityKind" enumeration="Core-Constructs-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-VisibilityKind-public-_ownedComment.0" annotatedElement="Core-Constructs-VisibilityKind-public">
<body>A public element is visible to all elements that can access the contents of the namespace that owns it.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-VisibilityKind-private" name="private" classifier="#Core-Constructs-VisibilityKind" enumeration="Core-Constructs-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-VisibilityKind-private-_ownedComment.0" annotatedElement="Core-Constructs-VisibilityKind-private">
<body>A private element is only visible inside the namespace that owns it.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-VisibilityKind-protected" name="protected" classifier="#Core-Constructs-VisibilityKind" enumeration="Core-Constructs-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-VisibilityKind-protected-_ownedComment.0" annotatedElement="Core-Constructs-VisibilityKind-protected">
<body>A protected element is visible to elements that have a generalization relationship to the namespace that owns it.</body>
</ownedComment>
</ownedLiteral>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Constructs-VisibilityKind-package" name="package" classifier="#Core-Constructs-VisibilityKind" enumeration="Core-Constructs-VisibilityKind">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-VisibilityKind-package-_ownedComment.0" annotatedElement="Core-Constructs-VisibilityKind-package">
<body>A package element is owned by a namespace that is not a package, and is visible to elements that are in the same package as its owning namespace. Only named elements that are not owned by packages can be marked as having package visibility. Any element marked as having package visibility is visible to all elements within the nearest enclosing package (given that other owning elements have proper visibility). Outside the nearest enclosing package, an element marked as having package visibility is not visible.</body>
</ownedComment>
</ownedLiteral>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_type_typedElement" name="A_type_typedElement" memberEnd="Core-Constructs-TypedElement-type Core-Constructs-A_type_typedElement-typedElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_type_typedElement-typedElement" name="typedElement" type="Core-Constructs-TypedElement" lower="0" upper="*" owningAssociation="Core-Constructs-A_type_typedElement" association="Core-Constructs-A_type_typedElement"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedAttribute_class" name="A_ownedAttribute_class" memberEnd="Core-Constructs-Class-ownedAttribute Core-Constructs-Property-class"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedOperation_class" name="A_ownedOperation_class" memberEnd="Core-Constructs-Class-ownedOperation Core-Constructs-Operation-class"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedEnd_owningAssociation" name="A_ownedEnd_owningAssociation" memberEnd="Core-Constructs-Association-ownedEnd Core-Constructs-Property-owningAssociation"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_attribute_classifier" name="A_attribute_classifier" memberEnd="Core-Constructs-Classifier-attribute Core-Constructs-A_attribute_classifier-classifier">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_attribute_classifier-classifier" name="classifier" type="Core-Constructs-Classifier" lower="0" owningAssociation="Core-Constructs-A_attribute_classifier" subsettedProperty="Core-Constructs-RedefinableElement-redefinitionContext" association="Core-Constructs-A_attribute_classifier"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_redefinedProperty_property" name="A_redefinedProperty_property" memberEnd="Core-Constructs-Property-redefinedProperty Core-Constructs-A_redefinedProperty_property-property">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_redefinedProperty_property-property" name="property" type="Core-Constructs-Property" lower="0" upper="*" owningAssociation="Core-Constructs-A_redefinedProperty_property" association="Core-Constructs-A_redefinedProperty_property"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_subsettedProperty_property" name="A_subsettedProperty_property" memberEnd="Core-Constructs-Property-subsettedProperty Core-Constructs-A_subsettedProperty_property-property">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_subsettedProperty_property-property" name="property" type="Core-Constructs-Property" lower="0" upper="*" owningAssociation="Core-Constructs-A_subsettedProperty_property" association="Core-Constructs-A_subsettedProperty_property"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_opposite_property" name="A_opposite_property" memberEnd="Core-Constructs-Property-opposite Core-Constructs-A_opposite_property-property">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_opposite_property-property" name="property" type="Core-Constructs-Property" lower="0" owningAssociation="Core-Constructs-A_opposite_property" association="Core-Constructs-A_opposite_property"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_superClass_class" name="A_superClass_class" memberEnd="Core-Constructs-Class-superClass Core-Constructs-A_superClass_class-class">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_superClass_class-class" name="class" type="Core-Constructs-Class" lower="0" upper="*" owningAssociation="Core-Constructs-A_superClass_class" association="Core-Constructs-A_superClass_class"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_endType_association" name="A_endType_association" memberEnd="Core-Constructs-Association-endType Core-Constructs-A_endType_association-association">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_endType_association-association" name="association" type="Core-Constructs-Association" lower="0" upper="*" owningAssociation="Core-Constructs-A_endType_association" association="Core-Constructs-A_endType_association"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedLiteral_enumeration" name="A_ownedLiteral_enumeration" memberEnd="Core-Constructs-Enumeration-ownedLiteral Core-Constructs-EnumerationLiteral-enumeration"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedAttribute_datatype" name="A_ownedAttribute_datatype" memberEnd="Core-Constructs-DataType-ownedAttribute Core-Constructs-Property-datatype"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedOperation_datatype" name="A_ownedOperation_datatype" memberEnd="Core-Constructs-DataType-ownedOperation Core-Constructs-Operation-datatype"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_raisedException_operation" name="A_raisedException_operation" memberEnd="Core-Constructs-Operation-raisedException Core-Constructs-A_raisedException_operation-operation">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_raisedException_operation-operation" name="operation" type="Core-Constructs-Operation" lower="0" upper="*" owningAssociation="Core-Constructs-A_raisedException_operation" association="Core-Constructs-A_raisedException_operation"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_redefinedOperation_operation" name="A_redefinedOperation_operation" memberEnd="Core-Constructs-Operation-redefinedOperation Core-Constructs-A_redefinedOperation_operation-operation">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_redefinedOperation_operation-operation" name="operation" type="Core-Constructs-Operation" lower="0" upper="*" owningAssociation="Core-Constructs-A_redefinedOperation_operation" association="Core-Constructs-A_redefinedOperation_operation"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedParameter_ownerFormalParam" name="A_ownedParameter_ownerFormalParam" memberEnd="Core-Constructs-BehavioralFeature-ownedParameter Core-Constructs-A_ownedParameter_ownerFormalParam-ownerFormalParam">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_ownedParameter_ownerFormalParam-ownerFormalParam" name="ownerFormalParam" type="Core-Constructs-BehavioralFeature" lower="0" owningAssociation="Core-Constructs-A_ownedParameter_ownerFormalParam" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_ownedParameter_ownerFormalParam"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_raisedException_behavioralFeature" name="A_raisedException_behavioralFeature" memberEnd="Core-Constructs-BehavioralFeature-raisedException Core-Constructs-A_raisedException_behavioralFeature-behavioralFeature">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_raisedException_behavioralFeature-behavioralFeature" name="behavioralFeature" type="Core-Constructs-BehavioralFeature" lower="0" upper="*" owningAssociation="Core-Constructs-A_raisedException_behavioralFeature" association="Core-Constructs-A_raisedException_behavioralFeature"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_importedMember_namespace" name="A_importedMember_namespace" memberEnd="Core-Constructs-Namespace-importedMember Core-Constructs-A_importedMember_namespace-namespace">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_importedMember_namespace-namespace" name="namespace" type="Core-Constructs-Namespace" lower="0" upper="*" owningAssociation="Core-Constructs-A_importedMember_namespace" association="Core-Constructs-A_importedMember_namespace"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_importedPackage_packageImport" name="A_importedPackage_packageImport" memberEnd="Core-Constructs-PackageImport-importedPackage Core-Constructs-A_importedPackage_packageImport-packageImport">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_importedPackage_packageImport-packageImport" name="packageImport" type="Core-Constructs-PackageImport" lower="0" upper="*" owningAssociation="Core-Constructs-A_importedPackage_packageImport" association="Core-Constructs-A_importedPackage_packageImport"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_importedElement_elementImport" name="A_importedElement_elementImport" memberEnd="Core-Constructs-ElementImport-importedElement Core-Constructs-A_importedElement_elementImport-elementImport">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_importedElement_elementImport-elementImport" name="elementImport" type="Core-Constructs-ElementImport" lower="0" upper="*" owningAssociation="Core-Constructs-A_importedElement_elementImport" association="Core-Constructs-A_importedElement_elementImport"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_elementImport_importingNamespace" name="A_elementImport_importingNamespace" memberEnd="Core-Constructs-Namespace-elementImport Core-Constructs-ElementImport-importingNamespace"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_packageImport_importingNamespace" name="A_packageImport_importingNamespace" memberEnd="Core-Constructs-Namespace-packageImport Core-Constructs-PackageImport-importingNamespace"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_packagedElement_owningPackage" name="A_packagedElement_owningPackage" memberEnd="Core-Constructs-Package-packagedElement Core-Constructs-A_packagedElement_owningPackage-owningPackage">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_packagedElement_owningPackage-owningPackage" name="owningPackage" type="Core-Constructs-Package" lower="0" owningAssociation="Core-Constructs-A_packagedElement_owningPackage" subsettedProperty="Core-Constructs-NamedElement-namespace" association="Core-Constructs-A_packagedElement_owningPackage"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedType_package" name="A_ownedType_package" memberEnd="Core-Constructs-Package-ownedType Core-Constructs-Type-package"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_memberEnd_association" name="A_memberEnd_association" memberEnd="Core-Constructs-Association-memberEnd Core-Constructs-Property-association"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_nestedPackage_nestingPackage" name="A_nestedPackage_nestingPackage" memberEnd="Core-Constructs-Package-nestedPackage Core-Constructs-Package-nestingPackage"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_type_operation" name="A_type_operation" memberEnd="Core-Constructs-Operation-type Core-Constructs-A_type_operation-operation">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_type_operation-operation" name="operation" type="Core-Constructs-Operation" lower="0" upper="*" owningAssociation="Core-Constructs-A_type_operation" association="Core-Constructs-A_type_operation"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_packageMerge_receivingPackage" name="A_packageMerge_receivingPackage" memberEnd="Core-Constructs-Package-packageMerge Core-Constructs-PackageMerge-receivingPackage"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_mergedPackage_packageMerge" name="A_mergedPackage_packageMerge" memberEnd="Core-Constructs-PackageMerge-mergedPackage Core-Constructs-A_mergedPackage_packageMerge-packageMerge">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_mergedPackage_packageMerge-packageMerge" name="packageMerge" type="Core-Constructs-PackageMerge" lower="0" upper="*" owningAssociation="Core-Constructs-A_mergedPackage_packageMerge" association="Core-Constructs-A_mergedPackage_packageMerge"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedElement_owner" name="A_ownedElement_owner" memberEnd="Core-Constructs-Element-ownedElement Core-Constructs-Element-owner"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_annotatedElement_comment" name="A_annotatedElement_comment" memberEnd="Core-Constructs-Comment-annotatedElement Core-Constructs-A_annotatedElement_comment-comment">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_annotatedElement_comment-comment" name="comment" type="Core-Constructs-Comment" lower="0" upper="*" owningAssociation="Core-Constructs-A_annotatedElement_comment" association="Core-Constructs-A_annotatedElement_comment"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_relatedElement_relationship" name="A_relatedElement_relationship" memberEnd="Core-Constructs-Relationship-relatedElement Core-Constructs-A_relatedElement_relationship-relationship">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_relatedElement_relationship-relationship" name="relationship" type="Core-Constructs-Relationship" lower="0" upper="*" owningAssociation="Core-Constructs-A_relatedElement_relationship" association="Core-Constructs-A_relatedElement_relationship"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_source_directedRelationship" name="A_source_directedRelationship" memberEnd="Core-Constructs-DirectedRelationship-source Core-Constructs-A_source_directedRelationship-directedRelationship">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_source_directedRelationship-directedRelationship" name="directedRelationship" type="Core-Constructs-DirectedRelationship" lower="0" upper="*" owningAssociation="Core-Constructs-A_source_directedRelationship" association="Core-Constructs-A_source_directedRelationship"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_target_directedRelationship" name="A_target_directedRelationship" memberEnd="Core-Constructs-DirectedRelationship-target Core-Constructs-A_target_directedRelationship-directedRelationship">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_target_directedRelationship-directedRelationship" name="directedRelationship" type="Core-Constructs-DirectedRelationship" lower="0" upper="*" owningAssociation="Core-Constructs-A_target_directedRelationship" association="Core-Constructs-A_target_directedRelationship"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_redefinitionContext_redefinableElement" name="A_redefinitionContext_redefinableElement" memberEnd="Core-Constructs-RedefinableElement-redefinitionContext Core-Constructs-A_redefinitionContext_redefinableElement-redefinableElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_redefinitionContext_redefinableElement-redefinableElement" name="redefinableElement" type="Core-Constructs-RedefinableElement" lower="0" upper="*" owningAssociation="Core-Constructs-A_redefinitionContext_redefinableElement" association="Core-Constructs-A_redefinitionContext_redefinableElement"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_redefinedElement_redefinableElement" name="A_redefinedElement_redefinableElement" memberEnd="Core-Constructs-RedefinableElement-redefinedElement Core-Constructs-A_redefinedElement_redefinableElement-redefinableElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_redefinedElement_redefinableElement-redefinableElement" name="redefinableElement" type="Core-Constructs-RedefinableElement" lower="0" upper="*" owningAssociation="Core-Constructs-A_redefinedElement_redefinableElement" association="Core-Constructs-A_redefinedElement_redefinableElement"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_feature_featuringClassifier" name="A_feature_featuringClassifier" memberEnd="Core-Constructs-Classifier-feature Core-Constructs-Feature-featuringClassifier"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_constrainedElement_constraint" name="A_constrainedElement_constraint" memberEnd="Core-Constructs-Constraint-constrainedElement Core-Constructs-A_constrainedElement_constraint-constraint">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_constrainedElement_constraint-constraint" name="constraint" type="Core-Constructs-Constraint" lower="0" upper="*" owningAssociation="Core-Constructs-A_constrainedElement_constraint" association="Core-Constructs-A_constrainedElement_constraint"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_specification_owningConstraint" name="A_specification_owningConstraint" memberEnd="Core-Constructs-Constraint-specification Core-Constructs-A_specification_owningConstraint-owningConstraint">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_specification_owningConstraint-owningConstraint" name="owningConstraint" type="Core-Constructs-Constraint" lower="0" owningAssociation="Core-Constructs-A_specification_owningConstraint" subsettedProperty="Core-Constructs-Element-owner" association="Core-Constructs-A_specification_owningConstraint"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_general_classifier" name="A_general_classifier" memberEnd="Core-Constructs-Classifier-general Core-Constructs-A_general_classifier-classifier">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_general_classifier-classifier" name="classifier" type="Core-Constructs-Classifier" lower="0" upper="*" owningAssociation="Core-Constructs-A_general_classifier" association="Core-Constructs-A_general_classifier"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedMember_namespace" name="A_ownedMember_namespace" memberEnd="Core-Constructs-Namespace-ownedMember Core-Constructs-NamedElement-namespace"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_member_namespace" name="A_member_namespace" memberEnd="Core-Constructs-Namespace-member Core-Constructs-A_member_namespace-namespace">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_member_namespace-namespace" name="namespace" type="Core-Constructs-Namespace" lower="0" upper="*" owningAssociation="Core-Constructs-A_member_namespace" association="Core-Constructs-A_member_namespace"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_operand_expression" name="A_operand_expression" memberEnd="Core-Constructs-Expression-operand Core-Constructs-A_operand_expression-expression">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_operand_expression-expression" name="expression" type="Core-Constructs-Expression" lower="0" owningAssociation="Core-Constructs-A_operand_expression" subsettedProperty="Core-Constructs-Element-owner" association="Core-Constructs-A_operand_expression"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_navigableOwnedEnd_association" name="A_navigableOwnedEnd_association" memberEnd="Core-Constructs-Association-navigableOwnedEnd Core-Constructs-A_navigableOwnedEnd_association-association">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_navigableOwnedEnd_association-association" name="association" type="Core-Constructs-Association" lower="0" owningAssociation="Core-Constructs-A_navigableOwnedEnd_association" association="Core-Constructs-A_navigableOwnedEnd_association"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedParameter_operation" name="A_ownedParameter_operation" memberEnd="Core-Constructs-Operation-ownedParameter Core-Constructs-Parameter-operation"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedComment_owningElement" name="A_ownedComment_owningElement" memberEnd="Core-Constructs-Element-ownedComment Core-Constructs-A_ownedComment_owningElement-owningElement">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_ownedComment_owningElement-owningElement" name="owningElement" type="Core-Constructs-Element" lower="0" owningAssociation="Core-Constructs-A_ownedComment_owningElement" subsettedProperty="Core-Constructs-Element-owner" association="Core-Constructs-A_ownedComment_owningElement"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_inheritedMember_classifier" name="A_inheritedMember_classifier" memberEnd="Core-Constructs-Classifier-inheritedMember Core-Constructs-A_inheritedMember_classifier-classifier">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_inheritedMember_classifier-classifier" name="classifier" type="Core-Constructs-Classifier" lower="0" upper="*" owningAssociation="Core-Constructs-A_inheritedMember_classifier" association="Core-Constructs-A_inheritedMember_classifier"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_precondition_preContext" name="A_precondition_preContext" memberEnd="Core-Constructs-Operation-precondition Core-Constructs-A_precondition_preContext-preContext">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_precondition_preContext-preContext" name="preContext" type="Core-Constructs-Operation" lower="0" owningAssociation="Core-Constructs-A_precondition_preContext" subsettedProperty="Core-Constructs-Constraint-context" association="Core-Constructs-A_precondition_preContext"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_postcondition_postContext" name="A_postcondition_postContext" memberEnd="Core-Constructs-Operation-postcondition Core-Constructs-A_postcondition_postContext-postContext">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_postcondition_postContext-postContext" name="postContext" type="Core-Constructs-Operation" lower="0" owningAssociation="Core-Constructs-A_postcondition_postContext" subsettedProperty="Core-Constructs-Constraint-context" association="Core-Constructs-A_postcondition_postContext"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_bodyCondition_bodyContext" name="A_bodyCondition_bodyContext" memberEnd="Core-Constructs-Operation-bodyCondition Core-Constructs-A_bodyCondition_bodyContext-bodyContext">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Constructs-A_bodyCondition_bodyContext-bodyContext" name="bodyContext" type="Core-Constructs-Operation" lower="0" owningAssociation="Core-Constructs-A_bodyCondition_bodyContext" subsettedProperty="Core-Constructs-Constraint-context" association="Core-Constructs-A_bodyCondition_bodyContext"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Core-Constructs-A_ownedRule_context" name="A_ownedRule_context" memberEnd="Core-Constructs-Namespace-ownedRule Core-Constructs-Constraint-context"/>
</ownedMember>
</ownedMember>
<ownedMember xmi:type="cmof:Package" xmi:id="Profiles" name="Profiles">
<packageImport xmi:type="cmof:PackageImport" xmi:id="Profiles-_packageImport.0" importedPackage="Core-Constructs" importingNamespace="Profiles"/>
<packageImport xmi:type="cmof:PackageImport" xmi:id="Profiles-_packageImport.1" importedPackage="Core-PrimitiveTypes" importingNamespace="Profiles"/>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-Stereotype" name="Stereotype" superClass="Profiles-Class">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-_ownedComment.0" annotatedElement="Profiles-Stereotype">
<body>A stereotype defines how an existing metaclass may be extended, and enables the use of platform or domain specific terminology or notation in place of, or in addition to, the ones used for the extended metaclass.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Stereotype-name_not_clash" name="name_not_clash" constrainedElement="Profiles-Stereotype" namespace="Profiles-Stereotype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-name_not_clash-_ownedComment.0" annotatedElement="Profiles-Stereotype-name_not_clash">
<body>Stereotype names should not clash with keyword names for the extended model element.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Stereotype-name_not_clash-_specification">
<language>OCL</language>
<body>true</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Stereotype-generalize" name="generalize" constrainedElement="Profiles-Stereotype" namespace="Profiles-Stereotype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-generalize-_ownedComment.0" annotatedElement="Profiles-Stereotype-generalize">
<body>A Stereotype may only generalize or specialize another Stereotype.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Stereotype-generalize-_specification">
<language>OCL</language>
<body>generalization.general->forAll(e |e.oclIsKindOf(Stereotype)) and generalization.specific->forAll(e | e.oclIsKindOf(Stereotype)) </body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Stereotype-icon" name="icon" type="Profiles-Image" lower="0" upper="*" isComposite="true" association="Profiles-A_icon_stereotype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-icon-_ownedComment.0" annotatedElement="Profiles-Stereotype-icon">
<body>Stereotype can change the graphical appearance of the extended model element by using attached icons. When this association is not null, it references the location of the icon content to be displayed within diagrams presenting the extended model elements.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Stereotype-profile" name="profile" visibility="public" type="Profiles-Profile" isDerived="true" association="Profiles-A_profile_stereotype">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-profile-_ownedComment.0" annotatedElement="Profiles-Stereotype-icon">
<body>The profile that directly or indirectly contains this stereotype.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Stereotype-containingProfile" name="containingProfile" bodyCondition="Profiles-Stereotype-containingProfile-spec" class="Profiles-Stereotype" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-containingProfile-_ownedComment.0" annotatedElement="Profiles-Stereotype-containingProfile">
<body>The query containingProfile returns the closest profile directly or indirectly containing this stereotype.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Stereotype-containingProfile-spec" name="spec" constrainedElement="Profiles-Stereotype-containingProfile" namespace="Profiles-Stereotype-containingProfile">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Stereotype-containingProfile-spec-_specification">
<language>OCL</language>
<body>self.namespace.oclAsType(Package).containingProfile()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Stereotype-containingProfile-_ownedParameter.0" type="Profiles-Profile" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Stereotype-profile.1" name="profile" bodyCondition="Profiles-Stereotype-profile.1-spec" class="Profiles-Stereotype" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Stereotype-profile.1-_ownedComment.0" annotatedElement="Profiles-Stereotype-profile.1">
<body>A stereotype must be contained, directly or indirectly, in a profile.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Stereotype-profile.1-spec" name="spec" constrainedElement="Profiles-Stereotype-profile.1" namespace="Profiles-Stereotype-profile.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Stereotype-profile.1-spec-_specification">
<language>OCL</language>
<body>self.containingProfile()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Stereotype-profile.1-_ownedParameter.0" type="Profiles-Profile" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-Profile" name="Profile" superClass="Profiles-Package">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Profile-_ownedComment.0" annotatedElement="Profiles-Profile">
<body>A profile defines limited extensions to a reference metamodel with the purpose of adapting the metamodel to a specific platform or domain.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Profile-metaclass_reference_not_specialized" name="metaclass_reference_not_specialized" constrainedElement="Profiles-Profile" namespace="Profiles-Profile">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Profile-metaclass_reference_not_specialized-_ownedComment.0" annotatedElement="Profiles-Profile-metaclass_reference_not_specialized">
<body>An element imported as a metaclassReference is not specialized or generalized in a Profile.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Profile-metaclass_reference_not_specialized-_specification">
<language>OCL</language>
<body>self.metaclassReference.importedElement->&#xD;
select(c | c.oclIsKindOf(Classifier) and&#xD;
(c.generalization.namespace = self or c.specialization.namespace = self))->isEmpty()</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Profile-references_same_metamodel" name="references_same_metamodel" constrainedElement="Profiles-Profile" namespace="Profiles-Profile">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Profile-references_same_metamodel-_ownedComment.0" annotatedElement="Profiles-Profile-references_same_metamodel">
<body>All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Profile-references_same_metamodel-_specification">
<language>OCL</language>
<body>self.metamodelReference.importedPackage.elementImport.importedElement.allOwningPackages()->&#xD;
union(self.metaclassReference.importedElement.allOwningPackages() )->notEmpty()</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Profile-metaclassReference" name="metaclassReference" type="Core-Constructs-ElementImport" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-elementImport" association="Profiles-A_metaclassReference_profile">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Profile-metaclassReference-_ownedComment.0" annotatedElement="Profiles-Profile-metaclassReference">
<body>References a metaclass that may be extended.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Profile-metamodelReference" name="metamodelReference" type="Core-Constructs-PackageImport" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Namespace-packageImport" association="Profiles-A_metamodelReference_profile">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Profile-metamodelReference-_ownedComment.0" annotatedElement="Profiles-Profile-metamodelReference">
<body>References a package containing (directly or indirectly) metaclasses that may be extended.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-Package" name="Package" superClass="Core-Constructs-Namespace">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Package-_ownedComment.0" annotatedElement="Profiles-Package">
<body>A package can have one or more profile applications to indicate which profiles have been applied. Because a profile is a package, it is possible to apply a profile not only to packages, but also to profiles.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Package-profileApplication" name="profileApplication" type="Profiles-ProfileApplication" lower="0" upper="*" isComposite="true" subsettedProperty="Core-Constructs-Element-ownedElement" association="Profiles-A_profileApplication_applyingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Package-profileApplication-_ownedComment.0" annotatedElement="Profiles-Package-profileApplication">
<body>References the ProfileApplications that indicate which profiles have been applied to the Package.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Package-ownedStereotype" name="ownedStereotype" type="Profiles-Stereotype" lower="0" upper="*" isComposite="true" isDerived="true" subsettedProperty="Core-Constructs-Package-packagedElement" association="Profiles-A_ownedStereotype_profile">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Package-ownedStereotype-_ownedComment.0" annotatedElement="Profiles-Package-ownedStereotype">
<body>References the Stereotypes that are owned by the Package</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Package-allApplicableStereotypes" name="allApplicableStereotypes" bodyCondition="Profiles-Package-allApplicableStereotypes-spec" class="Profiles-Package" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Package-allApplicableStereotypes-_ownedComment.0" annotatedElement="Profiles-Package-allApplicableStereotypes">
<body>The query allApplicableStereotypes() returns all the directly or indirectly owned stereotypes, including stereotypes contained in sub-profiles.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Package-allApplicableStereotypes-spec" name="spec" constrainedElement="Profiles-Package-allApplicableStereotypes" namespace="Profiles-Package-allApplicableStereotypes">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Package-allApplicableStereotypes-spec-_specification">
<language>OCL</language>
<body>&#xD;
self.ownedStereotype->union(self.ownedMember->&#xD;
select(oclIsKindOf(Package)).oclAsType(Package).allApplicableStereotypes()->flatten())->asSet()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Package-allApplicableStereotypes-_ownedParameter.0" type="Profiles-Stereotype" lower="0" upper="*" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Package-containingProfile" name="containingProfile" bodyCondition="Profiles-Package-containingProfile-spec" class="Profiles-Package" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Package-containingProfile-_ownedComment.0" annotatedElement="Profiles-Package-containingProfile">
<body>The query containingProfile() returns the closest profile directly or indirectly containing this package (or this package itself, if it is a profile).</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Package-containingProfile-spec" name="spec" constrainedElement="Profiles-Package-containingProfile" namespace="Profiles-Package-containingProfile">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Package-containingProfile-spec-_specification">
<language>OCL</language>
<body>result =&#xD;
if self.oclIsKindOf(Profile) then &#xD;
self.oclAsType(Profile)&#xD;
else&#xD;
self.namespace.oclAsType(Package).containingProfile()&#xD;
endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Package-containingProfile-_ownedParameter.0" type="Profiles-Profile" lower="0" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-Class" name="Class" superClass="Core-Constructs-Classifier">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Class-_ownedComment.0" annotatedElement="Profiles-Class">
<body>Class has derived association that indicates how it may be extended through one or more stereotypes. Stereotype is the only kind of metaclass that cannot be extended by stereotypes.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Class-extension" name="extension" type="Profiles-Extension" lower="0" upper="*" isDerived="true" association="Profiles-A_extension_metaclass">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Class-extension-_ownedComment.0" annotatedElement="Profiles-Class-extension">
<body>References the Extensions that specify additional properties of the metaclass. The property is derived from the extensions whose memberEnds are typed by the Class.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-ProfileApplication" name="ProfileApplication" superClass="Core-Constructs-DirectedRelationship">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ProfileApplication-_ownedComment.0" annotatedElement="Profiles-ProfileApplication">
<body>A profile application is used to show which profiles have been applied to a package.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-ProfileApplication-appliedProfile" name="appliedProfile" type="Profiles-Profile" subsettedProperty="Core-Constructs-DirectedRelationship-target" association="Profiles-A_appliedProfile_profileApplication">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ProfileApplication-appliedProfile-_ownedComment.0" annotatedElement="Profiles-ProfileApplication-appliedProfile">
<body>References the Profiles that are applied to a Package through this ProfileApplication.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-ProfileApplication-isStrict" name="isStrict" type="Core-PrimitiveTypes-Boolean" default="false">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ProfileApplication-isStrict-_ownedComment.0" annotatedElement="Profiles-ProfileApplication-isStrict">
<body>Specifies that the Profile filtering rules for the metaclasses of the referenced metamodel shall be strictly applied.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-ProfileApplication-applyingPackage" name="applyingPackage" type="Profiles-Package" subsettedProperty="Core-Constructs-DirectedRelationship-source Core-Constructs-Element-owner" association="Profiles-A_profileApplication_applyingPackage">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ProfileApplication-applyingPackage-_ownedComment.0" annotatedElement="Profiles-ProfileApplication-applyingPackage">
<body>The package that owns the profile application.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-Extension" name="Extension" superClass="Core-Constructs-Association">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-_ownedComment.0" annotatedElement="Profiles-Extension">
<body>An extension is used to indicate that the properties of a metaclass are extended through a stereotype, and gives the ability to flexibly add (and later remove) stereotypes to classes.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Extension-non_owned_end" name="non_owned_end" constrainedElement="Profiles-Extension" namespace="Profiles-Extension">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-non_owned_end-_ownedComment.0" annotatedElement="Profiles-Extension-non_owned_end">
<body>The non-owned end of an Extension is typed by a Class.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Extension-non_owned_end-_specification">
<language>OCL</language>
<body>metaclassEnd()->notEmpty() and metaclass()->oclIsKindOf(Class)</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Extension-is_binary" name="is_binary" constrainedElement="Profiles-Extension" namespace="Profiles-Extension">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-is_binary-_ownedComment.0" annotatedElement="Profiles-Extension-is_binary">
<body>An Extension is binary, i.e., it has only two memberEnds.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Extension-is_binary-_specification">
<language>OCL</language>
<body>memberEnd->size() = 2</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Extension-isRequired" name="isRequired" type="Core-PrimitiveTypes-Boolean" default="false" isDerived="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-isRequired-_ownedComment.0" annotatedElement="Profiles-Extension-isRequired">
<body>Indicates whether an instance of the extending stereotype must be created when an instance of the extended class is created. The attribute value is derived from the value of the lower property of the ExtensionEnd referenced by Extension::ownedEnd; a lower value of 1 means that isRequired is true, but otherwise it is false. Since the default value of ExtensionEnd::lower is 0, the default value of isRequired is false.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Extension-metaclass" name="metaclass" type="Profiles-Class" isDerived="true" association="Profiles-A_extension_metaclass">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-metaclass-_ownedComment.0" annotatedElement="Profiles-Extension-metaclass">
<body>References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Extension-ownedEnd" name="ownedEnd" type="Profiles-ExtensionEnd" isComposite="true" redefinedProperty="Core-Constructs-Association-ownedEnd" association="Profiles-A_ownedEnd_extension">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-ownedEnd-_ownedComment.0" annotatedElement="Profiles-Extension-ownedEnd">
<body>References the end of the extension that is typed by a Stereotype.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Extension-metaclassEnd" name="metaclassEnd" bodyCondition="Profiles-Extension-metaclassEnd-spec" class="Profiles-Extension" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-metaclassEnd-_ownedComment.0" annotatedElement="Profiles-Extension-metaclassEnd">
<body>The query metaclassEnd() returns the Property that is typed by a metaclass (as opposed to a stereotype).</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Extension-metaclassEnd-spec" name="spec" constrainedElement="Profiles-Extension-metaclassEnd" namespace="Profiles-Extension-metaclassEnd">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Extension-metaclassEnd-spec-_specification">
<language>OCL</language>
<body>memberEnd->reject(ownedEnd)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Extension-metaclassEnd-_ownedParameter.0" type="Core-Constructs-Property" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Extension-metaclass.1" name="metaclass" bodyCondition="Profiles-Extension-metaclass.1-spec" class="Profiles-Extension" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-metaclass.1-_ownedComment.0" annotatedElement="Profiles-Extension-metaclass.1">
<body>The query metaclass() returns the metaclass that is being extended (as opposed to the extending stereotype).</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Extension-metaclass.1-spec" name="spec" constrainedElement="Profiles-Extension-metaclass.1" namespace="Profiles-Extension-metaclass.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Extension-metaclass.1-spec-_specification">
<language>OCL</language>
<body>metaclassEnd().type</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Extension-metaclass.1-_ownedParameter.0" type="Profiles-Class" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-Extension-isRequired.1" name="isRequired" bodyCondition="Profiles-Extension-isRequired.1-spec" class="Profiles-Extension" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Extension-isRequired.1-_ownedComment.0" annotatedElement="Profiles-Extension-isRequired.1">
<body>The query isRequired() is true if the owned end has a multiplicity with the lower bound of 1.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-Extension-isRequired.1-spec" name="spec" constrainedElement="Profiles-Extension-isRequired.1" namespace="Profiles-Extension-isRequired.1">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-Extension-isRequired.1-spec-_specification">
<language>OCL</language>
<body>(ownedEnd->lowerBound() = 1)</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-Extension-isRequired.1-_ownedParameter.0" type="Core-PrimitiveTypes-Boolean" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-ExtensionEnd" name="ExtensionEnd" superClass="Core-Constructs-Property">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ExtensionEnd-_ownedComment.0" annotatedElement="Profiles-ExtensionEnd">
<body>An extension end is used to tie an extension to a stereotype when extending a metaclass.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-ExtensionEnd-multiplicity" name="multiplicity" constrainedElement="Profiles-ExtensionEnd" namespace="Profiles-ExtensionEnd">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ExtensionEnd-multiplicity-_ownedComment.0" annotatedElement="Profiles-ExtensionEnd-multiplicity">
<body>The multiplicity of ExtensionEnd is 0..1 or 1.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-ExtensionEnd-multiplicity-_specification">
<language>OCL</language>
<body>(self->lowerBound() = 0 or self->lowerBound() = 1) and self->upperBound() = 1</body>
</specification>
</ownedRule>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-ExtensionEnd-aggregation" name="aggregation" constrainedElement="Profiles-ExtensionEnd" namespace="Profiles-ExtensionEnd">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ExtensionEnd-aggregation-_ownedComment.0" annotatedElement="Profiles-ExtensionEnd-aggregation">
<body>The aggregation of an ExtensionEnd is composite.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-ExtensionEnd-aggregation-_specification">
<language>OCL</language>
<body>self.aggregation = #composite</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-ExtensionEnd-type" name="type" type="Profiles-Stereotype" redefinedProperty="Core-Constructs-TypedElement-type" association="Profiles-A_type_extensionEnd">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ExtensionEnd-type-_ownedComment.0" annotatedElement="Profiles-ExtensionEnd-type">
<body>References the type of the ExtensionEnd. Note that this association restricts the possible types of an ExtensionEnd to only be Stereotypes.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-ExtensionEnd-lower" name="lower" lower="0" default="0" redefinedProperty="Core-Constructs-MultiplicityElement-lower">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ExtensionEnd-lower-_ownedComment.0" annotatedElement="Profiles-ExtensionEnd-lower">
<body>This redefinition changes the default multiplicity of association ends, since model elements are usually extended by 0 or 1 instance of the extension stereotype.</body>
</ownedComment>
</ownedAttribute>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-ExtensionEnd-lowerBound" name="lowerBound" bodyCondition="Profiles-ExtensionEnd-lowerBound-spec" class="Profiles-ExtensionEnd" isQuery="true" redefinedOperation="Core-Constructs-MultiplicityElement-lowerBound">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-ExtensionEnd-lowerBound-_ownedComment.0" annotatedElement="Profiles-ExtensionEnd-lowerBound">
<body>The query lowerBound() returns the lower bound of the multiplicity as an Integer. This is a redefinition of the default&#xD;
lower bound, which normally, for MultiplicityElements, evaluates to 1 if empty.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-ExtensionEnd-lowerBound-spec" name="spec" constrainedElement="Profiles-ExtensionEnd-lowerBound" namespace="Profiles-ExtensionEnd-lowerBound">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-ExtensionEnd-lowerBound-spec-_specification">
<language>OCL</language>
<body>lowerBound = if lowerValue->isEmpty() then 0 else lowerValue->IntegerValue() endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-ExtensionEnd-lowerBound-_ownedParameter.0" type="Core-PrimitiveTypes-Integer" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-Image" name="Image" superClass="Core-Constructs-Element">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Image-_ownedComment.0" annotatedElement="Profiles-Image">
<body>Physical definition of a graphical image.</body>
</ownedComment>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Image-content" name="content" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Image-content-_ownedComment.0" annotatedElement="Profiles-Image-content">
<body>This contains the serialization of the image according to the format. The value could represent a bitmap, image such as a GIF file, or drawing 'instructions' using a standard such as Scalable Vector Graphic (SVG) (which is XML based).</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Image-location" name="location" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Image-location-_ownedComment.0" annotatedElement="Profiles-Image-location">
<body>This contains a location that can be used by a tool to locate the image as an alternative to embedding it in the stereotype.</body>
</ownedComment>
</ownedAttribute>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Profiles-Image-format" name="format" type="Core-PrimitiveTypes-String" lower="0">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-Image-format-_ownedComment.0" annotatedElement="Profiles-Image-format">
<body>This indicates the format of the content - which is how the string content should be interpreted. The following values are reserved: SVG, GIF, PNG, JPG, WMF, EMF, BMP.&#xD;
&#xD;
In addition the prefix 'MIME: ' is also reserved. This option can be used as an alternative to express the reserved values above, for example &quot;SVG&quot; could instead be expressed as &quot;MIME: image/svg+xml&quot;.</body>
</ownedComment>
</ownedAttribute>
</ownedMember>
<ownedMember xmi:type="cmof:Class" xmi:id="Profiles-NamedElement" name="NamedElement" isAbstract="true">
<ownedOperation xmi:type="cmof:Operation" xmi:id="Profiles-NamedElement-allOwningPackages" name="allOwningPackages" bodyCondition="Profiles-NamedElement-allOwningPackages-spec" class="Profiles-NamedElement" isQuery="true">
<ownedComment xmi:type="cmof:Comment" xmi:id="Profiles-NamedElement-allOwningPackages-_ownedComment.0" annotatedElement="Profiles-NamedElement-allOwningPackages">
<body>The query allOwningPackages() returns all the directly or indirectly owning packages.</body>
</ownedComment>
<ownedRule xmi:type="cmof:Constraint" xmi:id="Profiles-NamedElement-allOwningPackages-spec" name="spec" constrainedElement="Profiles-NamedElement-allOwningPackages" namespace="Profiles-NamedElement-allOwningPackages">
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Profiles-NamedElement-allOwningPackages-spec-_specification">
<language>OCL</language>
<body>self.namespace->select(p | p.oclIsKindOf(Package))->union(p.allOwningPackages())</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Profiles-NamedElement-allOwningPackages-_ownedParameter.0" type="Profiles-Package" lower="0" upper="*" direction="return"/>
</ownedOperation>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_profileApplication_applyingPackage" name="A_profileApplication_applyingPackage" memberEnd="Profiles-Package-profileApplication Profiles-ProfileApplication-applyingPackage"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_ownedStereotype_profile" name="A_ownedStereotype_profile" memberEnd="Profiles-Package-ownedStereotype Profiles-A_ownedStereotype_profile-profile">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_ownedStereotype_profile-profile" name="profile" type="Profiles-Package" owningAssociation="Profiles-A_ownedStereotype_profile" association="Profiles-A_ownedStereotype_profile"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_appliedProfile_profileApplication" name="A_appliedProfile_profileApplication" memberEnd="Profiles-ProfileApplication-appliedProfile Profiles-A_appliedProfile_profileApplication-profileApplication">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_appliedProfile_profileApplication-profileApplication" name="profileApplication" type="Profiles-ProfileApplication" lower="0" upper="*" owningAssociation="Profiles-A_appliedProfile_profileApplication" association="Profiles-A_appliedProfile_profileApplication"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_extension_metaclass" name="A_extension_metaclass" isDerived="true" memberEnd="Profiles-Class-extension Profiles-Extension-metaclass"/>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_ownedEnd_extension" name="A_ownedEnd_extension" memberEnd="Profiles-Extension-ownedEnd Profiles-A_ownedEnd_extension-extension">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_ownedEnd_extension-extension" name="extension" type="Profiles-Extension" owningAssociation="Profiles-A_ownedEnd_extension" association="Profiles-A_ownedEnd_extension"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_type_extensionEnd" name="A_type_extensionEnd" memberEnd="Profiles-ExtensionEnd-type Profiles-A_type_extensionEnd-extensionEnd">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_type_extensionEnd-extensionEnd" name="extensionEnd" type="Profiles-ExtensionEnd" lower="0" upper="*" owningAssociation="Profiles-A_type_extensionEnd" association="Profiles-A_type_extensionEnd"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_metaclassReference_profile" name="A_metaclassReference_profile" memberEnd="Profiles-Profile-metaclassReference Profiles-A_metaclassReference_profile-profile">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_metaclassReference_profile-profile" name="profile" type="Profiles-Profile" lower="0" owningAssociation="Profiles-A_metaclassReference_profile" association="Profiles-A_metaclassReference_profile"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_metamodelReference_profile" name="A_metamodelReference_profile" memberEnd="Profiles-Profile-metamodelReference Profiles-A_metamodelReference_profile-profile">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_metamodelReference_profile-profile" name="profile" type="Profiles-Profile" lower="0" owningAssociation="Profiles-A_metamodelReference_profile" association="Profiles-A_metamodelReference_profile"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_icon_stereotype" name="A_icon_stereotype" memberEnd="Profiles-Stereotype-icon Profiles-A_icon_stereotype-stereotype">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_icon_stereotype-stereotype" name="stereotype" type="Profiles-Stereotype" lower="0" owningAssociation="Profiles-A_icon_stereotype" association="Profiles-A_icon_stereotype"/>
</ownedMember>
<ownedMember xmi:type="cmof:Association" xmi:id="Profiles-A_profile_stereotype" name="A_profile_stereotype" memberEnd="Profiles-Stereotype-profile Profiles-A_profile_stereotype-stereotype">
<ownedEnd xmi:type="cmof:Property" xmi:id="Profiles-A_profile_stereotype-stereotype" name="stereotype" type="Profiles-Stereotype" lower="0" upper="*" owningAssociation="Profiles-A_profile_stereotype" association="Profiles-A_profile_stereotype"/>
</ownedMember>
</ownedMember>
</cmof:Package>
<cmof:Tag xmi:id="_1" name="org.omg.xmi.nsPrefix" value="InfrastructureLibrary" element="_0"/>
<cmof:Tag xmi:id="_2" name="org.omg.xmi.nsPrefix" value="Core" element="Core"/>
<cmof:Tag xmi:id="_3" name="org.omg.xmi.nsPrefix" value="Abstractions" element="Core-Abstractions"/>
<cmof:Tag xmi:id="_4" name="org.omg.xmi.nsPrefix" value="Ownerships" element="Core-Abstractions-Ownerships"/>
<cmof:Tag xmi:id="_5" name="org.omg.xmi.nsPrefix" value="Namespaces" element="Core-Abstractions-Namespaces"/>
<cmof:Tag xmi:id="_6" name="org.omg.xmi.nsPrefix" value="Classifiers" element="Core-Abstractions-Classifiers"/>
<cmof:Tag xmi:id="_7" name="org.omg.xmi.nsPrefix" value="Expressions" element="Core-Abstractions-Expressions"/>
<cmof:Tag xmi:id="_8" name="org.omg.xmi.nsPrefix" value="MultiplicityExpressions" element="Core-Abstractions-MultiplicityExpressions"/>
<cmof:Tag xmi:id="_9" name="org.omg.xmi.nsPrefix" value="BehavioralFeatures" element="Core-Abstractions-BehavioralFeatures"/>
<cmof:Tag xmi:id="_10" name="org.omg.xmi.nsPrefix" value="Instances" element="Core-Abstractions-Instances"/>
<cmof:Tag xmi:id="_11" name="org.omg.xmi.nsPrefix" value="Redefinitions" element="Core-Abstractions-Redefinitions"/>
<cmof:Tag xmi:id="_12" name="org.omg.xmi.nsPrefix" value="Generalizations" element="Core-Abstractions-Generalizations"/>
<cmof:Tag xmi:id="_13" name="org.omg.xmi.nsPrefix" value="Comments" element="Core-Abstractions-Comments"/>
<cmof:Tag xmi:id="_14" name="org.omg.xmi.nsPrefix" value="Relationships" element="Core-Abstractions-Relationships"/>
<cmof:Tag xmi:id="_15" name="org.omg.xmi.nsPrefix" value="Changeabilities" element="Core-Abstractions-Changeabilities"/>
<cmof:Tag xmi:id="_16" name="org.omg.xmi.nsPrefix" value="StructuralFeatures" element="Core-Abstractions-StructuralFeatures"/>
<cmof:Tag xmi:id="_17" name="org.omg.xmi.nsPrefix" value="Constraints" element="Core-Abstractions-Constraints"/>
<cmof:Tag xmi:id="_18" name="org.omg.xmi.nsPrefix" value="Visibilities" element="Core-Abstractions-Visibilities"/>
<cmof:Tag xmi:id="_19" name="org.omg.xmi.nsPrefix" value="Super" element="Core-Abstractions-Super"/>
<cmof:Tag xmi:id="_20" name="org.omg.xmi.nsPrefix" value="Literals" element="Core-Abstractions-Literals"/>
<cmof:Tag xmi:id="_21" name="org.omg.xmi.nsPrefix" value="Multiplicities" element="Core-Abstractions-Multiplicities"/>
<cmof:Tag xmi:id="_22" name="org.omg.xmi.nsPrefix" value="Elements" element="Core-Abstractions-Elements"/>
<cmof:Tag xmi:id="_23" name="org.omg.xmi.nsPrefix" value="TypedElements" element="Core-Abstractions-TypedElements"/>
<cmof:Tag xmi:id="_24" name="org.omg.xmi.nsPrefix" value="PrimitiveTypes" element="Core-PrimitiveTypes"/>
<cmof:Tag xmi:id="_25" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#integer" element="Core-PrimitiveTypes-Integer"/>
<cmof:Tag xmi:id="_26" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#boolean" element="Core-PrimitiveTypes-Boolean"/>
<cmof:Tag xmi:id="_27" name="org.omg.xmi.nsPrefix" value="Basic" element="Core-Basic"/>
<cmof:Tag xmi:id="_28" name="org.omg.xmi.nsPrefix" value="Constructs" element="Core-Constructs"/>
<cmof:Tag xmi:id="_29" name="org.omg.xmi.nsPrefix" value="Profiles" element="Profiles"/>
</xmi:XMI>