Skip to content

Commit

Permalink
[Move] Ecore expected output to dedicated folder
Browse files Browse the repository at this point in the history
[Add] uml files
[Add] eml based Enum codegenerator
  • Loading branch information
samatstariongroup committed Mar 2, 2025
1 parent 1c96cc8 commit 6b480b2
Show file tree
Hide file tree
Showing 114 changed files with 50,143 additions and 17,938 deletions.
7,436 changes: 7,436 additions & 0 deletions Resources/KerML_only_xmi.uml

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions Resources/PrimitiveTypes.xmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.omg.org/spec/UML/20161101" xmlns:mofext="http://www.omg.org/spec/MOF/20131001">
<uml:Package xmi:type="uml:Package" xmi:id="_0" name="PrimitiveTypes" URI="http://www.omg.org/spec/PrimitiveTypes/20161101">
<packagedElement xmi:type="uml:PrimitiveType" xmi:id="Boolean" name="Boolean">
<ownedComment xmi:type="uml:Comment" xmi:id="Boolean-_ownedComment.0" annotatedElement="Boolean">
<body>Boolean is used for logical expressions, consisting of the predefined values true and false.</body>
</ownedComment>
</packagedElement>
<packagedElement xmi:type="uml:PrimitiveType" xmi:id="Integer" name="Integer">
<ownedComment xmi:type="uml:Comment" xmi:id="Integer-_ownedComment.0" annotatedElement="Integer">
<body>Integer is a primitive type representing integer values.</body>
</ownedComment>
</packagedElement>
<packagedElement xmi:type="uml:PrimitiveType" xmi:id="Real" name="Real">
<ownedComment xmi:type="uml:Comment" xmi:id="Real-_ownedComment.0" annotatedElement="Real">
<body>Real is a primitive type representing the mathematical concept of real.</body>
</ownedComment>
</packagedElement>
<packagedElement xmi:type="uml:PrimitiveType" xmi:id="String" name="String">
<ownedComment xmi:type="uml:Comment" xmi:id="String-_ownedComment.0" annotatedElement="String">
<body>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>
</packagedElement>
<packagedElement xmi:type="uml:PrimitiveType" xmi:id="UnlimitedNatural" name="UnlimitedNatural">
<ownedComment xmi:type="uml:Comment" xmi:id="UnlimitedNatural-_ownedComment.0" annotatedElement="UnlimitedNatural">
<body>UnlimitedNatural is a primitive type representing unlimited natural values.</body>
</ownedComment>
</packagedElement>
</uml:Package>
<mofext:Tag xmi:type="mofext:Tag" xmi:id="_1" name="org.omg.xmi.nsPrefix" value="primitives" element="_0"/>
<mofext:Tag xmi:type="mofext:Tag" xmi:id="_2" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#boolean" element="Boolean"/>
<mofext:Tag xmi:type="mofext:Tag" xmi:id="_3" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#integer" element="Integer"/>
<mofext:Tag xmi:type="mofext:Tag" xmi:id="_4" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#double" element="Real"/>
<mofext:Tag xmi:type="mofext:Tag" xmi:id="_5" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#string" element="String"/>
<mofext:Tag xmi:type="mofext:Tag" xmi:id="_6" name="org.omg.xmi.schemaType" value="http://www.w3.org/2001/XMLSchema#string" element="UnlimitedNatural"/>
</xmi:XMI>
8,545 changes: 8,545 additions & 0 deletions Resources/SysML_only_xmi.uml

Large diffs are not rendered by default.

15,676 changes: 15,676 additions & 0 deletions Resources/SysML_xmi.uml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="IAnnotatingElement.cs" company="Starion Group S.A.">
//
// Copyright 2022-2025 Starion Group S.A.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Core.POCO
{
using System;
using System.Collections.Generic;

using SysML2.NET.Core;
using SysML2.NET.Decorators;

/// <summary>
/// An AnnotatingElement is an Element that provides additional description of or metadata on some other
/// Element. An AnnotatingElement is either attached to its annotatedElements by Annotation
/// Relationships, or it implicitly annotates its owningNamespace.annotatedElement = if
/// annotation->notEmpty() then annotation.annotatedElement else Sequence{owningNamespace}
/// endifownedAnnotatingRelationship = ownedRelationship-> selectByKind(Annotation)-> select(a |
/// a.annotatingElement = self)annotation = if owningAnnotatingRelationship = null then
/// ownedAnnotatingRelationship else
/// owningAnnotatingRelationship->prepend(owningAnnotatingRelationship) endif
/// </summary>
public partial interface IAnnotatingElement : IElement
{
/// <summary>
/// Queries the derived property AnnotatedElement
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: true, isUnique: true, lowerBound: 1, upperBound: -1, isMany: false, isRequired: false, isContainment: false)]
List<IElement> QueryAnnotatedElement();

/// <summary>
/// Queries the derived property Annotation
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: true, isUnique: true, lowerBound: 0, upperBound: -1, isMany: false, isRequired: false, isContainment: false)]
List<Annotation> QueryAnnotation();

/// <summary>
/// Queries the derived property OwnedAnnotatingRelationship
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: true, isUnique: true, lowerBound: 0, upperBound: -1, isMany: false, isRequired: false, isContainment: false)]
List<Annotation> QueryOwnedAnnotatingRelationship();

/// <summary>
/// Queries the derived property OwningAnnotatingRelationship
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: false, isUnique: true, lowerBound: 0, upperBound: 1, isMany: false, isRequired: false, isContainment: false)]
Annotation QueryOwningAnnotatingRelationship();

}
}

// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------------
// <copyright file="IAnnotatingElement.cs" company="Starion Group S.A.">
//
// Copyright 2022-2025 Starion Group S.A.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// </copyright>
// ------------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------

namespace SysML2.NET.Core.POCO
{
using System;
using System.Collections.Generic;

using SysML2.NET.Core;
using SysML2.NET.Decorators;

/// <summary>
/// An AnnotatingElement is an Element that provides additional description of or metadata on some other
/// Element. An AnnotatingElement is either attached to its annotatedElements by Annotation
/// Relationships, or it implicitly annotates its owningNamespace.annotatedElement = if
/// annotation->notEmpty() then annotation.annotatedElement else Sequence{owningNamespace}
/// endifownedAnnotatingRelationship = ownedRelationship-> selectByKind(Annotation)-> select(a |
/// a.annotatingElement = self)annotation = if owningAnnotatingRelationship = null then
/// ownedAnnotatingRelationship else
/// owningAnnotatingRelationship->prepend(owningAnnotatingRelationship) endif
/// </summary>
public partial interface IAnnotatingElement : IElement
{
/// <summary>
/// Queries the derived property AnnotatedElement
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: true, isUnique: true, lowerBound: 1, upperBound: -1, isMany: false, isRequired: false, isContainment: false)]
List<IElement> QueryAnnotatedElement();

/// <summary>
/// Queries the derived property Annotation
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: true, isUnique: true, lowerBound: 0, upperBound: -1, isMany: false, isRequired: false, isContainment: false)]
List<Annotation> QueryAnnotation();

/// <summary>
/// Queries the derived property OwnedAnnotatingRelationship
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: true, isUnique: true, lowerBound: 0, upperBound: -1, isMany: false, isRequired: false, isContainment: false)]
List<Annotation> QueryOwnedAnnotatingRelationship();

/// <summary>
/// Queries the derived property OwningAnnotatingRelationship
/// </summary>
[EFeature(isChangeable: true, isVolatile: true, isTransient: true, isUnsettable: false, isDerived: true, isOrdered: false, isUnique: true, lowerBound: 0, upperBound: 1, isMany: false, isRequired: false, isContainment: false)]
Annotation QueryOwningAnnotatingRelationship();

}
}

// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------
Loading

0 comments on commit 6b480b2

Please sign in to comment.