-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathIElement.cs
More file actions
241 lines (214 loc) · 15.4 KB
/
IElement.cs
File metadata and controls
241 lines (214 loc) · 15.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
// -------------------------------------------------------------------------------------------------
// <copyright file="IElement.cs" company="Starion Group S.A.">
//
// Copyright (C) 2022-2026 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.Root.Elements
{
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using SysML2.NET.Core.POCO.Root.Annotations;
using SysML2.NET.Core.POCO.Root.Namespaces;
using SysML2.NET.Decorators;
/// <summary>
/// An Element is a constituent of a model that is uniquely identified relative to all other Elements.
/// It can have Relationships with other Elements. Some of these Relationships might imply ownership of
/// other Elements, which means that if an Element is deleted from a model, then so are all the Elements
/// that it owns.
/// </summary>
[Class(xmiId: "_18_5_3_12e503d9_1533160651703_306405_42199", isAbstract: true, isFinalSpecialization: false, isActive: false)]
[GeneratedCode("SysML2.NET", "latest")]
public partial interface IElement
{
/// <summary>
/// Various alternative identifiers for this Element. Generally, these will be set by tools.
/// </summary>
[Property(xmiId: "_19_0_2_12e503d9_1594312532679_496267_4310", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
List<string> AliasIds { get; set; }
/// <summary>
/// The declared name of this Element.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674987_737648_43307", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
string DeclaredName { get; set; }
/// <summary>
/// An optional alternative name for the Element that is intended to be shorter or in some way more
/// succinct than its primary name. It may act as a modeler-specified identifier for the Element, though
/// it is then the responsibility of the modeler to maintain the uniqueness of this identifier within a
/// model or relative to some other context.
/// </summary>
[Property(xmiId: "_19_0_2_12e503d9_1594160442439_915308_4153", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
string DeclaredShortName { get; set; }
/// <summary>
/// The Documentation owned by this Element.
/// </summary>
[Property(xmiId: "_19_0_2_12e503d9_1594150061166_345630_1621", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")]
List<IDocumentation> documentation { get; }
/// <summary>
/// The globally unique identifier for this Element. This is intended to be set by tooling, and it must
/// not change during the lifetime of the Element.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_844338_43305", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
string ElementId { get; set; }
/// <summary>
/// Whether all necessary implied Relationships have been included in the ownedRelationships of this
/// Element. This property may be true, even if there are not actually any ownedRelationships with
/// isImplied = true, meaning that no such Relationships are actually implied for this Element. However,
/// if it is false, then ownedRelationships may not contain any implied Relationships. That is, either
/// all required implied Relationships must be included, or none of them.
/// </summary>
[Property(xmiId: "_19_0_4_12e503d9_1662070949317_79713_3658", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")]
bool IsImpliedIncluded { get; set; }
/// <summary>
/// Whether this Element is contained in the ownership tree of a library model.
/// </summary>
[Property(xmiId: "_19_0_4_12e503d9_1665443500960_5561_723", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
bool isLibraryElement { get; }
/// <summary>
/// The name to be used for this Element during name resolution within its owningNamespace. This is
/// derived using the effectiveName() operation. By default, it is the same as the declaredName, but
/// this is overridden for certain kinds of Elements to compute a name even when the declaredName is
/// null.
/// </summary>
[Property(xmiId: "_19_0_4_12e503d9_1617485009541_709355_27528", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
string name { get; }
/// <summary>
/// The ownedRelationships of this Element that are Annotations, for which this Element is the
/// annotatedElement.
/// </summary>
[Property(xmiId: "_19_0_2_12e503d9_1594152527165_702130_2500", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543094430277_599480_18543")]
List<IAnnotation> ownedAnnotation { get; }
/// <summary>
/// The Elements owned by this Element, derived as the ownedRelatedElements of the ownedRelationships of
/// this Element.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1543092869879_112608_17278", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
List<IElement> ownedElement { get; }
/// <summary>
/// The Relationships for which this Element is the owningRelatedElement.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1543092026091_217766_16748", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_585972_43176")]
IReadOnlyList<IRelationship> OwnedRelationship { get; }
/// <summary>
/// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this
/// Element, if any.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1543092869879_744477_17277", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
IElement owner { get; }
/// <summary>
/// The owningRelationship of this Element, if that Relationship is a Membership.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674972_622493_43236", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674973_469277_43243")]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674986_482273_43303")]
IOwningMembership owningMembership { get; }
/// <summary>
/// The Namespace that owns this Element, which is the membershipOwningNamespace of the owningMembership
/// of this Element, if any.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_474739_43306", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674980_717955_43271")]
INamespace owningNamespace { get; }
/// <summary>
/// The Relationship for which this Element is an ownedRelatedElement, if any.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_482273_43303", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_585972_43176")]
IRelationship OwningRelationship { get; }
/// <summary>
/// The full ownership-qualified name of this Element, represented in a form that is valid according to
/// the KerML textual concrete syntax for qualified names (including use of unrestricted name notation
/// and escaped characters, as necessary). The qualifiedName is null if this Element has no
/// owningNamespace or if there is not a complete ownership chain of named Namespaces from a root
/// Namespace to this Element. If the owningNamespace has other Elements with the same name as this one,
/// then the qualifiedName is null for all such Elements other than the first.
/// </summary>
[Property(xmiId: "_19_0_4_12e503d9_1611356604987_900871_594", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
string qualifiedName { get; }
/// <summary>
/// The short name to be used for this Element during name resolution within its owningNamespace. This
/// is derived using the effectiveShortName() operation. By default, it is the same as the
/// declaredShortName, but this is overridden for certain kinds of Elements to compute a shortName even
/// when the declaredName is null.
/// </summary>
[Property(xmiId: "_19_0_4_12e503d9_1673496405504_544235_24", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
string shortName { get; }
/// <summary>
/// The TextualRepresentations that annotate this Element.
/// </summary>
[Property(xmiId: "_19_0_2_12e503d9_1594154758493_640290_3388", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_19_0_2_12e503d9_1594145755059_76214_87")]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")]
List<ITextualRepresentation> textualRepresentation { get; }
/// <summary>
/// Return name, if that is not null, otherwise the shortName, if that is not null, otherwise null. If
/// the returned value is non-null, it is returned as-is if it has the form of a basic name, or,
/// otherwise, represented as a restricted name according to the lexical structure of the KerML textual
/// notation (i.e., surrounded by single quote characters and with special characters escaped).
/// </summary>
/// <returns>
/// The expected <see cref="string" />
/// </returns>
string EscapedName() => this.ComputeEscapedNameOperation();
/// <summary>
/// Return an effective shortName for this Element. By default this is the same as its
/// declaredShortName.
/// </summary>
/// <returns>
/// The expected <see cref="string" />
/// </returns>
string EffectiveShortName() => this.ComputeEffectiveShortNameOperation();
/// <summary>
/// Return an effective name for this Element. By default this is the same as its declaredName.
/// </summary>
/// <returns>
/// The expected <see cref="string" />
/// </returns>
string EffectiveName() => this.ComputeEffectiveNameOperation();
/// <summary>
/// By default, return the library Namespace of the owningRelationship of this Element, if it has one.
/// </summary>
/// <returns>
/// The expected <see cref="INamespace" />
/// </returns>
INamespace LibraryNamespace() => this.ComputeLibraryNamespaceOperation();
/// <summary>
/// Return a unique description of the location of this Element in the containment structure rooted in a
/// root Namespace. If the Element has a non-null qualifiedName, then return that. Otherwise, if it has
/// an owningRelationship, then return the string constructed by appending to the path of it's
/// owningRelationship the character / followed by the string representation of its position in the list
/// of ownedRelatedElements of the owningRelationship (indexed starting at 1). Otherwise, return the
/// empty string. (Note that this operation is overridden for Relationships
/// to use owningRelatedElement when appropriate.)
/// </summary>
/// <returns>
/// The expected <see cref="string" />
/// </returns>
string Path() => this.ComputePathOperation();
}
}
// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------