Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3909 lines (3908 sloc) 449 KB
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:cmof="http://schema.omg.org/spec/MOF/2.0/cmof.xml">
<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" upper="*" lower="0" isReadOnly="true" isDerived="true" isDerivedUnion="true" isComposite="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" isReadOnly="true" 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" upper="*" lower="0" 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" class="Core-Abstractions-Ownerships-Element" isQuery="true" bodyCondition="Core-Abstractions-Ownerships-Element-allOwnedElements-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Ownerships-Element-mustBeOwned" name="mustBeOwned" class="Core-Abstractions-Ownerships-Element" isQuery="true" bodyCondition="Core-Abstractions-Ownerships-Element-mustBeOwned-spec">
<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>result = 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;&#xA; 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&#xA; 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" isReadOnly="true" 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" isReadOnly="true" 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" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true" bodyCondition="Core-Abstractions-Namespaces-NamedElement-allNamespaces-spec">
<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>result = if self.namespace->isEmpty()&#xA;then Sequence{}&#xA;else self.namespace.allNamespaces()->prepend(self.namespace)&#xA;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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom" name="isDistinguishableFrom" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true" bodyCondition="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom-spec">
<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>result = if self.oclIsKindOf(n.oclType) or n.oclIsKindOf(self.oclType)&#xA;then ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->isEmpty()&#xA;else true&#xA;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" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true" bodyCondition="Core-Abstractions-Namespaces-NamedElement-separator-spec">
<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>result = '::'</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" class="Core-Abstractions-Namespaces-NamedElement" isQuery="true" bodyCondition="Core-Abstractions-Namespaces-NamedElement-qualifiedName.1-spec">
<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>result = if self.name->notEmpty() and self.allNamespaces()->select(ns | ns.name->isEmpty())->isEmpty()&#xA;then &#xA; self.allNamespaces()->iterate( ns : Namespace; result: String = self.name | ns.name->union(self.separator())->union(result))&#xA;else&#xA; Set{}&#xA;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" upper="*" lower="0" isReadOnly="true" isDerived="true" isDerivedUnion="true" isComposite="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" upper="*" lower="0" isReadOnly="true" 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" class="Core-Abstractions-Namespaces-Namespace" isQuery="true" bodyCondition="Core-Abstractions-Namespaces-Namespace-getNamesOfMember-spec">
<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>result = 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" upper="*" lower="0" 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" class="Core-Abstractions-Namespaces-Namespace" isQuery="true" bodyCondition="Core-Abstractions-Namespaces-Namespace-membersAreDistinguishable-spec">
<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>result = self.member->forAll( memb |&#xA;self.member->excluding(memb)->forAll(other |&#xA;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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Namespaces-A_member_namespace-_ownedEnd.0" type="Core-Abstractions-Namespaces-Namespace" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" 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" class="Core-Abstractions-Classifiers-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Classifiers-Classifier-allFeatures-spec">
<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>result = 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" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-isComputable-spec">
<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>result = 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" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-integerValue-spec">
<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>result = 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" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-booleanValue-spec">
<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>result = 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" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-stringValue-spec">
<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>result = 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" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue-spec">
<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>result = 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" class="Core-Abstractions-Expressions-ValueSpecification" isQuery="true" bodyCondition="Core-Abstractions-Expressions-ValueSpecification-isNull-spec">
<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>result = 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" upper="*" lower="0" 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" isDerived="true" default="1">
<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" isDerived="true" default="1">
<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" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lower.1-spec">
<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>result = 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" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upper.1-spec">
<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>result = 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" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-lowerBound-spec">
<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>result = 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" class="Core-Abstractions-MultiplicityExpressions-MultiplicityElement" isQuery="true" bodyCondition="Core-Abstractions-MultiplicityExpressions-MultiplicityElement-upperBound-spec">
<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>result = 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" upper="*" lower="0" isReadOnly="true" 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" class="Core-Abstractions-BehavioralFeatures-BehavioralFeature" isQuery="true" redefinedOperation="Core-Abstractions-Namespaces-NamedElement-isDistinguishableFrom" bodyCondition="Core-Abstractions-BehavioralFeatures-BehavioralFeature-isDistinguishableFrom-spec">
<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>result = if n.oclIsKindOf(BehavioralFeature)&#xA;then&#xA; if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()&#xA; then Set{}->including(self)->including(n)->isUnique( bf | bf.parameter->collect(type))&#xA; else true&#xA; endif&#xA;else true&#xA;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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-BehavioralFeatures-A_parameter_behavioralFeature-_ownedEnd.0" 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 |&#xA;classifier->exists(c | c.allFeatures()->includes(s.definingFeature))&#xA;)&#xA;</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 |&#xA;(c.allFeatures()->forAll(f | slot->select(s | s.definingFeature = f)->size() &lt;= 1)&#xA;)&#xA;</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-InstanceSpecification-slot" name="slot" type="Core-Abstractions-Instances-Slot" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_classifier_instanceSpecification-_ownedEnd.0" type="Core-Abstractions-Instances-InstanceSpecification" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_instance_instanceValue-_ownedEnd.0" type="Core-Abstractions-Instances-InstanceValue" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Instances-A_definingFeature_slot-_ownedEnd.0" type="Core-Abstractions-Instances-Slot" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" isReadOnly="true" 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" class="Core-Abstractions-Redefinitions-RedefinableElement" isQuery="true" precondition="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-_ownedRule.0" bodyCondition="Core-Abstractions-Redefinitions-RedefinableElement-isConsistentWith-spec">
<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>result = 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" class="Core-Abstractions-Redefinitions-RedefinableElement" isQuery="true" bodyCondition="Core-Abstractions-Redefinitions-RedefinableElement-isRedefinitionContextValid-spec">
<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>result = 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Redefinitions-A_redefinedElement_redefinableElement-_ownedEnd.0" type="Core-Abstractions-Redefinitions-RedefinableElement" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Redefinitions-A_redefinitionContext_redefinableElement-_ownedEnd.0" type="Core-Abstractions-Redefinitions-RedefinableElement" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Abstractions-Generalizations-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Generalizations-Classifier-general.1-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Generalizations-Classifier-parents" name="parents" class="Core-Abstractions-Generalizations-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Generalizations-Classifier-parents-spec">
<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>result = generalization.general</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Generalizations-Classifier-parents-_ownedParameter.0" type="Core-Abstractions-Generalizations-Classifier" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Generalizations-Classifier-conformsTo" name="conformsTo" class="Core-Abstractions-Generalizations-Classifier" isQuery="true" redefinedOperation="Core-Abstractions-TypedElements-Type-conformsTo" bodyCondition="Core-Abstractions-Generalizations-Classifier-conformsTo-spec">
<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>result = (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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-A_general_generalization-_ownedEnd.0" type="Core-Abstractions-Generalizations-Generalization" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Generalizations-A_general_classifier-_ownedEnd.0" type="Core-Abstractions-Generalizations-Classifier" upper="*" lower="0" 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" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Comments-A_annotatedElement_comment-_ownedEnd.0" type="Core-Abstractions-Comments-Comment" upper="*" lower="0" 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="*" isReadOnly="true" 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="*" isReadOnly="true" 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="*" isReadOnly="true" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-A_relatedElement_relationship-_ownedEnd.0" type="Core-Abstractions-Relationships-Relationship" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-A_source_directedRelationship-_ownedEnd.0" type="Core-Abstractions-Relationships-DirectedRelationship" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Relationships-A_target_directedRelationship-_ownedEnd.0" type="Core-Abstractions-Relationships-DirectedRelationship" upper="*" lower="0" 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().isOclKindOf(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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" isDerived="true" isDerivedUnion="true" isComposite="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" upper="*" lower="0" isReadOnly="true" 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" isReadOnly="true" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-A_constrainedElement_constraint-_ownedEnd.0" type="Core-Abstractions-Constraints-Constraint" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Constraints-A_member_namespace-_ownedEnd.0" type="Core-Abstractions-Constraints-Namespace" upper="*" lower="0" 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" isQuery="true" datatype="Core-Abstractions-Visibilities-VisibilityKind" bodyCondition="Core-Abstractions-Visibilities-VisibilityKind-bestVisibility-spec">
<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>result = 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" upper="*" lower="0"/>
</ownedOperation>
<ownedLiteral xmi:type="cmof:EnumerationLiteral" xmi:id="Core-Abstractions-Visibilities-VisibilityKind-public" name="public" 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" 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" 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" 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" upper="*" lower="0" isReadOnly="true" isDerived="true" subsettedProperty="Core-Abstractions-Namespaces-Namespace-member" association="Core-Abstractions-Super-A_classifier_inheritedMember">
<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" upper="*" lower="0" 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" class="Core-Abstractions-Super-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Super-Classifier-inheritedMember.1-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-parents" name="parents" class="Core-Abstractions-Super-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Super-Classifier-parents-spec">
<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>result = general</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-parents-_ownedParameter.0" type="Core-Abstractions-Super-Classifier" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-allParents" name="allParents" class="Core-Abstractions-Super-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Super-Classifier-allParents-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-inheritableMembers" name="inheritableMembers" class="Core-Abstractions-Super-Classifier" isQuery="true" precondition="Core-Abstractions-Super-Classifier-inheritableMembers-_ownedRule.0" bodyCondition="Core-Abstractions-Super-Classifier-inheritableMembers-spec">
<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>result = 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" upper="*" lower="0" 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" class="Core-Abstractions-Super-Classifier" isQuery="true" precondition="Core-Abstractions-Super-Classifier-hasVisibilityOf-_ownedRule.0" bodyCondition="Core-Abstractions-Super-Classifier-hasVisibilityOf-spec">
<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>result = 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" class="Core-Abstractions-Super-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Super-Classifier-inherit-spec">
<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>result = inhs</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inherit-_ownedParameter.0" type="Core-Abstractions-Namespaces-NamedElement" upper="*" lower="0" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Abstractions-Super-Classifier-inherit-inhs" name="inhs" type="Core-Abstractions-Namespaces-NamedElement" upper="*" lower="0"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Abstractions-Super-Classifier-maySpecializeType" name="maySpecializeType" class="Core-Abstractions-Super-Classifier" isQuery="true" bodyCondition="Core-Abstractions-Super-Classifier-maySpecializeType-spec">
<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>result = 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_classifier_inheritedMember" name="A_classifier_inheritedMember" memberEnd="Core-Abstractions-Super-A_classifier_inheritedMember-_ownedEnd.0 Core-Abstractions-Super-Classifier-inheritedMember">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-A_classifier_inheritedMember-_ownedEnd.0" type="Core-Abstractions-Super-Classifier" upper="*" lower="0" owningAssociation="Core-Abstractions-Super-A_classifier_inheritedMember" association="Core-Abstractions-Super-A_classifier_inheritedMember"/>
</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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-Super-A_general_classifier-_ownedEnd.0" type="Core-Abstractions-Super-Classifier" upper="*" lower="0" 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" class="Core-Abstractions-Literals-LiteralBoolean" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable" bodyCondition="Core-Abstractions-Literals-LiteralBoolean-isComputable-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralBoolean" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-booleanValue" bodyCondition="Core-Abstractions-Literals-LiteralBoolean-booleanValue-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralString" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable" bodyCondition="Core-Abstractions-Literals-LiteralString-isComputable-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralString" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-stringValue" bodyCondition="Core-Abstractions-Literals-LiteralString-stringValue-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralNull" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable" bodyCondition="Core-Abstractions-Literals-LiteralNull-isComputable-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralNull" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isNull" bodyCondition="Core-Abstractions-Literals-LiteralNull-isNull-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralInteger" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable" bodyCondition="Core-Abstractions-Literals-LiteralInteger-isComputable-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralInteger" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-integerValue" bodyCondition="Core-Abstractions-Literals-LiteralInteger-integerValue-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralUnlimitedNatural" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-isComputable" bodyCondition="Core-Abstractions-Literals-LiteralUnlimitedNatural-isComputable-spec">
<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>result = 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" class="Core-Abstractions-Literals-LiteralUnlimitedNatural" isQuery="true" redefinedOperation="Core-Abstractions-Expressions-ValueSpecification-unlimitedValue" bodyCondition="Core-Abstractions-Literals-LiteralUnlimitedNatural-unlimitedValue-spec">
<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>result = 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-upper_gt_0" name="upper_gt_0" constrainedElement="Core-Abstractions-Multiplicities-MultiplicityElement" namespace="Core-Abstractions-Multiplicities-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper_gt_0-_ownedComment.0" annotatedElement="Core-Abstractions-Multiplicities-MultiplicityElement-upper_gt_0">
<body>A multiplicity must define at least one valid cardinality that is greater than zero.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Abstractions-Multiplicities-MultiplicityElement-upper_gt_0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty() implies upperBound() > 0</body>
</specification>
</ownedRule>
<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" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-lowerBound-spec">
<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>result = 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" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-upperBound-spec">
<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>result = 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" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" precondition="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-_ownedRule.0" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-isMultivalued-spec">
<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>result = 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" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" precondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-_ownedRule.0" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesCardinality-spec">
<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()&#xA;includesCardinality = (lowerBound() &lt;= C) and (upperBound() >= C)&#xA;</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>result = (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" class="Core-Abstractions-Multiplicities-MultiplicityElement" isQuery="true" precondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-_ownedRule.0" bodyCondition="Core-Abstractions-Multiplicities-MultiplicityElement-includesMultiplicity-spec">
<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>result = (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" class="Core-Abstractions-TypedElements-Type" isQuery="true" bodyCondition="Core-Abstractions-TypedElements-Type-conformsTo-spec">
<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>result = 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Abstractions-TypedElements-A_type_typedElement-_ownedEnd.0" type="Core-Abstractions-TypedElements-TypedElement" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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-upper_gt_0" name="upper_gt_0" constrainedElement="Core-Basic-MultiplicityElement" namespace="Core-Basic-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Basic-MultiplicityElement-upper_gt_0-_ownedComment.0" annotatedElement="Core-Basic-MultiplicityElement-upper_gt_0">
<body>A multiplicity must define at least one valid cardinality that is greater than zero.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Basic-MultiplicityElement-upper_gt_0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty() implies upperBound() > 0</body>
</specification>
</ownedRule>
<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" class="Core-Basic-MultiplicityElement" isQuery="true" bodyCondition="Core-Basic-MultiplicityElement-lowerBound-spec">
<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>result = 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" class="Core-Basic-MultiplicityElement" isQuery="true" bodyCondition="Core-Basic-MultiplicityElement-upperBound-spec">
<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>result = 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" class="Core-Basic-MultiplicityElement" isQuery="true" precondition="Core-Basic-MultiplicityElement-isMultivalued-_ownedRule.0" bodyCondition="Core-Basic-MultiplicityElement-isMultivalued-spec">
<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>result = 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" class="Core-Basic-MultiplicityElement" isQuery="true" precondition="Core-Basic-MultiplicityElement-includesCardinality-_ownedRule.0" bodyCondition="Core-Basic-MultiplicityElement-includesCardinality-spec">
<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>result = (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" class="Core-Basic-MultiplicityElement" isQuery="true" precondition="Core-Basic-MultiplicityElement-includesMultiplicity-_ownedRule.0" bodyCondition="Core-Basic-MultiplicityElement-includesMultiplicity-spec">
<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>result = (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" upper="*" lower="0" 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" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_raisedException_operation-_ownedEnd.0" type="Core-Basic-Operation" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_opposite_property-_ownedEnd.0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_superClass_class-_ownedEnd.0" type="Core-Basic-Class" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_type_typedElement-_ownedEnd.0" type="Core-Basic-TypedElement" upper="*" lower="0" 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-_ownedEnd.0">
<ownedEnd xmi:type="cmof:Property" xmi:id="Core-Basic-A_annotatedElement_comment-_ownedEnd.0" type="Core-Basic-Comment" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" 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>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-conformsTo" name="conformsTo" class="Core-Constructs-Classifier" isQuery="true" redefinedOperation="Core-Constructs-Type-conformsTo" bodyCondition="Core-Constructs-Classifier-conformsTo-spec">
<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>result = (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" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-allFeatures-spec">
<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>result = member->select(oclIsKindOf(Feature))</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-allFeatures-_ownedParameter.0" type="Core-Constructs-Feature" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-general.1" name="general" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-general.1-spec">
<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>result = self.parents()</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-general.1-_ownedParameter.0" type="Core-Constructs-Classifier" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-parents" name="parents" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-parents-spec">
<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>result = generalization.general</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-parents-_ownedParameter.0" type="Core-Constructs-Classifier" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-inheritedMember.1" name="inheritedMember" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-inheritedMember.1-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-allParents" name="allParents" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-allParents-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-inheritableMembers" name="inheritableMembers" class="Core-Constructs-Classifier" isQuery="true" precondition="Core-Constructs-Classifier-inheritableMembers-_ownedRule.0" bodyCondition="Core-Constructs-Classifier-inheritableMembers-spec">
<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>result = 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" upper="*" lower="0" 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" class="Core-Constructs-Classifier" isQuery="true" precondition="Core-Constructs-Classifier-hasVisibilityOf-_ownedRule.0" bodyCondition="Core-Constructs-Classifier-hasVisibilityOf-spec">
<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>result = 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" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-inherit-spec">
<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>result = inhs</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inherit-_ownedParameter.0" type="Core-Constructs-NamedElement" upper="*" lower="0" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Classifier-inherit-inhs" name="inhs" type="Core-Constructs-NamedElement" upper="*" lower="0"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Classifier-maySpecializeType" name="maySpecializeType" class="Core-Constructs-Classifier" isQuery="true" bodyCondition="Core-Constructs-Classifier-maySpecializeType-spec">
<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>result = 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="*" isReadOnly="true" 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="*" isReadOnly="true" 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" upper="*" lower="0" isReadOnly="true" isDerived="true" isDerivedUnion="true" isComposite="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" isReadOnly="true" 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" upper="*" lower="0" 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" class="Core-Constructs-Element" isQuery="true" bodyCondition="Core-Constructs-Element-allOwnedElements-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Element-mustBeOwned" name="mustBeOwned" class="Core-Constructs-Element" isQuery="true" bodyCondition="Core-Constructs-Element-mustBeOwned-spec">
<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>result = 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" upper="*" lower="0" isReadOnly="true" 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_gt_0" name="upper_gt_0" constrainedElement="Core-Constructs-MultiplicityElement" namespace="Core-Constructs-MultiplicityElement">
<ownedComment xmi:type="cmof:Comment" xmi:id="Core-Constructs-MultiplicityElement-upper_gt_0-_ownedComment.0" annotatedElement="Core-Constructs-MultiplicityElement-upper_gt_0">
<body>A multiplicity must define at least one valid cardinality that is greater than zero.</body>
</ownedComment>
<specification xmi:type="cmof:OpaqueExpression" xmi:id="Core-Constructs-MultiplicityElement-upper_gt_0-_specification">
<language>OCL</language>
<body>upperBound()->notEmpty() implies upperBound() > 0</body>
</specification>
</ownedRule>
<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" class="Core-Constructs-MultiplicityElement" isQuery="true" precondition="Core-Constructs-MultiplicityElement-isMultivalued-_ownedRule.0" bodyCondition="Core-Constructs-MultiplicityElement-isMultivalued-spec">
<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>result = 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" class="Core-Constructs-MultiplicityElement" isQuery="true" precondition="Core-Constructs-MultiplicityElement-includesMultiplicity-_ownedRule.0" bodyCondition="Core-Constructs-MultiplicityElement-includesMultiplicity-spec">
<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>result = (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" class="Core-Constructs-MultiplicityElement" isQuery="true" precondition="Core-Constructs-MultiplicityElement-includesCardinality-_ownedRule.0" bodyCondition="Core-Constructs-MultiplicityElement-includesCardinality-spec">
<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>result = (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" class="Core-Constructs-MultiplicityElement" isQuery="true" bodyCondition="Core-Constructs-MultiplicityElement-lowerBound-spec">
<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>result = 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" class="Core-Constructs-MultiplicityElement" isQuery="true" bodyCondition="Core-Constructs-MultiplicityElement-upperBound-spec">
<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>result = 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" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" isReadOnly="true" isDerived="true" isDerivedUnion="true" isComposite="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" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" 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" class="Core-Constructs-Namespace" isQuery="true" bodyCondition="Core-Constructs-Namespace-importedMember.1-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-getNamesOfMember" name="getNamesOfMember" class="Core-Constructs-Namespace" isQuery="true" bodyCondition="Core-Constructs-Namespace-getNamesOfMember-spec">
<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>result = if self.ownedMember->includes(element)&#xA;then Set{}->include(element.name)&#xA;else let elementImports: ElementImport = self.elementImport->select(ei | ei.importedElement = element) in&#xA; if elementImports->notEmpty()&#xA; then elementImports->collect(el | el.getName())&#xA; else self.packageImport->select(pi | pi.importedPackage.visibleMembers()->includes(element))->collect(pi | pi.importedPackage.getNamesOfMember(element))&#xA; endif&#xA;endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-getNamesOfMember-_ownedParameter.0" type="Core-PrimitiveTypes-String" upper="*" lower="0" 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" class="Core-Constructs-Namespace" isQuery="true" bodyCondition="Core-Constructs-Namespace-importMembers-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-importMembers-imps" name="imps" type="Core-Constructs-PackageableElement" upper="*" lower="0"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-excludeCollisions" name="excludeCollisions" class="Core-Constructs-Namespace" isQuery="true" bodyCondition="Core-Constructs-Namespace-excludeCollisions-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Namespace-excludeCollisions-imps" name="imps" type="Core-Constructs-PackageableElement" upper="*" lower="0"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Namespace-membersAreDistinguishable" name="membersAreDistinguishable" class="Core-Constructs-Namespace" isQuery="true" bodyCondition="Core-Constructs-Namespace-membersAreDistinguishable-spec">
<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>result = self.member->forAll( memb |&#xA;&#x9;self.member->excluding(memb)->forAll(other |&#xA;&#x9;&#x9;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>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-RedefinableElement-redefinitionContext" name="redefinitionContext" type="Core-Constructs-Classifier" upper="*" lower="0" isReadOnly="true" 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" upper="*" lower="0" isReadOnly="true" 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>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-RedefinableElement-isConsistentWith" name="isConsistentWith" class="Core-Constructs-RedefinableElement" isQuery="true" bodyCondition="Core-Constructs-RedefinableElement-isConsistentWith-spec">
<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>result = false</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" class="Core-Constructs-RedefinableElement" isQuery="true" bodyCondition="Core-Constructs-RedefinableElement-isRedefinitionContextValid-spec">
<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>result = 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="*" isReadOnly="true" 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" class="Core-Constructs-ValueSpecification" isQuery="true" bodyCondition="Core-Constructs-ValueSpecification-isComputable-spec">
<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>result = 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" class="Core-Constructs-ValueSpecification" isQuery="true" bodyCondition="Core-Constructs-ValueSpecification-integerValue-spec">
<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>result = 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" class="Core-Constructs-ValueSpecification" isQuery="true" bodyCondition="Core-Constructs-ValueSpecification-booleanValue-spec">
<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>result = 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" class="Core-Constructs-ValueSpecification" isQuery="true" bodyCondition="Core-Constructs-ValueSpecification-stringValue-spec">
<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>result = 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" class="Core-Constructs-ValueSpecification" isQuery="true" bodyCondition="Core-Constructs-ValueSpecification-unlimitedValue-spec">
<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>result = 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" class="Core-Constructs-ValueSpecification" isQuery="true" bodyCondition="Core-Constructs-ValueSpecification-isNull-spec">
<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>result = 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.</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>
<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" upper="*" lower="0" 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="*" isReadOnly="true" 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" upper="*" lower="2" 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" upper="*" lower="0" 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>
</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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Constructs-Class" isQuery="true" redefinedOperation="Core-Constructs-Classifier-inherit" bodyCondition="Core-Constructs-Class-inherit-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Class-inherit-inhs" name="inhs" type="Core-Constructs-NamedElement" upper="*" lower="0"/>
</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&#xA; (self.subsettingContext()->notEmpty() and self.subsettingContext()->forAll (sc |&#xA; self.subsettedProperty->forAll(sp |&#xA; 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&#xA; (redefinitionContext->notEmpty() and&#xA; redefinedProperty->forAll(rp|&#xA; ((redefinitionContext->collect(fc|&#xA; 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 |&#xA; self.type.conformsTo(sp.type) and&#xA; ((self.upperBound()->notEmpty() and sp.upperBound()->notEmpty()) implies&#xA; 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Constructs-Property" isQuery="true" bodyCondition="Core-Constructs-Property-opposite.1-spec">
<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>result = if owningAssociation->isEmpty() and association.memberEnd->size() = 2&#xA; then&#xA; let otherEnd = (association.memberEnd - self)->any() in&#xA; if otherEnd.owningAssociation->isEmpty() then otherEnd else Set{} endif&#xA; else Set {}&#xA; 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" class="Core-Constructs-Property" isQuery="true" precondition="Core-Constructs-Property-isConsistentWith-_ownedRule.0" redefinedOperation="Core-Constructs-RedefinableElement-isConsistentWith" bodyCondition="Core-Constructs-Property-isConsistentWith-spec">
<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>result = redefinee.oclIsKindOf(Property) and &#xA; let prop : Property = redefinee.oclAsType(Property) in &#xA; (prop.type.conformsTo(self.type) and &#xA; ((prop.lowerBound()->notEmpty() and self.lowerBound()->notEmpty()) implies prop.lowerBound() >= self.lowerBound()) and &#xA; ((prop.upperBound()->notEmpty() and self.upperBound()->notEmpty()) implies prop.lowerBound() &lt;= self.lowerBound()) and &#xA; (self.isDerived implies prop.isDerived) and&#xA; (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" class="Core-Constructs-Property" isQuery="true" bodyCondition="Core-Constructs-Property-subsettingContext-spec">
<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>result = if association->notEmpty()&#xA;then association.endType-type &#xA;else if classifier->notEmpty then Set{classifier} else Set{} endif&#xA;endif</body>
</specification>
</ownedRule>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-Property-subsettingContext-_ownedParameter.0" type="Core-Constructs-Classifier" upper="*" lower="0" direction="return"/>
</ownedOperation>
<ownedOperation xmi:type="cmof:Operation" xmi:id="Core-Constructs-Property-isNavigable" name="isNavigable" class="Core-Constructs-Property" isQuery="true" bodyCondition="Core-Constructs-Property-isNavigable-spec">
<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>result = not classifier->isEmpty() or&#xA;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" class="Core-Constructs-Property" isQuery="true" bodyCondition="Core-Constructs-Property-isAttribute-spec">
<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>result = 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Constructs-DataType" isQuery="true" redefinedOperation="Core-Constructs-Classifier-inherit" bodyCondition="Core-Constructs-DataType-inherit-spec">
<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>result = 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" upper="*" lower="0" direction="return"/>
<ownedParameter xmi:type="cmof:Parameter" xmi:id="Core-Constructs-DataType-inherit-inhs" name="inhs" type="Core-Constructs-NamedElement" upper="*" lower="0"/>
</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" upper="*" lower="0" 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().isOclKindOf(Boolean)</body>
</specification>
</ownedRule>
<ownedAttribute xmi:type="cmof:Property" xmi:id="Core-Constructs-Constraint-constrainedElement" name="constrainedElement" type="Core-Constructs-Element" isOrdered="true" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" isDerived="true" default="false">
<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" isDerived="true" default="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" isDerived="true" default="1">
<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" isDerived="true" default="1">
<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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Constructs-Operation" isQuery="true" bodyCondition="Core-Constructs-Operation-isOrdered.1-spec">
<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>result = 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" class="Core-Constructs-Operation" isQuery="true" bodyCondition="Core-Constructs-Operation-isUnique.1-spec">
<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>result = 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" class="Core-Constructs-Operation" isQuery="true" bodyCondition="Core-Constructs-Operation-lower.1-spec">
<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>result = 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" class="Core-Constructs-Operation" isQuery="true" bodyCondition="Core-Constructs-Operation-upper.1-spec">
<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>result = 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" class="Core-Constructs-Operation" isQuery="true" bodyCondition="Core-Constructs-Operation-type.1-spec">
<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>result = 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" class="Core-Constructs-Operation" isQuery="true" precondition="Core-Constructs-Operation-isConsistentWith-_ownedRule.0" redefinedOperation="Core-Constructs-RedefinableElement-isConsistentWith" bodyCondition="Core-Constructs-Operation-isConsistentWith-spec">
<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>result = (redefinee.oclIsKindOf(Operation) and&#xA; let op: Operation = redefinee.oclAsType(Operation) in&#xA; self.formalParameter.size() = op.formalParameter.size() and&#xA; self.returnResult.size() = op.returnResult.size() and&#xA; forAll(i | op.formalParameter[i].type.conformsTo(self.formalParameter[i].type)) and&#xA; forAll(i | op.returnResult[i].type.conformsTo(self.returnResult[i].type))&#xA;)</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" class="Core-Constructs-Operation" isQuery="true" bodyCondition="Core-Constructs-Operation-returnResult-spec">
<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>result = 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" upper="*" lower="0" 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" upper="*" lower="0" 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" upper="*" lower="0" 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" class="Core-Constructs-BehavioralFeature" isQuery="true" redefinedOperation="Core-Constructs-NamedElement-isDistinguishableFrom" bodyCondition="Core-Constructs-BehavioralFeature-isDistinguishableFrom-spec">
<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>result = if n.oclIsKindOf(BehavioralFeature)&#xA;then&#xA; if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()&#xA; then Set{}->include(self)->include(n)->isUnique( bf | bf.parameter->collect(type))&#xA; else true&#xA; endif&#xA;else true&#xA;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&q