|
| 1 | +// ------------------------------------------------------------------------------------------------- |
| 2 | +// <copyright file="AnnotatingElement.cs" company="RHEA System S.A."> |
| 3 | +// |
| 4 | +// Copyright 2022-2023 RHEA System S.A. |
| 5 | +// |
| 6 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +// you may not use this file except in compliance with the License. |
| 8 | +// You may obtain a copy of the License at |
| 9 | +// |
| 10 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +// |
| 12 | +// Unless required by applicable law or agreed to in writing, software |
| 13 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +// See the License for the specific language governing permissions and |
| 16 | +// limitations under the License. |
| 17 | +// |
| 18 | +// </copyright> |
| 19 | +// ------------------------------------------------------------------------------------------------ |
| 20 | + |
| 21 | +// ------------------------------------------------------------------------------------------------ |
| 22 | +// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- |
| 23 | +// ------------------------------------------------------------------------------------------------ |
| 24 | + |
| 25 | +namespace SysML2.NET.Core.POCO |
| 26 | +{ |
| 27 | + using System; |
| 28 | + using System.Collections.Generic; |
| 29 | + |
| 30 | + using SysML2.NET.Core; |
| 31 | + |
| 32 | + /// <summary> |
| 33 | + /// An AnnotatingElement is an Element that provides additional description of or metadata on some other |
| 34 | + /// Element. An AnnotatingElement is attached to its annotatedElement by an Annotation |
| 35 | + /// Relationship.annotatedElement = if annotation->notEmpty() then annotation.annotatedElement else |
| 36 | + /// owningNamespace endif |
| 37 | + /// </summary> |
| 38 | + public partial class AnnotatingElement : IAnnotatingElement |
| 39 | + { |
| 40 | + /// <summary> |
| 41 | + /// Initializes a new instance of the <see cref="AnnotatingElement"/> class. |
| 42 | + /// </summary> |
| 43 | + public AnnotatingElement() |
| 44 | + { |
| 45 | + this.AliasIds = new List<string>(); |
| 46 | + this.Annotation = new List<Annotation>(); |
| 47 | + this.IsImpliedIncluded = false; |
| 48 | + this.OwnedRelationship = new List<Relationship>(); |
| 49 | + } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// Gets or sets the unique identifier |
| 53 | + /// </summary> |
| 54 | + public Guid Id { get; set; } |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// Various alternative identifiers for this Element. Generally, these will be set by tools. |
| 58 | + /// </summary> |
| 59 | + public List<string> AliasIds { get; set; } |
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// Queries the derived property AnnotatedElement |
| 63 | + /// </summary> |
| 64 | + public List<Element> QueryAnnotatedElement() |
| 65 | + { |
| 66 | + throw new NotImplementedException("Derived property AnnotatedElement not yet supported"); |
| 67 | + } |
| 68 | + |
| 69 | + /// <summary> |
| 70 | + /// The Annotations that relate this AnnotatingElement to its annotatedElements. |
| 71 | + /// </summary> |
| 72 | + public List<Annotation> Annotation { get; set; } |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// Queries the derived property Documentation |
| 76 | + /// </summary> |
| 77 | + public List<Documentation> QueryDocumentation() |
| 78 | + { |
| 79 | + throw new NotImplementedException("Derived property Documentation not yet supported"); |
| 80 | + } |
| 81 | + |
| 82 | + /// <summary> |
| 83 | + /// Queries the derived property EffectiveName |
| 84 | + /// </summary> |
| 85 | + public string QueryEffectiveName() |
| 86 | + { |
| 87 | + throw new NotImplementedException("Derived property EffectiveName not yet supported"); |
| 88 | + } |
| 89 | + |
| 90 | + /// <summary> |
| 91 | + /// The globally unique identifier for this Element. This is intended to be set by tooling, and it must |
| 92 | + /// not change during the lifetime of the Element. |
| 93 | + /// </summary> |
| 94 | + public string ElementId { get; set; } |
| 95 | + |
| 96 | + /// <summary> |
| 97 | + /// Whether all necessary implied Relationships have been included in the ownedRelationships of this |
| 98 | + /// Element. This property may be true, even if there are not actually any ownedRelationships with |
| 99 | + /// isImplied = true, meaning that no such Relationships are actually implied for this Element. However, |
| 100 | + /// if it is false, then ownedRelationships may not contain any implied Relationships. That is, either |
| 101 | + /// all required implied Relationships must be included, or none of them. |
| 102 | + /// </summary> |
| 103 | + public bool IsImpliedIncluded { get; set; } |
| 104 | + |
| 105 | + /// <summary> |
| 106 | + /// Queries the derived property IsLibraryElement |
| 107 | + /// </summary> |
| 108 | + public bool QueryIsLibraryElement() |
| 109 | + { |
| 110 | + throw new NotImplementedException("Derived property IsLibraryElement not yet supported"); |
| 111 | + } |
| 112 | + |
| 113 | + /// <summary> |
| 114 | + /// The primary name of this Element. |
| 115 | + /// </summary> |
| 116 | + public string Name { get; set; } |
| 117 | + |
| 118 | + /// <summary> |
| 119 | + /// Queries the derived property OwnedAnnotation |
| 120 | + /// </summary> |
| 121 | + public List<Annotation> QueryOwnedAnnotation() |
| 122 | + { |
| 123 | + throw new NotImplementedException("Derived property OwnedAnnotation not yet supported"); |
| 124 | + } |
| 125 | + |
| 126 | + /// <summary> |
| 127 | + /// Queries the derived property OwnedElement |
| 128 | + /// </summary> |
| 129 | + public List<Element> QueryOwnedElement() |
| 130 | + { |
| 131 | + throw new NotImplementedException("Derived property OwnedElement not yet supported"); |
| 132 | + } |
| 133 | + |
| 134 | + /// <summary> |
| 135 | + /// The Relationships for which this Element is the owningRelatedElement. |
| 136 | + /// </summary> |
| 137 | + public List<Relationship> OwnedRelationship { get; set; } |
| 138 | + |
| 139 | + /// <summary> |
| 140 | + /// Queries the derived property Owner |
| 141 | + /// </summary> |
| 142 | + public Element QueryOwner() |
| 143 | + { |
| 144 | + throw new NotImplementedException("Derived property Owner not yet supported"); |
| 145 | + } |
| 146 | + |
| 147 | + /// <summary> |
| 148 | + /// Queries the derived property OwningMembership |
| 149 | + /// </summary> |
| 150 | + public OwningMembership QueryOwningMembership() |
| 151 | + { |
| 152 | + throw new NotImplementedException("Derived property OwningMembership not yet supported"); |
| 153 | + } |
| 154 | + |
| 155 | + /// <summary> |
| 156 | + /// Queries the derived property OwningNamespace |
| 157 | + /// </summary> |
| 158 | + public Namespace QueryOwningNamespace() |
| 159 | + { |
| 160 | + throw new NotImplementedException("Derived property OwningNamespace not yet supported"); |
| 161 | + } |
| 162 | + |
| 163 | + /// <summary> |
| 164 | + /// The Relationship for which this Element is an ownedRelatedElement, if any. |
| 165 | + /// </summary> |
| 166 | + public Relationship OwningRelationship { get; set; } |
| 167 | + |
| 168 | + /// <summary> |
| 169 | + /// Queries the derived property QualifiedName |
| 170 | + /// </summary> |
| 171 | + public string QueryQualifiedName() |
| 172 | + { |
| 173 | + throw new NotImplementedException("Derived property QualifiedName not yet supported"); |
| 174 | + } |
| 175 | + |
| 176 | + /// <summary> |
| 177 | + /// An optional alternative name for the Element that is intended to be shorter or in some way more |
| 178 | + /// succinct than its primary name. It may act as a modeler-specified identifier for the Element, though |
| 179 | + /// it is then the responsibility of the modeler to maintain the uniqueness of this identifier within a |
| 180 | + /// model or relative to some other context. |
| 181 | + /// </summary> |
| 182 | + public string ShortName { get; set; } |
| 183 | + |
| 184 | + /// <summary> |
| 185 | + /// Queries the derived property TextualRepresentation |
| 186 | + /// </summary> |
| 187 | + public List<TextualRepresentation> QueryTextualRepresentation() |
| 188 | + { |
| 189 | + throw new NotImplementedException("Derived property TextualRepresentation not yet supported"); |
| 190 | + } |
| 191 | + |
| 192 | + } |
| 193 | +} |
| 194 | + |
| 195 | +// ------------------------------------------------------------------------------------------------ |
| 196 | +// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- |
| 197 | +// ------------------------------------------------------------------------------------------------ |
0 commit comments