From 823a9cae461ecc051d55875943be5c9e1a821313 Mon Sep 17 00:00:00 2001 From: atheate Date: Wed, 25 Mar 2026 15:47:11 +0100 Subject: [PATCH] POCO interface defines operation --- .../UML/Core/AutoGenPoco/AnnotatingElement.cs | 2 +- .../UML/Core/AutoGenPoco/Association.cs | 4 +- .../UML/Core/AutoGenPoco/Dependency.cs | 4 +- .../Core/AutoGenPoco/EnumerationDefinition.cs | 2 +- .../Expected/UML/Core/AutoGenPoco/Feature.cs | 2 +- .../UML/Core/AutoGenPoco/FeatureTyping.cs | 4 +- .../Expected/UML/Core/AutoGenPoco/Flow.cs | 4 +- .../AutoGenPoco/FramedConcernMembership.cs | 4 +- .../Expected/UML/Core/AutoGenPoco/IElement.cs | 51 ++- .../Expected/UML/Core/AutoGenPoco/IFeature.cs | 202 +++++++++ .../UML/Core/AutoGenPoco/IMembership.cs | 14 + .../Core/AutoGenPoco/IMultiplicityRange.cs | 26 ++ .../UML/Core/AutoGenPoco/IOwningMembership.cs | 9 + .../UML/Core/AutoGenPoco/IRelationship.cs | 21 +- .../Expected/UML/Core/AutoGenPoco/IUsage.cs | 17 + .../UML/Core/AutoGenPoco/LiteralInteger.cs | 2 +- .../UML/Core/AutoGenPoco/LiteralRational.cs | 2 +- .../UML/Core/AutoGenPoco/Membership.cs | 4 +- .../UML/Core/AutoGenPoco/MultiplicityRange.cs | 2 +- .../UML/Core/AutoGenPoco/OwningMembership.cs | 4 +- .../Core/AutoGenPoco/ReferenceSubsetting.cs | 4 +- .../UML/Core/AutoGenPoco/RequirementUsage.cs | 2 +- .../UML/Core/AutoGenPoco/SelectExpression.cs | 2 +- .../UML/Core/AutoGenPoco/Subclassification.cs | 4 +- .../Core/AutoGenPoco/TextualRepresentation.cs | 2 +- .../Expected/UML/Core/AutoGenPoco/Usage.cs | 2 +- .../AnnotatingElementExtensions.cs | 16 +- .../AssociationExtensions.cs | 16 +- .../AutoGenPocoExtend/ElementExtensions.cs | 128 +++++- .../EnumerationDefinitionExtensions.cs | 4 +- .../AutoGenPocoExtend/FeatureExtensions.cs | 392 +++++++++++++++-- .../FeatureTypingExtensions.cs | 4 +- .../Core/AutoGenPocoExtend/FlowExtensions.cs | 24 +- .../FramedConcernMembershipExtensions.cs | 8 +- .../AutoGenPocoExtend/MembershipExtensions.cs | 29 +- .../MultiplicityRangeExtensions.cs | 52 ++- .../OwningMembershipExtensions.cs | 32 +- .../ReferenceSubsettingExtensions.cs | 4 +- .../RelationshipExtensions.cs | 37 +- .../RequirementUsageExtensions.cs | 32 +- .../SubclassificationExtensions.cs | 4 +- .../TextualRepresentationExtensions.cs | 4 +- .../Core/AutoGenPocoExtend/UsageExtensions.cs | 175 ++++---- .../Extensions/TypeExtensions.cs | 54 +++ .../UmlCorePocoGenerator.cs | 8 +- .../UmlPocoClassExtensionsGenerator.cs | 10 +- .../HandleBarHelpers/ClassHelper.cs | 17 +- .../HandleBarHelpers/OperationHelper.cs | 189 +++++++++ .../HandleBarHelpers/PropertyHelper.cs | 4 +- .../Uml/core-poco-extend-uml-template.hbs | 19 +- .../Uml/core-poco-interface-uml-template.hbs | 8 + .../Core/AutoGenPoco/AcceptActionUsage.cs | 2 +- .../Core/AutoGenPoco/ActionDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ActionUsage.cs | 3 +- .../Core/AutoGenPoco/ActorMembership.cs | 4 +- .../Core/AutoGenPoco/AllocationDefinition.cs | 4 +- .../Core/AutoGenPoco/AllocationUsage.cs | 4 +- .../AutoGenPoco/AnalysisCaseDefinition.cs | 2 +- .../Core/AutoGenPoco/AnalysisCaseUsage.cs | 2 +- .../Core/AutoGenPoco/AnnotatingElement.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Annotation.cs | 4 +- .../Core/AutoGenPoco/AssertConstraintUsage.cs | 2 +- .../Core/AutoGenPoco/AssignmentActionUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Association.cs | 4 +- .../Core/AutoGenPoco/AssociationStructure.cs | 4 +- .../Core/AutoGenPoco/AttributeDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Behavior.cs | 2 +- .../Core/AutoGenPoco/BindingConnector.cs | 4 +- .../AutoGenPoco/BindingConnectorAsUsage.cs | 4 +- .../Core/AutoGenPoco/BooleanExpression.cs | 2 +- .../Core/AutoGenPoco/CalculationDefinition.cs | 2 +- .../Core/AutoGenPoco/CalculationUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/CaseUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Class.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Classifier.cs | 2 +- .../Core/AutoGenPoco/CollectExpression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Comment.cs | 2 +- .../Core/AutoGenPoco/ConcernDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs | 2 +- .../AutoGenPoco/ConjugatedPortDefinition.cs | 2 +- .../Core/AutoGenPoco/ConjugatedPortTyping.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Conjugation.cs | 4 +- .../Core/AutoGenPoco/ConnectionDefinition.cs | 4 +- .../Core/AutoGenPoco/ConnectionUsage.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Connector.cs | 4 +- .../Core/AutoGenPoco/ConstraintDefinition.cs | 2 +- .../Core/AutoGenPoco/ConstraintUsage.cs | 2 +- .../Core/AutoGenPoco/ConstructorExpression.cs | 2 +- .../Core/AutoGenPoco/CrossSubsetting.cs | 4 +- SysML2.NET/Core/AutoGenPoco/DataType.cs | 2 +- SysML2.NET/Core/AutoGenPoco/DecisionNode.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Definition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Dependency.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Differencing.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Disjoining.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Documentation.cs | 2 +- .../AutoGenPoco/ElementFilterMembership.cs | 4 +- .../Core/AutoGenPoco/EndFeatureMembership.cs | 4 +- .../Core/AutoGenPoco/EnumerationDefinition.cs | 2 +- .../Core/AutoGenPoco/EnumerationUsage.cs | 2 +- .../Core/AutoGenPoco/EventOccurrenceUsage.cs | 2 +- .../Core/AutoGenPoco/ExhibitStateUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Expression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Feature.cs | 2 +- .../AutoGenPoco/FeatureChainExpression.cs | 2 +- .../Core/AutoGenPoco/FeatureChaining.cs | 4 +- .../Core/AutoGenPoco/FeatureInverting.cs | 4 +- .../Core/AutoGenPoco/FeatureMembership.cs | 4 +- .../AutoGenPoco/FeatureReferenceExpression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs | 4 +- SysML2.NET/Core/AutoGenPoco/FeatureValue.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Flow.cs | 4 +- SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs | 4 +- SysML2.NET/Core/AutoGenPoco/FlowEnd.cs | 2 +- SysML2.NET/Core/AutoGenPoco/FlowUsage.cs | 4 +- .../Core/AutoGenPoco/ForLoopActionUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ForkNode.cs | 2 +- .../AutoGenPoco/FramedConcernMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Function.cs | 2 +- .../Core/AutoGenPoco/IAcceptActionUsage.cs | 7 + SysML2.NET/Core/AutoGenPoco/IActionUsage.cs | 43 ++ .../Core/AutoGenPoco/ICalculationUsage.cs | 10 + .../AutoGenPoco/IConjugatedPortDefinition.cs | 8 + .../Core/AutoGenPoco/IConstraintUsage.cs | 20 + .../AutoGenPoco/IConstructorExpression.cs | 11 + SysML2.NET/Core/AutoGenPoco/IControlNode.cs | 17 + SysML2.NET/Core/AutoGenPoco/IElement.cs | 51 ++- SysML2.NET/Core/AutoGenPoco/IExpression.cs | 43 ++ SysML2.NET/Core/AutoGenPoco/IFeature.cs | 202 +++++++++ .../AutoGenPoco/IFeatureChainExpression.cs | 8 + .../IFeatureReferenceExpression.cs | 34 ++ SysML2.NET/Core/AutoGenPoco/IImport.cs | 11 + .../AutoGenPoco/IInstantiationExpression.cs | 10 + .../Core/AutoGenPoco/IInvocationExpression.cs | 24 ++ .../Core/AutoGenPoco/ILibraryPackage.cs | 7 + .../Core/AutoGenPoco/ILiteralExpression.cs | 21 + SysML2.NET/Core/AutoGenPoco/IMembership.cs | 14 + .../Core/AutoGenPoco/IMembershipImport.cs | 12 + .../AutoGenPoco/IMetadataAccessExpression.cs | 36 ++ .../Core/AutoGenPoco/IMetadataFeature.cs | 38 ++ .../Core/AutoGenPoco/IMultiplicityRange.cs | 26 ++ SysML2.NET/Core/AutoGenPoco/INamespace.cs | 153 +++++++ .../Core/AutoGenPoco/INamespaceImport.cs | 12 + .../Core/AutoGenPoco/INullExpression.cs | 21 + .../Core/AutoGenPoco/IOperatorExpression.cs | 8 + .../Core/AutoGenPoco/IOwningMembership.cs | 9 + SysML2.NET/Core/AutoGenPoco/IPackage.cs | 21 + .../Core/AutoGenPoco/IParameterMembership.cs | 8 + .../Core/AutoGenPoco/IPerformActionUsage.cs | 9 + .../Core/AutoGenPoco/IReferenceUsage.cs | 8 + SysML2.NET/Core/AutoGenPoco/IRelationship.cs | 21 +- .../AutoGenPoco/IReturnParameterMembership.cs | 9 + SysML2.NET/Core/AutoGenPoco/IStateUsage.cs | 13 + .../Core/AutoGenPoco/ITransitionUsage.cs | 17 + .../ITriggerInvocationExpression.cs | 9 + SysML2.NET/Core/AutoGenPoco/IType.cs | 198 +++++++++ SysML2.NET/Core/AutoGenPoco/IUsage.cs | 17 + SysML2.NET/Core/AutoGenPoco/IViewUsage.cs | 10 + SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs | 2 +- .../Core/AutoGenPoco/IncludeUseCaseUsage.cs | 2 +- .../Core/AutoGenPoco/IndexExpression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Interaction.cs | 4 +- .../Core/AutoGenPoco/InterfaceDefinition.cs | 4 +- SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Intersecting.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Invariant.cs | 2 +- .../Core/AutoGenPoco/InvocationExpression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ItemUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/JoinNode.cs | 2 +- SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs | 2 +- .../Core/AutoGenPoco/LiteralExpression.cs | 2 +- .../Core/AutoGenPoco/LiteralInfinity.cs | 2 +- SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs | 2 +- .../Core/AutoGenPoco/LiteralRational.cs | 2 +- SysML2.NET/Core/AutoGenPoco/LiteralString.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Membership.cs | 4 +- .../Core/AutoGenPoco/MembershipExpose.cs | 4 +- .../Core/AutoGenPoco/MembershipImport.cs | 4 +- SysML2.NET/Core/AutoGenPoco/MergeNode.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Metaclass.cs | 2 +- .../AutoGenPoco/MetadataAccessExpression.cs | 3 +- .../Core/AutoGenPoco/MetadataDefinition.cs | 2 +- .../Core/AutoGenPoco/MetadataFeature.cs | 2 +- SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Multiplicity.cs | 2 +- .../Core/AutoGenPoco/MultiplicityRange.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Namespace.cs | 3 +- .../Core/AutoGenPoco/NamespaceExpose.cs | 4 +- .../Core/AutoGenPoco/NamespaceImport.cs | 4 +- SysML2.NET/Core/AutoGenPoco/NullExpression.cs | 2 +- .../Core/AutoGenPoco/ObjectiveMembership.cs | 4 +- .../Core/AutoGenPoco/OccurrenceDefinition.cs | 2 +- .../Core/AutoGenPoco/OccurrenceUsage.cs | 2 +- .../Core/AutoGenPoco/OperatorExpression.cs | 2 +- .../Core/AutoGenPoco/OwningMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Package.cs | 2 +- .../Core/AutoGenPoco/ParameterMembership.cs | 5 +- SysML2.NET/Core/AutoGenPoco/PartDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/PartUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs | 2 +- .../Core/AutoGenPoco/PerformActionUsage.cs | 2 +- .../Core/AutoGenPoco/PortConjugation.cs | 4 +- SysML2.NET/Core/AutoGenPoco/PortDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/PortUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Predicate.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Redefinition.cs | 4 +- .../Core/AutoGenPoco/ReferenceSubsetting.cs | 4 +- SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs | 2 +- .../Core/AutoGenPoco/RenderingDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs | 2 +- .../RequirementConstraintMembership.cs | 4 +- .../Core/AutoGenPoco/RequirementDefinition.cs | 2 +- .../Core/AutoGenPoco/RequirementUsage.cs | 2 +- .../RequirementVerificationMembership.cs | 4 +- .../AutoGenPoco/ResultExpressionMembership.cs | 4 +- .../AutoGenPoco/ReturnParameterMembership.cs | 5 +- .../AutoGenPoco/SatisfyRequirementUsage.cs | 2 +- .../Core/AutoGenPoco/SelectExpression.cs | 2 +- .../Core/AutoGenPoco/SendActionUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Specialization.cs | 4 +- .../Core/AutoGenPoco/StakeholderMembership.cs | 4 +- .../Core/AutoGenPoco/StateDefinition.cs | 2 +- .../AutoGenPoco/StateSubactionMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/StateUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Step.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Structure.cs | 2 +- .../Core/AutoGenPoco/Subclassification.cs | 4 +- .../Core/AutoGenPoco/SubjectMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Subsetting.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Succession.cs | 4 +- .../Core/AutoGenPoco/SuccessionAsUsage.cs | 4 +- SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs | 4 +- .../Core/AutoGenPoco/SuccessionFlowUsage.cs | 4 +- .../Core/AutoGenPoco/TerminateActionUsage.cs | 2 +- .../Core/AutoGenPoco/TextualRepresentation.cs | 2 +- .../TransitionFeatureMembership.cs | 4 +- .../Core/AutoGenPoco/TransitionUsage.cs | 2 +- .../TriggerInvocationExpression.cs | 2 +- SysML2.NET/Core/AutoGenPoco/Type.cs | 3 +- SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Unioning.cs | 4 +- SysML2.NET/Core/AutoGenPoco/Usage.cs | 2 +- .../Core/AutoGenPoco/UseCaseDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs | 2 +- .../Core/AutoGenPoco/VariantMembership.cs | 4 +- .../AutoGenPoco/VerificationCaseDefinition.cs | 2 +- .../Core/AutoGenPoco/VerificationCaseUsage.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs | 2 +- .../AutoGenPoco/ViewRenderingMembership.cs | 4 +- SysML2.NET/Core/AutoGenPoco/ViewUsage.cs | 2 +- .../Core/AutoGenPoco/ViewpointDefinition.cs | 2 +- SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs | 2 +- .../Core/AutoGenPoco/WhileLoopActionUsage.cs | 2 +- .../Extend/AcceptActionUsageExtensions.cs | 30 +- .../Extend/ActionDefinitionExtensions.cs | 8 +- SysML2.NET/Extend/ActionUsageExtensions.cs | 79 +++- .../Extend/ActorMembershipExtensions.cs | 8 +- .../Extend/AllocationDefinitionExtensions.cs | 9 +- .../Extend/AllocationUsageExtensions.cs | 9 +- .../AnalysisCaseDefinitionExtensions.cs | 8 +- .../Extend/AnalysisCaseUsageExtensions.cs | 12 +- .../Extend/AnnotatingElementExtensions.cs | 20 +- SysML2.NET/Extend/AnnotationExtensions.cs | 20 +- .../Extend/AssertConstraintUsageExtensions.cs | 8 +- .../Extend/AssignmentActionUsageExtensions.cs | 16 +- SysML2.NET/Extend/AssociationExtensions.cs | 22 +- SysML2.NET/Extend/AttributeUsageExtensions.cs | 12 +- SysML2.NET/Extend/BehaviorExtensions.cs | 12 +- .../Extend/BooleanExpressionExtensions.cs | 8 +- .../Extend/CalculationDefinitionExtensions.cs | 8 +- .../Extend/CalculationUsageExtensions.cs | 25 +- SysML2.NET/Extend/CaseDefinitionExtensions.cs | 16 +- SysML2.NET/Extend/CaseUsageExtensions.cs | 20 +- SysML2.NET/Extend/ClassifierExtensions.cs | 8 +- .../Extend/CollectExpressionExtensions.cs | 18 +- SysML2.NET/Extend/CommentExtensions.cs | 12 +- SysML2.NET/Extend/ConcernUsageExtensions.cs | 8 +- .../ConjugatedPortDefinitionExtensions.cs | 27 +- .../Extend/ConjugatedPortTypingExtensions.cs | 8 +- SysML2.NET/Extend/ConjugationExtensions.cs | 8 +- .../Extend/ConnectionDefinitionExtensions.cs | 8 +- .../Extend/ConnectionUsageExtensions.cs | 9 +- SysML2.NET/Extend/ConnectorExtensions.cs | 28 +- .../Extend/ConstraintUsageExtensions.cs | 42 +- .../Extend/ConstructorExpressionExtensions.cs | 60 +++ SysML2.NET/Extend/ControlNodeExtensions.cs | 89 ++++ .../Extend/CrossSubsettingExtensions.cs | 8 +- SysML2.NET/Extend/DefinitionExtensions.cs | 128 +++--- SysML2.NET/Extend/DependencyExtensions.cs | 11 +- SysML2.NET/Extend/DifferencingExtensions.cs | 8 +- SysML2.NET/Extend/DisjoiningExtensions.cs | 8 +- SysML2.NET/Extend/DocumentationExtensions.cs | 8 +- SysML2.NET/Extend/ElementExtensions.cs | 132 ++++-- .../ElementFilterMembershipExtensions.cs | 8 +- .../Extend/EndFeatureMembershipExtensions.cs | 8 +- .../Extend/EnumerationDefinitionExtensions.cs | 8 +- .../Extend/EnumerationUsageExtensions.cs | 8 +- .../Extend/EventOccurrenceUsageExtensions.cs | 12 +- .../Extend/ExhibitStateUsageExtensions.cs | 8 +- SysML2.NET/Extend/ExposeExtensions.cs | 12 +- SysML2.NET/Extend/ExpressionExtensions.cs | 80 +++- .../FeatureChainExpressionExtensions.cs | 23 +- .../Extend/FeatureChainingExtensions.cs | 8 +- SysML2.NET/Extend/FeatureExtensions.cs | 396 ++++++++++++++++-- .../Extend/FeatureInvertingExtensions.cs | 8 +- .../Extend/FeatureMembershipExtensions.cs | 12 +- .../FeatureReferenceExpressionExtensions.cs | 56 ++- SysML2.NET/Extend/FeatureTypingExtensions.cs | 8 +- SysML2.NET/Extend/FeatureValueExtensions.cs | 12 +- SysML2.NET/Extend/FlowDefinitionExtensions.cs | 9 +- SysML2.NET/Extend/FlowExtensions.cs | 28 +- SysML2.NET/Extend/FlowUsageExtensions.cs | 9 +- .../Extend/ForLoopActionUsageExtensions.cs | 12 +- .../FramedConcernMembershipExtensions.cs | 12 +- SysML2.NET/Extend/FunctionExtensions.cs | 16 +- SysML2.NET/Extend/IfActionUsageExtensions.cs | 16 +- SysML2.NET/Extend/ImportExtensions.cs | 30 +- .../Extend/IncludeUseCaseUsageExtensions.cs | 8 +- .../Extend/IndexExpressionExtensions.cs | 16 +- .../InstantiationExpressionExtensions.cs | 29 +- .../Extend/InterfaceDefinitionExtensions.cs | 9 +- SysML2.NET/Extend/InterfaceUsageExtensions.cs | 9 +- SysML2.NET/Extend/IntersectingExtensions.cs | 8 +- SysML2.NET/Extend/InvariantExtensions.cs | 15 +- .../Extend/InvocationExpressionExtensions.cs | 80 ++++ SysML2.NET/Extend/ItemUsageExtensions.cs | 8 +- SysML2.NET/Extend/LibraryPackageExtensions.cs | 26 +- SysML2.NET/Extend/LiteralBooleanExtensions.cs | 16 +- .../Extend/LiteralExpressionExtensions.cs | 77 ++++ SysML2.NET/Extend/LiteralIntegerExtensions.cs | 18 +- .../Extend/LiteralRationalExtensions.cs | 16 +- SysML2.NET/Extend/LiteralStringExtensions.cs | 16 +- .../Extend/LoopActionUsageExtensions.cs | 9 +- SysML2.NET/Extend/MembershipExtensions.cs | 33 +- .../Extend/MembershipImportExtensions.cs | 30 +- .../MetadataAccessExpressionExtensions.cs | 65 ++- .../Extend/MetadataFeatureExtensions.cs | 74 +++- SysML2.NET/Extend/MetadataUsageExtensions.cs | 8 +- .../Extend/MultiplicityRangeExtensions.cs | 56 ++- SysML2.NET/Extend/NamespaceExtensions.cs | 259 +++++++++++- .../Extend/NamespaceImportExtensions.cs | 30 +- SysML2.NET/Extend/NullExpressionExtensions.cs | 77 ++++ .../Extend/ObjectiveMembershipExtensions.cs | 8 +- .../Extend/OccurrenceDefinitionExtensions.cs | 38 +- .../Extend/OccurrenceUsageExtensions.cs | 12 +- .../Extend/OperatorExpressionExtensions.cs | 33 +- .../Extend/OwningMembershipExtensions.cs | 36 +- SysML2.NET/Extend/PackageExtensions.cs | 43 +- .../Extend/ParameterMembershipExtensions.cs | 23 +- SysML2.NET/Extend/PartUsageExtensions.cs | 8 +- .../Extend/PerformActionUsageExtensions.cs | 24 +- .../Extend/PortConjugationExtensions.cs | 8 +- SysML2.NET/Extend/PortDefinitionExtensions.cs | 8 +- SysML2.NET/Extend/PortUsageExtensions.cs | 8 +- SysML2.NET/Extend/RedefinitionExtensions.cs | 12 +- .../Extend/ReferenceSubsettingExtensions.cs | 8 +- SysML2.NET/Extend/ReferenceUsageExtensions.cs | 23 +- SysML2.NET/Extend/RelationshipExtensions.cs | 41 +- .../Extend/RenderingDefinitionExtensions.cs | 8 +- SysML2.NET/Extend/RenderingUsageExtensions.cs | 8 +- ...quirementConstraintMembershipExtensions.cs | 12 +- .../Extend/RequirementDefinitionExtensions.cs | 32 +- .../Extend/RequirementUsageExtensions.cs | 36 +- ...irementVerificationMembershipExtensions.cs | 12 +- .../ResultExpressionMembershipExtensions.cs | 8 +- .../ReturnParameterMembershipExtensions.cs | 57 +++ .../SatisfyRequirementUsageExtensions.cs | 12 +- .../Extend/SelectExpressionExtensions.cs | 16 +- .../Extend/SendActionUsageExtensions.cs | 16 +- SysML2.NET/Extend/SpecializationExtensions.cs | 8 +- .../Extend/StakeholderMembershipExtensions.cs | 8 +- .../Extend/StateDefinitionExtensions.cs | 20 +- .../StateSubactionMembershipExtensions.cs | 8 +- SysML2.NET/Extend/StateUsageExtensions.cs | 40 +- SysML2.NET/Extend/StepExtensions.cs | 12 +- .../Extend/SubclassificationExtensions.cs | 8 +- .../Extend/SubjectMembershipExtensions.cs | 8 +- SysML2.NET/Extend/SubsettingExtensions.cs | 8 +- .../Extend/TerminateActionUsageExtensions.cs | 8 +- .../Extend/TextualRepresentationExtensions.cs | 8 +- .../TransitionFeatureMembershipExtensions.cs | 8 +- .../Extend/TransitionUsageExtensions.cs | 59 ++- .../TriggerInvocationExpressionExtensions.cs | 20 +- SysML2.NET/Extend/TypeExtensions.cs | 388 ++++++++++++++--- SysML2.NET/Extend/TypeFeaturingExtensions.cs | 8 +- SysML2.NET/Extend/UnioningExtensions.cs | 8 +- SysML2.NET/Extend/UsageExtensions.cs | 179 ++++---- .../Extend/UseCaseDefinitionExtensions.cs | 8 +- SysML2.NET/Extend/UseCaseUsageExtensions.cs | 12 +- .../Extend/VariantMembershipExtensions.cs | 8 +- .../VerificationCaseDefinitionExtensions.cs | 10 +- .../Extend/VerificationCaseUsageExtensions.cs | 12 +- SysML2.NET/Extend/ViewDefinitionExtensions.cs | 20 +- .../ViewRenderingMembershipExtensions.cs | 12 +- SysML2.NET/Extend/ViewUsageExtensions.cs | 41 +- .../Extend/ViewpointDefinitionExtensions.cs | 8 +- SysML2.NET/Extend/ViewpointUsageExtensions.cs | 12 +- .../Extend/WhileLoopActionUsageExtensions.cs | 12 +- SysML2.NET/SysML2.NET.csproj | 4 - 403 files changed, 5886 insertions(+), 1724 deletions(-) create mode 100644 SysML2.NET.CodeGenerator/Extensions/TypeExtensions.cs create mode 100644 SysML2.NET.CodeGenerator/HandleBarHelpers/OperationHelper.cs create mode 100644 SysML2.NET/Extend/ConstructorExpressionExtensions.cs create mode 100644 SysML2.NET/Extend/ControlNodeExtensions.cs create mode 100644 SysML2.NET/Extend/InvocationExpressionExtensions.cs create mode 100644 SysML2.NET/Extend/LiteralExpressionExtensions.cs create mode 100644 SysML2.NET/Extend/NullExpressionExtensions.cs create mode 100644 SysML2.NET/Extend/ReturnParameterMembershipExtensions.cs diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs index b2a1aeae2..19a5bbd2d 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/AnnotatingElement.cs @@ -182,7 +182,7 @@ public AnnotatingElement() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs index 07a5f3509..52e709347 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Association.cs @@ -429,7 +429,7 @@ public Association() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -440,7 +440,7 @@ public Association() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs index 8a3406055..a5da6dd52 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Dependency.cs @@ -177,7 +177,7 @@ public Dependency() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -188,7 +188,7 @@ public Dependency() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs index a6dae0497..7f5e5c812 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/EnumerationDefinition.cs @@ -615,7 +615,7 @@ bool Systems.DefinitionAndUsage.IDefinition.IsVariation [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs index 6865c94fb..17ffe96f6 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Feature.cs @@ -590,7 +590,7 @@ public Feature() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs index 8b962c8b4..69a5b6736 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FeatureTyping.cs @@ -185,7 +185,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -196,7 +196,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs index a14f3624d..df70f3314 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Flow.cs @@ -650,7 +650,7 @@ public Flow() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -661,7 +661,7 @@ public Flow() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs index 249adf1d8..16805fc42 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/FramedConcernMembership.cs @@ -312,7 +312,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -323,7 +323,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IElement.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IElement.cs index 093b28379..96dd4c7e1 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IElement.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IElement.cs @@ -124,7 +124,7 @@ public partial interface IElement /// [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")] - IReadOnlyCollection OwnedRelationship { get; } + IReadOnlyList OwnedRelationship { get; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -184,6 +184,55 @@ public partial interface IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] List textualRepresentation { get; } + /// + /// 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). + /// + /// + /// The expected string + /// + string EscapedName() => this.ComputeEscapedNameOperation(); + + /// + /// Return an effective shortName for this Element. By default this is the same as its + /// declaredShortName. + /// + /// + /// The expected string + /// + string EffectiveShortName() => this.ComputeEffectiveShortNameOperation(); + + /// + /// Return an effective name for this Element. By default this is the same as its declaredName. + /// + /// + /// The expected string + /// + string EffectiveName() => this.ComputeEffectiveNameOperation(); + + /// + /// By default, return the library Namespace of the owningRelationship of this Element, if it has one. + /// + /// + /// The expected INamespace + /// + INamespace LibraryNamespace() => this.ComputeLibraryNamespaceOperation(); + + /// + /// 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.) + /// + /// + /// The expected string + /// + string Path() => this.ComputePathOperation(); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs index 2767cad74..4eecc2dbc 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs @@ -262,6 +262,208 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674969_376003_43216", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] List type { get; } + /// + /// Return the directionOf this Feature relative to the given type. + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + FeatureDirectionKind DirectionFor(IType type) => this.ComputeDirectionForOperation(type); + + /// + /// If a Feature has no declaredShortName or declaredName, then its effective shortName is given by the + /// effective shortName of the Feature returned by the namingFeature() operation, if any. + /// + /// + /// The expected string + /// + new string EffectiveShortName() => this.ComputeRedefinedEffectiveShortNameOperation(); + + /// + /// If a Feature has no declaredName or declaredShortName , then its + /// effective name is given by the effective name of the Feature returned by the namingFeature() + /// operation, if any. + /// + /// + /// The expected string + /// + new string EffectiveName() => this.ComputeRedefinedEffectiveNameOperation(); + + /// + /// By default, the naming Feature of a Feature is given by its first redefinedFeature of its first + /// ownedRedefinition, if any. + /// + /// + /// The expected IFeature + /// + IFeature NamingFeature() => this.ComputeNamingFeatureOperation(); + + /// + /// + /// + /// No documentation provided + /// + /// + /// The expected IType + /// + new IType Supertypes(bool excludeImplied) => this.ComputeRedefinedSupertypesOperation(excludeImplied); + + /// + /// Check whether this Feature directly redefines the given redefinedFeature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool Redefines(IFeature redefinedFeature) => this.ComputeRedefinesOperation(redefinedFeature); + + /// + /// Check whether this Feature directly redefines the named library Feature. libraryFeatureName must + /// conform to the syntax of a KerML qualified name and must resolve to a Feature in global scope. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool RedefinesFromLibrary(string libraryFeatureName) => this.ComputeRedefinesFromLibraryOperation(libraryFeatureName); + + /// + /// Check whether this Feature directly or indirectly specializes a Feature whose last two + /// chainingFeatures are the given Features first and second. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool SubsetsChain(IFeature first, IFeature second) => this.ComputeSubsetsChainOperation(first, second); + + /// + /// A Feature is compatible with an otherType if it either directly or indirectly specializes the + /// otherType or if the otherType is also a Feature and all of the following are true. + ///
  1. Neither this Feature or the otherType have any + /// ownedFeatures.
  2. This Feature directly or indirectly redefines a + /// Feature that is also directly or indirectly redefined by the otherType.
  3. + ///
  4. This Feature can access the otherType.
+ ///
+ /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool IsCompatibleWith(IType otherType) => this.ComputeRedefinedIsCompatibleWithOperation(otherType); + + /// + /// Return the Features used to determine the types of this Feature (other than this Feature itself). If + /// this Feature is not conjugated, then the typingFeatures consist of all subsetted Features, except + /// from CrossSubsetting, and the last chainingFeature (if any). If this Feature is conjugated, then the + /// typingFeatures are only its originalType (if the originalType is a Feature). + /// Note. CrossSubsetting is excluded from the determination of the type of a + /// Feature in order to avoid circularity in the construction of implied CrossSubsetting relationships. + /// The validateFeatureCrossFeatureType requires that the crossFeature of a Feature have the same type + /// as the Feature. + /// + /// + /// The expected IFeature + /// + IFeature TypingFeatures() => this.ComputeTypingFeaturesOperation(); + + /// + /// If isCartesianProduct is true, then return the list of Types whose Cartesian product can be + /// represented by this Feature. (If isCartesianProduct is not true, the operation will still return a + /// valid value, it will just not represent anything useful.) + /// + /// + /// The expected IType + /// + IType AsCartesianProduct() => this.ComputeAsCartesianProductOperation(); + + /// + /// Check whether this Feature can be used to represent a Cartesian product of Types. + /// + /// + /// The expected bool + /// + bool IsCartesianProduct() => this.ComputeIsCartesianProductOperation(); + + /// + /// Return whether this Feature is an owned cross Feature of an end Feature. + /// + /// + /// The expected bool + /// + bool IsOwnedCrossFeature() => this.ComputeIsOwnedCrossFeatureOperation(); + + /// + /// If this Feature is an end Feature of its owningType, then return the first ownedMember of the + /// Feature that is a Feature, but not a Multiplicity or a MetadataFeature, and whose owningMembership + /// is not a FeatureMembership. If this exists, it is the crossFeature of the end Feature. + /// + /// + /// The expected IFeature + /// + IFeature OwnedCrossFeature() => this.ComputeOwnedCrossFeatureOperation(); + + /// + /// Return this Feature and all the Features that are directly or indirectly Redefined by this Feature. + /// + /// + /// The expected IFeature + /// + IFeature AllRedefinedFeatures() => this.ComputeAllRedefinedFeaturesOperation(); + + /// + /// Return if the featuringTypes of this Feature are compatible with the given type. If type is null, + /// then check if this Feature is explicitly or implicitly featured by Base::Anything. If this Feature + /// has isVariable = true, then also consider it to be featured within its owningType. If this Feature + /// is a feature chain whose first chainingFeature has isVariable = true, then also consider it to be + /// featured within the owningType of its first chainingFeature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsFeaturedWithin(IType type) => this.ComputeIsFeaturedWithinOperation(type); + + /// + /// A Feature can access another feature if the other feature is featured within one of the direct or + /// indirect featuringTypes of this Feature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool CanAccess(IFeature feature) => this.ComputeCanAccessOperation(feature); + + /// + /// Return whether the given type must be a featuringType of this Feature. If this Feature has + /// isVariable = false, then return true if the type is the owningType of the Feature. If isVariable = + /// true, then return true if the type is a Feature representing the snapshots of the owningType of this + /// Feature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsFeaturingType(IType type) => this.ComputeIsFeaturingTypeOperation(type); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMembership.cs index 633376fcb..d7d09e677 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMembership.cs @@ -88,6 +88,20 @@ public partial interface IMembership : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674964_42975_43193", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "public")] VisibilityKind Visibility { get; set; } + /// + /// Whether this Membership is distinguishable from a given other Membership. By default, this is true + /// if this Membership has no memberShortName or memberName; or each of the memberShortName and + /// memberName are different than both of those of the other Membership; or neither of the metaclasses + /// of the memberElement of this Membership and the memberElement of the other Membership conform to the + /// other. But this may be overridden in specializations of Membership. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsDistinguishableFrom(IMembership other) => this.ComputeIsDistinguishableFromOperation(other); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMultiplicityRange.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMultiplicityRange.cs index 1a0edf9b2..4299235aa 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IMultiplicityRange.cs @@ -74,6 +74,32 @@ public partial interface IMultiplicityRange : IMultiplicity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] IExpression upperBound { get; } + /// + /// Check whether this MultiplicityRange represents the range bounded by the given values lower and + /// upper, presuming the lowerBound and upperBound Expressions are model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool HasBounds(int lower, string upper) => this.ComputeHasBoundsOperation(lower, upper); + + /// + /// Evaluate the given bound Expression (at model level) and return the result represented as a MOF + /// UnlimitedNatural value. + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + string ValueOf(IExpression bound) => this.ComputeValueOfOperation(bound); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IOwningMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IOwningMembership.cs index 34553f849..0d14f2945 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IOwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IOwningMembership.cs @@ -71,6 +71,15 @@ public partial interface IOwningMembership : IMembership [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] string ownedMemberShortName { get; } + /// + /// If the ownedMemberElement of this OwningMembership has a non-null qualifiedName, then return the + /// string constructed by appending to that qualifiedName the string "/owningMembership". Otherwise, + /// return the path of the OwningMembership as specified for a Relationship in general. + /// + /// + /// The expected string + /// + new string Path() => this.ComputeRedefinedPathOperation(); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRelationship.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRelationship.cs index e646d4b75..65e331d15 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRelationship.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IRelationship.cs @@ -62,7 +62,7 @@ public partial interface IRelationship : IElement ///
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] - IReadOnlyCollection OwnedRelatedElement { get; } + IReadOnlyList OwnedRelatedElement { get; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -92,6 +92,25 @@ public partial interface IRelationship : IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] List Target { get; set; } + /// + /// Return whether this Relationship has either an owningRelatedElement or owningRelationship that is a + /// library element. + /// + /// + /// The expected INamespace + /// + new INamespace LibraryNamespace() => this.ComputeRedefinedLibraryNamespaceOperation(); + + /// + /// If the owningRelationship of the Relationship is null but its owningRelatedElement is non-null, + /// construct the path using the position of the Relationship in the list of ownedRelationships of its + /// owningRelatedElement. Otherwise, return the path of the Relationship as specified for an Element in + /// general. + /// + /// + /// The expected string + /// + new string Path() => this.ComputeRedefinedPathOperation(); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IUsage.cs index 358533ed0..bc57232f4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IUsage.cs @@ -341,6 +341,23 @@ public partial interface IUsage : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] List variantMembership { get; } + /// + /// If this Usage is a variant, then its naming Feature is the referencedFeature of its + /// ownedReferenceSubsetting. + /// + /// + /// The expected IFeature + /// + new IFeature NamingFeature() => this.ComputeRedefinedNamingFeatureOperation(); + + /// + /// If ownedReferenceSubsetting is not null, return the featureTarget of the referencedFeature of the + /// ownedReferenceSubsetting. + /// + /// + /// The expected IFeature + /// + IFeature ReferencedFeatureTarget() => this.ComputeReferencedFeatureTargetOperation(); } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs index 0086854e5..8909a3551 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralInteger.cs @@ -605,7 +605,7 @@ public LiteralInteger() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs index 43b72d548..a85b1e428 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/LiteralRational.cs @@ -605,7 +605,7 @@ public LiteralRational() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs index 75f07285c..9de34abb4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Membership.cs @@ -211,7 +211,7 @@ public Membership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -222,7 +222,7 @@ public Membership() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs index 60ebbc4ca..c89c98918 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/MultiplicityRange.cs @@ -602,7 +602,7 @@ public MultiplicityRange() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs index d6bed4181..1d02076ee 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/OwningMembership.cs @@ -255,7 +255,7 @@ string IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -266,7 +266,7 @@ string IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs index 847b9496a..f9b4e0e51 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/ReferenceSubsetting.cs @@ -190,7 +190,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -201,7 +201,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs index e0566269d..53ba0c5f9 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/RequirementUsage.cs @@ -971,7 +971,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs index bc1af91d2..d6b941966 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/SelectExpression.cs @@ -646,7 +646,7 @@ string IOperatorExpression.Operator [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs index dde5e8f0b..d6f677ec6 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Subclassification.cs @@ -186,7 +186,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -197,7 +197,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs index 732a887a2..c54db3bc8 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/TextualRepresentation.cs @@ -222,7 +222,7 @@ public TextualRepresentation() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs index e07a842bb..e8a2465ad 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/Usage.cs @@ -874,7 +874,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AnnotatingElementExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AnnotatingElementExtensions.cs index fd7a06cb1..35c20cec4 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AnnotatingElementExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AnnotatingElementExtensions.cs @@ -35,14 +35,14 @@ internal static class AnnotatingElementExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAnnotatedElement(this IAnnotatingElement annotatingElement) + internal static List ComputeAnnotatedElement(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -50,14 +50,14 @@ internal static List ComputeAnnotatedElement(this IAnnotatingElement a /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAnnotation(this IAnnotatingElement annotatingElement) + internal static List ComputeAnnotation(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -65,14 +65,14 @@ internal static List ComputeAnnotation(this IAnnotatingElement anno /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAnnotatingRelationship(this IAnnotatingElement annotatingElement) + internal static List ComputeOwnedAnnotatingRelationship(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -80,14 +80,14 @@ internal static List ComputeOwnedAnnotatingRelationship(this IAnnot /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IAnnotation ComputeOwningAnnotatingRelationship(this IAnnotatingElement annotatingElement) + internal static IAnnotation ComputeOwningAnnotatingRelationship(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AssociationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AssociationExtensions.cs index 0c0600d80..b3eb6d794 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AssociationExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/AssociationExtensions.cs @@ -39,14 +39,14 @@ internal static class AssociationExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAssociationEnd(this IAssociation association) + internal static List ComputeAssociationEnd(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -54,14 +54,14 @@ internal static List ComputeAssociationEnd(this IAssociation associati /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRelatedType(this IAssociation association) + internal static List ComputeRelatedType(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -69,14 +69,14 @@ internal static List ComputeRelatedType(this IAssociation association) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeSourceType(this IAssociation association) + internal static IType ComputeSourceType(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +84,14 @@ internal static IType ComputeSourceType(this IAssociation association) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeTargetType(this IAssociation association) + internal static List ComputeTargetType(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ElementExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ElementExtensions.cs index 3488bd6a6..010d1c499 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ElementExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ElementExtensions.cs @@ -35,14 +35,14 @@ internal static class ElementExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDocumentation(this IElement element) + internal static List ComputeDocumentation(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -50,14 +50,14 @@ internal static List ComputeDocumentation(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsLibraryElement(this IElement element) + internal static bool ComputeIsLibraryElement(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -65,14 +65,14 @@ internal static bool ComputeIsLibraryElement(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeName(this IElement element) + internal static string ComputeName(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -80,14 +80,14 @@ internal static string ComputeName(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAnnotation(this IElement element) + internal static List ComputeOwnedAnnotation(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -95,14 +95,14 @@ internal static List ComputeOwnedAnnotation(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedElement(this IElement element) + internal static List ComputeOwnedElement(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -110,14 +110,14 @@ internal static List ComputeOwnedElement(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeOwner(this IElement element) + internal static IElement ComputeOwner(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -125,14 +125,14 @@ internal static IElement ComputeOwner(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IOwningMembership ComputeOwningMembership(this IElement element) + internal static IOwningMembership ComputeOwningMembership(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -140,14 +140,14 @@ internal static IOwningMembership ComputeOwningMembership(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static INamespace ComputeOwningNamespace(this IElement element) + internal static INamespace ComputeOwningNamespace(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -155,14 +155,14 @@ internal static INamespace ComputeOwningNamespace(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeQualifiedName(this IElement element) + internal static string ComputeQualifiedName(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -170,14 +170,14 @@ internal static string ComputeQualifiedName(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeShortName(this IElement element) + internal static string ComputeShortName(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -185,17 +185,101 @@ internal static string ComputeShortName(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeTextualRepresentation(this IElement element) + internal static List ComputeTextualRepresentation(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// 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). + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeEscapedNameOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return an effective shortName for this Element. By default this is the same as its + /// declaredShortName. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeEffectiveShortNameOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return an effective name for this Element. By default this is the same as its declaredName. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeEffectiveNameOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// By default, return the library Namespace of the owningRelationship of this Element, if it has one. + /// + /// + /// The subject + /// + /// + /// The expected INamespace + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static INamespace ComputeLibraryNamespaceOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// 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.) + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputePathOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/EnumerationDefinitionExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/EnumerationDefinitionExtensions.cs index c6548de89..f88dd6517 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/EnumerationDefinitionExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/EnumerationDefinitionExtensions.cs @@ -60,14 +60,14 @@ internal static class EnumerationDefinitionExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeEnumeratedValue(this IEnumerationDefinition enumerationDefinition) + internal static List ComputeEnumeratedValue(this IEnumerationDefinition enumerationDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureExtensions.cs index 583c604cb..d4faeceac 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureExtensions.cs @@ -38,14 +38,14 @@ internal static class FeatureExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeChainingFeature(this IFeature feature) + internal static List ComputeChainingFeature(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -53,14 +53,14 @@ internal static List ComputeChainingFeature(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeCrossFeature(this IFeature feature) + internal static IFeature ComputeCrossFeature(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -68,14 +68,14 @@ internal static IFeature ComputeCrossFeature(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeEndOwningType(this IFeature feature) + internal static IType ComputeEndOwningType(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -83,14 +83,14 @@ internal static IType ComputeEndOwningType(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeFeatureTarget(this IFeature feature) + internal static IFeature ComputeFeatureTarget(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -98,14 +98,14 @@ internal static IFeature ComputeFeatureTarget(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFeaturingType(this IFeature feature) + internal static List ComputeFeaturingType(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -113,14 +113,14 @@ internal static List ComputeFeaturingType(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature feature) + internal static ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -128,14 +128,14 @@ internal static ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature featu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFeatureChaining(this IFeature feature) + internal static List ComputeOwnedFeatureChaining(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -143,14 +143,14 @@ internal static List ComputeOwnedFeatureChaining(this IFeature /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFeatureInverting(this IFeature feature) + internal static List ComputeOwnedFeatureInverting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -158,14 +158,14 @@ internal static List ComputeOwnedFeatureInverting(this IFeatu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedRedefinition(this IFeature feature) + internal static List ComputeOwnedRedefinition(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -173,14 +173,14 @@ internal static List ComputeOwnedRedefinition(this IFeature featu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeature feature) + internal static IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -188,14 +188,14 @@ internal static IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeatu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedSubsetting(this IFeature feature) + internal static List ComputeOwnedSubsetting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -203,14 +203,14 @@ internal static List ComputeOwnedSubsetting(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedTypeFeaturing(this IFeature feature) + internal static List ComputeOwnedTypeFeaturing(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -218,14 +218,14 @@ internal static List ComputeOwnedTypeFeaturing(this IFeature fea /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedTyping(this IFeature feature) + internal static List ComputeOwnedTyping(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -233,14 +233,14 @@ internal static List ComputeOwnedTyping(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeatureMembership ComputeOwningFeatureMembership(this IFeature feature) + internal static IFeatureMembership ComputeOwningFeatureMembership(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -248,14 +248,14 @@ internal static IFeatureMembership ComputeOwningFeatureMembership(this IFeature /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeOwningType(this IFeature feature) + internal static IType ComputeOwningType(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -263,17 +263,345 @@ internal static IType ComputeOwningType(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeType(this IFeature feature) + internal static List ComputeType(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the directionOf this Feature relative to the given type. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static FeatureDirectionKind ComputeDirectionForOperation(this IFeature featureSubject, IType type) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If a Feature has no declaredShortName or declaredName, then its effective shortName is given by the + /// effective shortName of the Feature returned by the namingFeature() operation, if any. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedEffectiveShortNameOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If a Feature has no declaredName or declaredShortName , then its + /// effective name is given by the effective name of the Feature returned by the namingFeature() + /// operation, if any. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedEffectiveNameOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// By default, the naming Feature of a Feature is given by its first redefinedFeature of its first + /// ownedRedefinition, if any. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeNamingFeatureOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeRedefinedSupertypesOperation(this IFeature featureSubject, bool excludeImplied) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature directly redefines the given redefinedFeature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinesOperation(this IFeature featureSubject, IFeature redefinedFeature) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature directly redefines the named library Feature. libraryFeatureName must + /// conform to the syntax of a KerML qualified name and must resolve to a Feature in global scope. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinesFromLibraryOperation(this IFeature featureSubject, string libraryFeatureName) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature directly or indirectly specializes a Feature whose last two + /// chainingFeatures are the given Features first and second. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeSubsetsChainOperation(this IFeature featureSubject, IFeature first, IFeature second) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// A Feature is compatible with an otherType if it either directly or indirectly specializes the + /// otherType or if the otherType is also a Feature and all of the following are true. + ///
  1. Neither this Feature or the otherType have any + /// ownedFeatures.
  2. This Feature directly or indirectly redefines a + /// Feature that is also directly or indirectly redefined by the otherType.
  3. + ///
  4. This Feature can access the otherType.
+ ///
+ /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedIsCompatibleWithOperation(this IFeature featureSubject, IType otherType) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the Features used to determine the types of this Feature (other than this Feature itself). If + /// this Feature is not conjugated, then the typingFeatures consist of all subsetted Features, except + /// from CrossSubsetting, and the last chainingFeature (if any). If this Feature is conjugated, then the + /// typingFeatures are only its originalType (if the originalType is a Feature). + /// Note. CrossSubsetting is excluded from the determination of the type of a + /// Feature in order to avoid circularity in the construction of implied CrossSubsetting relationships. + /// The validateFeatureCrossFeatureType requires that the crossFeature of a Feature have the same type + /// as the Feature. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeTypingFeaturesOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If isCartesianProduct is true, then return the list of Types whose Cartesian product can be + /// represented by this Feature. (If isCartesianProduct is not true, the operation will still return a + /// valid value, it will just not represent anything useful.) + /// + /// + /// The subject + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeAsCartesianProductOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature can be used to represent a Cartesian product of Types. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsCartesianProductOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return whether this Feature is an owned cross Feature of an end Feature. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsOwnedCrossFeatureOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If this Feature is an end Feature of its owningType, then return the first ownedMember of the + /// Feature that is a Feature, but not a Multiplicity or a MetadataFeature, and whose owningMembership + /// is not a FeatureMembership. If this exists, it is the crossFeature of the end Feature. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeOwnedCrossFeatureOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return this Feature and all the Features that are directly or indirectly Redefined by this Feature. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeAllRedefinedFeaturesOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return if the featuringTypes of this Feature are compatible with the given type. If type is null, + /// then check if this Feature is explicitly or implicitly featured by Base::Anything. If this Feature + /// has isVariable = true, then also consider it to be featured within its owningType. If this Feature + /// is a feature chain whose first chainingFeature has isVariable = true, then also consider it to be + /// featured within the owningType of its first chainingFeature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsFeaturedWithinOperation(this IFeature featureSubject, IType type) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// A Feature can access another feature if the other feature is featured within one of the direct or + /// indirect featuringTypes of this Feature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeCanAccessOperation(this IFeature featureSubject, IFeature feature) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return whether the given type must be a featuringType of this Feature. If this Feature has + /// isVariable = false, then return true if the type is the owningType of the Feature. If isVariable = + /// true, then return true if the type is a Feature representing the snapshots of the owningType of this + /// Feature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsFeaturingTypeOperation(this IFeature featureSubject, IType type) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureTypingExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureTypingExtensions.cs index dc53caede..0b0762c11 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureTypingExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureTypingExtensions.cs @@ -37,14 +37,14 @@ internal static class FeatureTypingExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwningFeature(this IFeatureTyping featureTyping) + internal static IFeature ComputeOwningFeature(this IFeatureTyping featureTypingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FlowExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FlowExtensions.cs index c716d1606..604dd9bbb 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FlowExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FlowExtensions.cs @@ -43,14 +43,14 @@ internal static class FlowExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFlowEnd(this IFlow flow) + internal static List ComputeFlowEnd(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -58,14 +58,14 @@ internal static List ComputeFlowEnd(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInteraction(this IFlow flow) + internal static List ComputeInteraction(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -73,14 +73,14 @@ internal static List ComputeInteraction(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPayloadFeature ComputePayloadFeature(this IFlow flow) + internal static IPayloadFeature ComputePayloadFeature(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -88,14 +88,14 @@ internal static IPayloadFeature ComputePayloadFeature(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputePayloadType(this IFlow flow) + internal static List ComputePayloadType(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -103,14 +103,14 @@ internal static List ComputePayloadType(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeSourceOutputFeature(this IFlow flow) + internal static IFeature ComputeSourceOutputFeature(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -118,14 +118,14 @@ internal static IFeature ComputeSourceOutputFeature(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeTargetInputFeature(this IFlow flow) + internal static IFeature ComputeTargetInputFeature(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FramedConcernMembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FramedConcernMembershipExtensions.cs index 3ff4dce81..28dd5fa59 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FramedConcernMembershipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FramedConcernMembershipExtensions.cs @@ -41,14 +41,14 @@ internal static class FramedConcernMembershipExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConcernUsage ComputeOwnedConcern(this IFramedConcernMembership framedConcernMembership) + internal static IConcernUsage ComputeOwnedConcern(this IFramedConcernMembership framedConcernMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -56,14 +56,14 @@ internal static IConcernUsage ComputeOwnedConcern(this IFramedConcernMembership /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConcernUsage ComputeReferencedConcern(this IFramedConcernMembership framedConcernMembership) + internal static IConcernUsage ComputeReferencedConcern(this IFramedConcernMembership framedConcernMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MembershipExtensions.cs index 759cee38d..859a514dd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MembershipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MembershipExtensions.cs @@ -36,14 +36,14 @@ internal static class MembershipExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeMemberElementId(this IMembership membership) + internal static string ComputeMemberElementId(this IMembership membershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -51,17 +51,38 @@ internal static string ComputeMemberElementId(this IMembership membership) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static INamespace ComputeMembershipOwningNamespace(this IMembership membership) + internal static INamespace ComputeMembershipOwningNamespace(this IMembership membershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Whether this Membership is distinguishable from a given other Membership. By default, this is true + /// if this Membership has no memberShortName or memberName; or each of the memberShortName and + /// memberName are different than both of those of the other Membership; or neither of the metaclasses + /// of the memberElement of this Membership and the memberElement of the other Membership conform to the + /// other. But this may be overridden in specializations of Membership. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsDistinguishableFromOperation(this IMembership membershipSubject, IMembership other) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MultiplicityRangeExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MultiplicityRangeExtensions.cs index 657ccfd54..38aca7741 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MultiplicityRangeExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/MultiplicityRangeExtensions.cs @@ -40,14 +40,14 @@ internal static class MultiplicityRangeExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeBound(this IMultiplicityRange multiplicityRange) + internal static List ComputeBound(this IMultiplicityRange multiplicityRangeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -55,14 +55,14 @@ internal static List ComputeBound(this IMultiplicityRange multiplic /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeLowerBound(this IMultiplicityRange multiplicityRange) + internal static IExpression ComputeLowerBound(this IMultiplicityRange multiplicityRangeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -70,17 +70,57 @@ internal static IExpression ComputeLowerBound(this IMultiplicityRange multiplici /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeUpperBound(this IMultiplicityRange multiplicityRange) + internal static IExpression ComputeUpperBound(this IMultiplicityRange multiplicityRangeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Check whether this MultiplicityRange represents the range bounded by the given values lower and + /// upper, presuming the lowerBound and upperBound Expressions are model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeHasBoundsOperation(this IMultiplicityRange multiplicityRangeSubject, int lower, string upper) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Evaluate the given bound Expression (at model level) and return the result represented as a MOF + /// UnlimitedNatural value. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeValueOfOperation(this IMultiplicityRange multiplicityRangeSubject, IExpression bound) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/OwningMembershipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/OwningMembershipExtensions.cs index a0ec6f481..8d61a00e1 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/OwningMembershipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/OwningMembershipExtensions.cs @@ -36,14 +36,14 @@ internal static class OwningMembershipExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeOwnedMemberElement(this IOwningMembership owningMembership) + internal static IElement ComputeOwnedMemberElement(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -51,14 +51,14 @@ internal static IElement ComputeOwnedMemberElement(this IOwningMembership owning /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeOwnedMemberElementId(this IOwningMembership owningMembership) + internal static string ComputeOwnedMemberElementId(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -66,14 +66,14 @@ internal static string ComputeOwnedMemberElementId(this IOwningMembership owning /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeOwnedMemberName(this IOwningMembership owningMembership) + internal static string ComputeOwnedMemberName(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -81,17 +81,33 @@ internal static string ComputeOwnedMemberName(this IOwningMembership owningMembe /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeOwnedMemberShortName(this IOwningMembership owningMembership) + internal static string ComputeOwnedMemberShortName(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If the ownedMemberElement of this OwningMembership has a non-null qualifiedName, then return the + /// string constructed by appending to that qualifiedName the string "/owningMembership". Otherwise, + /// return the path of the OwningMembership as specified for a Relationship in general. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedPathOperation(this IOwningMembership owningMembershipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ReferenceSubsettingExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ReferenceSubsettingExtensions.cs index 90e318520..2d0ca2f2e 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ReferenceSubsettingExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/ReferenceSubsettingExtensions.cs @@ -37,14 +37,14 @@ internal static class ReferenceSubsettingExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeReferencingFeature(this IReferenceSubsetting referenceSubsetting) + internal static IFeature ComputeReferencingFeature(this IReferenceSubsetting referenceSubsettingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RelationshipExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RelationshipExtensions.cs index 71532379a..150a0e14f 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RelationshipExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RelationshipExtensions.cs @@ -35,17 +35,50 @@ internal static class RelationshipExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRelatedElement(this IRelationship relationship) + internal static List ComputeRelatedElement(this IRelationship relationshipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return whether this Relationship has either an owningRelatedElement or owningRelationship that is a + /// library element. + /// + /// + /// The subject + /// + /// + /// The expected INamespace + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static INamespace ComputeRedefinedLibraryNamespaceOperation(this IRelationship relationshipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If the owningRelationship of the Relationship is null but its owningRelatedElement is non-null, + /// construct the path using the position of the Relationship in the list of ownedRelationships of its + /// owningRelatedElement. Otherwise, return the path of the Relationship as specified for an Element in + /// general. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedPathOperation(this IRelationship relationshipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RequirementUsageExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RequirementUsageExtensions.cs index 2411aff11..1ba1f57ad 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RequirementUsageExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/RequirementUsageExtensions.cs @@ -65,14 +65,14 @@ internal static class RequirementUsageExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeActorParameter(this IRequirementUsage requirementUsage) + internal static List ComputeActorParameter(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -80,14 +80,14 @@ internal static List ComputeActorParameter(this IRequirementUsage re /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAssumedConstraint(this IRequirementUsage requirementUsage) + internal static List ComputeAssumedConstraint(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -95,14 +95,14 @@ internal static List ComputeAssumedConstraint(this IRequiremen /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFramedConcern(this IRequirementUsage requirementUsage) + internal static List ComputeFramedConcern(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -110,14 +110,14 @@ internal static List ComputeFramedConcern(this IRequirementUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRequiredConstraint(this IRequirementUsage requirementUsage) + internal static List ComputeRequiredConstraint(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -125,14 +125,14 @@ internal static List ComputeRequiredConstraint(this IRequireme /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementDefinition ComputeRequirementDefinition(this IRequirementUsage requirementUsage) + internal static IRequirementDefinition ComputeRequirementDefinition(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -140,14 +140,14 @@ internal static IRequirementDefinition ComputeRequirementDefinition(this IRequir /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeStakeholderParameter(this IRequirementUsage requirementUsage) + internal static List ComputeStakeholderParameter(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -155,14 +155,14 @@ internal static List ComputeStakeholderParameter(this IRequirementUs /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeSubjectParameter(this IRequirementUsage requirementUsage) + internal static IUsage ComputeSubjectParameter(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -170,14 +170,14 @@ internal static IUsage ComputeSubjectParameter(this IRequirementUsage requiremen /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeText(this IRequirementUsage requirementUsage) + internal static List ComputeText(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/SubclassificationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/SubclassificationExtensions.cs index accc08f59..858b90edd 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/SubclassificationExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/SubclassificationExtensions.cs @@ -37,14 +37,14 @@ internal static class SubclassificationExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IClassifier ComputeOwningClassifier(this ISubclassification subclassification) + internal static IClassifier ComputeOwningClassifier(this ISubclassification subclassificationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/TextualRepresentationExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/TextualRepresentationExtensions.cs index 661b33edd..fce6d2c38 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/TextualRepresentationExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/TextualRepresentationExtensions.cs @@ -35,14 +35,14 @@ internal static class TextualRepresentationExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeRepresentedElement(this ITextualRepresentation textualRepresentation) + internal static IElement ComputeRepresentedElement(this ITextualRepresentation textualRepresentationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/UsageExtensions.cs b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/UsageExtensions.cs index 819e78d69..3a4f81e70 100644 --- a/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/UsageExtensions.cs +++ b/SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/UsageExtensions.cs @@ -61,14 +61,14 @@ internal static class UsageExtensions /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDefinition(this IUsage usage) + internal static List ComputeDefinition(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -76,14 +76,14 @@ internal static List ComputeDefinition(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDirectedUsage(this IUsage usage) + internal static List ComputeDirectedUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -91,14 +91,14 @@ internal static List ComputeDirectedUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsReference(this IUsage usage) + internal static bool ComputeIsReference(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -106,14 +106,14 @@ internal static bool ComputeIsReference(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeMayTimeVary(this IUsage usage) + internal static bool ComputeMayTimeVary(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -121,14 +121,14 @@ internal static bool ComputeMayTimeVary(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAction(this IUsage usage) + internal static List ComputeNestedAction(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -136,14 +136,14 @@ internal static List ComputeNestedAction(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAllocation(this IUsage usage) + internal static List ComputeNestedAllocation(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -151,14 +151,14 @@ internal static List ComputeNestedAllocation(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAnalysisCase(this IUsage usage) + internal static List ComputeNestedAnalysisCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -166,14 +166,14 @@ internal static List ComputeNestedAnalysisCase(this IUsage u /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAttribute(this IUsage usage) + internal static List ComputeNestedAttribute(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -181,14 +181,14 @@ internal static List ComputeNestedAttribute(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedCalculation(this IUsage usage) + internal static List ComputeNestedCalculation(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -196,14 +196,14 @@ internal static List ComputeNestedCalculation(this IUsage usa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedCase(this IUsage usage) + internal static List ComputeNestedCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -211,14 +211,14 @@ internal static List ComputeNestedCase(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedConcern(this IUsage usage) + internal static List ComputeNestedConcern(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -226,14 +226,14 @@ internal static List ComputeNestedConcern(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedConnection(this IUsage usage) + internal static List ComputeNestedConnection(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -241,14 +241,14 @@ internal static List ComputeNestedConnection(this IUsage usag /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedConstraint(this IUsage usage) + internal static List ComputeNestedConstraint(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -256,14 +256,14 @@ internal static List ComputeNestedConstraint(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedEnumeration(this IUsage usage) + internal static List ComputeNestedEnumeration(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -271,14 +271,14 @@ internal static List ComputeNestedEnumeration(this IUsage usa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedFlow(this IUsage usage) + internal static List ComputeNestedFlow(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -286,14 +286,14 @@ internal static List ComputeNestedFlow(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedInterface(this IUsage usage) + internal static List ComputeNestedInterface(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -301,14 +301,14 @@ internal static List ComputeNestedInterface(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedItem(this IUsage usage) + internal static List ComputeNestedItem(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -316,14 +316,14 @@ internal static List ComputeNestedItem(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedMetadata(this IUsage usage) + internal static List ComputeNestedMetadata(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -331,14 +331,14 @@ internal static List ComputeNestedMetadata(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedOccurrence(this IUsage usage) + internal static List ComputeNestedOccurrence(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -346,14 +346,14 @@ internal static List ComputeNestedOccurrence(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedPart(this IUsage usage) + internal static List ComputeNestedPart(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -361,14 +361,14 @@ internal static List ComputeNestedPart(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedPort(this IUsage usage) + internal static List ComputeNestedPort(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -376,14 +376,14 @@ internal static List ComputeNestedPort(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedReference(this IUsage usage) + internal static List ComputeNestedReference(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -391,14 +391,14 @@ internal static List ComputeNestedReference(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedRendering(this IUsage usage) + internal static List ComputeNestedRendering(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -406,14 +406,14 @@ internal static List ComputeNestedRendering(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedRequirement(this IUsage usage) + internal static List ComputeNestedRequirement(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -421,14 +421,14 @@ internal static List ComputeNestedRequirement(this IUsage usa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedState(this IUsage usage) + internal static List ComputeNestedState(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -436,14 +436,14 @@ internal static List ComputeNestedState(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedTransition(this IUsage usage) + internal static List ComputeNestedTransition(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -451,14 +451,14 @@ internal static List ComputeNestedTransition(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedUsage(this IUsage usage) + internal static List ComputeNestedUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -466,14 +466,14 @@ internal static List ComputeNestedUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedUseCase(this IUsage usage) + internal static List ComputeNestedUseCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -481,14 +481,14 @@ internal static List ComputeNestedUseCase(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedVerificationCase(this IUsage usage) + internal static List ComputeNestedVerificationCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -496,14 +496,14 @@ internal static List ComputeNestedVerificationCase(this /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedView(this IUsage usage) + internal static List ComputeNestedView(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -511,14 +511,14 @@ internal static List ComputeNestedView(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedViewpoint(this IUsage usage) + internal static List ComputeNestedViewpoint(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -526,14 +526,14 @@ internal static List ComputeNestedViewpoint(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IDefinition ComputeOwningDefinition(this IUsage usage) + internal static IDefinition ComputeOwningDefinition(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -541,14 +541,14 @@ internal static IDefinition ComputeOwningDefinition(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeOwningUsage(this IUsage usage) + internal static IUsage ComputeOwningUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -556,14 +556,14 @@ internal static IUsage ComputeOwningUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeUsage(this IUsage usage) + internal static List ComputeUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -571,14 +571,14 @@ internal static List ComputeUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVariant(this IUsage usage) + internal static List ComputeVariant(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -586,17 +586,48 @@ internal static List ComputeVariant(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVariantMembership(this IUsage usage) + internal static List ComputeVariantMembership(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If this Usage is a variant, then its naming Feature is the referencedFeature of its + /// ownedReferenceSubsetting. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeRedefinedNamingFeatureOperation(this IUsage usageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If ownedReferenceSubsetting is not null, return the featureTarget of the referencedFeature of the + /// ownedReferenceSubsetting. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeReferencedFeatureTargetOperation(this IUsage usageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET.CodeGenerator/Extensions/TypeExtensions.cs b/SysML2.NET.CodeGenerator/Extensions/TypeExtensions.cs new file mode 100644 index 000000000..b7f296c3c --- /dev/null +++ b/SysML2.NET.CodeGenerator/Extensions/TypeExtensions.cs @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.CodeGenerator.Extensions +{ + using uml4net.Classification; + using uml4net.CommonStructure; + using uml4net.StructuredClassifiers; + + /// + /// Extension methods for the interface + /// + public static class TypeExtensions + { + /// + /// Queries the C# Type name of the + /// + /// + /// The for which the C# Type name is to be queried + /// + /// Asserts that the type name should target the interface name in case of an + /// + /// a string representation of the C# Type name + /// + public static string QueryCSharpTypeName(this IType type, bool shouldTargetInterface) + { + var typeName = uml4net.Extensions.TypeExtensions.QueryCSharpTypeName(type); + + if (shouldTargetInterface && type is IClass) + { + typeName = $"I{typeName}"; + } + + return typeName; + } + } +} diff --git a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCorePocoGenerator.cs b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCorePocoGenerator.cs index 36881b840..eaa59feed 100644 --- a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCorePocoGenerator.cs +++ b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCorePocoGenerator.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.CodeGenerator.Generators.UmlHandleBarsGenerators using System.Threading.Tasks; using SysML2.NET.CodeGenerator.Extensions; + using SysML2.NET.CodeGenerator.HandleBarHelpers; using SysML2.NET.CodeGenerator.UmlHandleBarHelpers; using uml4net.Extensions; @@ -138,13 +139,14 @@ protected override void RegisterHelpers() { this.Handlebars.RegisterStringHelper(); this.Handlebars.RegisterEnumerableHelper(); - this.Handlebars.RegisterClassHelper(); - this.Handlebars.RegisterPropertyHelper(); + uml4net.HandleBars.ClassHelper.RegisterClassHelper(this.Handlebars); + uml4net.HandleBars.PropertyHelper.RegisterPropertyHelper(this.Handlebars); this.Handlebars.RegisterGeneralizationHelper(); this.Handlebars.RegisterDocumentationHelper(); this.Handlebars.RegisterEnumHelper(); this.Handlebars.RegisterDecoratorHelper(); - this.Handlebars.RegisterNamedElementHelper(); + uml4net.HandleBars.NamedElementHelper.RegisterNamedElementHelper(this.Handlebars); + this.Handlebars.RegisterOperationHelper(); EnumerationLiteralHelper.RegisterTypeNameHelper(this.Handlebars); ClassHelper.RegisterClassHelper(this.Handlebars); diff --git a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlPocoClassExtensionsGenerator.cs b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlPocoClassExtensionsGenerator.cs index 103cdd5fb..2485bac82 100644 --- a/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlPocoClassExtensionsGenerator.cs +++ b/SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlPocoClassExtensionsGenerator.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.CodeGenerator.Generators.UmlHandleBarsGenerators using System.Threading.Tasks; using SysML2.NET.CodeGenerator.Extensions; + using SysML2.NET.CodeGenerator.HandleBarHelpers; using SysML2.NET.CodeGenerator.UmlHandleBarHelpers; using uml4net.Extensions; @@ -95,7 +96,7 @@ private async Task GenerateExtendClassesInternalAsync(XmiReaderResult xmiReaderR var classes = xmiReaderResult.QueryContainedAndImported("SysML") .SelectMany(x => x.PackagedElement.OfType()) - .Where(x => x.OwnedAttribute.Select(y => y.IsDerived || y.IsDerivedUnion).Any()) + .Where(x => x.OwnedAttribute.Select(y => y.IsDerived || y.IsDerivedUnion).Any() || x.OwnedOperation.Count != 0) .ToList(); foreach (var @class in classes) @@ -163,14 +164,15 @@ protected override void RegisterHelpers() { this.Handlebars.RegisterStringHelper(); this.Handlebars.RegisterEnumerableHelper(); - this.Handlebars.RegisterClassHelper(); - this.Handlebars.RegisterPropertyHelper(); + uml4net.HandleBars.ClassHelper.RegisterClassHelper(this.Handlebars); + uml4net.HandleBars.PropertyHelper.RegisterPropertyHelper(this.Handlebars); this.Handlebars.RegisterGeneralizationHelper(); this.Handlebars.RegisterDocumentationHelper(); this.Handlebars.RegisterEnumHelper(); this.Handlebars.RegisterDecoratorHelper(); - this.Handlebars.RegisterNamedElementHelper(); + uml4net.HandleBars.NamedElementHelper.RegisterNamedElementHelper(this.Handlebars); + OperationHelper.RegisterOperationHelper(this.Handlebars); EnumerationLiteralHelper.RegisterTypeNameHelper(this.Handlebars); ClassHelper.RegisterClassHelper(this.Handlebars); NamedElementHelper.RegisterNamedElementHelper(this.Handlebars); diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/ClassHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/ClassHelper.cs index 3446e7354..177dcd54a 100644 --- a/SysML2.NET.CodeGenerator/HandleBarHelpers/ClassHelper.cs +++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/ClassHelper.cs @@ -62,6 +62,13 @@ public static void RegisterClassHelper(this IHandlebars handlebars) uniqueNamespaces.Add(Extensions.NamedElementExtensions.QueryNamespace(prop.Type)); } + var parameters = @class.OwnedOperation.SelectMany(x => x.OwnedParameter); + + foreach (var enumeration in parameters.Where(x => x.Type is IEnumeration).Select(x => x.Type as IEnumeration)) + { + uniqueNamespaces.Add(Extensions.NamedElementExtensions.QueryNamespace(enumeration)); + } + var orderedNamespaces = uniqueNamespaces.Order().ToList(); foreach (var orderedNamespace in orderedNamespaces) @@ -125,8 +132,16 @@ public static void RegisterClassHelper(this IHandlebars handlebars) uniqueNamespaces.Add(@namespace); } } + + foreach (var operation in @class.OwnedOperation) + { + foreach (var parameterType in operation.OwnedParameter.Where(x => x.Type is IClass).Select(x => x.Type as IClass)) + { + uniqueNamespaces.Add(Extensions.NamedElementExtensions.QueryNamespace(parameterType)); + } + } } - + uniqueNamespaces.Remove(Extensions.NamedElementExtensions.QueryNamespace(@class)); var orderedNamespaces = uniqueNamespaces.Order().ToList(); diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/OperationHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/OperationHelper.cs new file mode 100644 index 000000000..3e612d150 --- /dev/null +++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/OperationHelper.cs @@ -0,0 +1,189 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// Copyright 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.CodeGenerator.HandleBarHelpers +{ + using System; + using System.Linq; + using System.Text; + + using HandlebarsDotNet; + + using SysML2.NET.CodeGenerator.Extensions; + + using uml4net.Classification; + using uml4net.Extensions; + using uml4net.StructuredClassifiers; + + /// + /// A handlebars block helper for the interface + /// + public static class OperationHelper + { + /// + /// Registers the + /// + /// + /// The context with which the helper needs to be registered + /// + public static void RegisterOperationHelper(this IHandlebars handlebars) + { + handlebars.RegisterHelper("Operation.WriteForPOCOInterface", (writer, _, arguments) => + { + if (arguments.Length != 1) + { + throw new ArgumentException("Operation.WriteForPOCOInterface requires exactly one argument"); + } + + if (arguments[0] is not IOperation operation) + { + throw new ArgumentException("Operation.WriteForPOCOInterface argument must be an IOperation"); + } + + if (operation.RedefinedOperation.Any(x => x.Name == operation.Name)) + { + writer.WriteSafeString("new "); + } + + var returnParameter = operation.OwnedParameter.SingleOrDefault(x => x.Direction == ParameterDirectionKind.Return); + + writer.WriteSafeString(returnParameter?.Type == null ? "void" : $"{returnParameter.Type.QueryCSharpTypeName(true)}"); + + var methodName = operation.RedefinedOperation.Any(x => x.Name == operation.Name) ? $"ComputeRedefined{operation.Name.CapitalizeFirstLetter()}Operation" : $"Compute{operation.Name.CapitalizeFirstLetter()}Operation"; + writer.WriteSafeString($" {operation.Name.CapitalizeFirstLetter()}("); + var inputParameters = operation.OwnedParameter.Where(x => x.Direction != ParameterDirectionKind.Return).ToList(); + + writer.WriteSafeString(string.Join(", ", inputParameters.Select(x => $"{x.Type.QueryCSharpTypeName(true)} {x.Name.LowerCaseFirstLetter()}"))); + writer.WriteSafeString($") => this.{methodName}("); + writer.WriteSafeString(string.Join(", ", inputParameters.Select(x => $"{x.Name.LowerCaseFirstLetter()}"))); + writer.WriteSafeString($");{Environment.NewLine}"); + }); + + handlebars.RegisterHelper("ParameterDocumentation", (writer, _, arguments) => + { + if (arguments.Length != 1) + { + throw new ArgumentException("ParameterDocumentation requires exactly one argument"); + } + + if (arguments[0] is not IOperation operation) + { + throw new ArgumentException("ParameterDocumentation argument must be an IOperation"); + } + + var inputParameters = operation.OwnedParameter.Where(x => x.Direction != ParameterDirectionKind.Return).ToList(); + + foreach (var inputParameter in inputParameters) + { + writer.WriteSafeString(ComputeInputParameterDocumentation(inputParameter)); + } + + var returnParameter = operation.OwnedParameter.SingleOrDefault(x => x.Direction == ParameterDirectionKind.Return); + + if (returnParameter?.Type != null) + { + writer.WriteSafeString(ComputeReturnParameterDocumentation(returnParameter)); + } + }); + + handlebars.RegisterHelper("Operation.WriteForPOCOExtend", (writer, _, arguments) => + { + if (arguments.Length != 1) + { + throw new ArgumentException("Operation.WriteForPOCOExtend requires exactly one argument"); + } + + if (arguments[0] is not IOperation operation) + { + throw new ArgumentException("Operation.WriteForPOCOExtend argument must be an IOperation"); + } + + writer.WriteSafeString("internal static "); + + var returnParameter = operation.OwnedParameter.SingleOrDefault(x => x.Direction == ParameterDirectionKind.Return); + + writer.WriteSafeString(returnParameter?.Type == null ? "void" : $"{returnParameter.Type.QueryCSharpTypeName(true)}"); + + var methodName = operation.RedefinedOperation.Any(x => x.Name == operation.Name) ? $"ComputeRedefined{operation.Name.CapitalizeFirstLetter()}Operation" : $"Compute{operation.Name.CapitalizeFirstLetter()}Operation"; + var owner = (IClass)operation.Owner; + writer.WriteSafeString($" {methodName}(this I{owner.Name.CapitalizeFirstLetter()} {owner.Name.LowerCaseFirstLetter()}Subject"); + + var inputParameters = operation.OwnedParameter.Where(x => x.Direction != ParameterDirectionKind.Return).ToList(); + + if (inputParameters.Count > 0) + { + var parametersDefinition = string.Join(", ", inputParameters.Select(x => $"{x.Type.QueryCSharpTypeName(true)} {x.Name.LowerCaseFirstLetter()}")); + writer.WriteSafeString($", {parametersDefinition}"); + } + + writer.WriteSafeString($"){Environment.NewLine}"); + }); + } + + /// + /// Compute the documentation for an input + /// + /// The that needs to have the documentation built + /// The built documentation + private static string ComputeInputParameterDocumentation(IParameter parameter) + { + var stringBuilder = new StringBuilder(); + stringBuilder.AppendLine($"/// "); + + var documentation = parameter.QueryDocumentation().ToList(); + + if (documentation.Count != 0) + { + stringBuilder.Append(string.Join("/// ", documentation.Select(x => $"{x} {Environment.NewLine}"))); + } + else + { + stringBuilder.AppendLine("/// No documentation provided"); + } + + stringBuilder.AppendLine("/// "); + return stringBuilder.ToString(); + } + + /// + /// Compute the documentation for a return + /// + /// The that needs to have the documentation built + /// The built documentation + private static string ComputeReturnParameterDocumentation(IParameter parameter) + { + var stringBuilder = new StringBuilder(); + stringBuilder.AppendLine("/// "); + var documentation = parameter.QueryDocumentation().ToList(); + + if (documentation.Count != 0) + { + stringBuilder.Append(string.Join("/// ", documentation.Select(x => $"{x} {Environment.NewLine}"))); + } + else + { + stringBuilder.AppendLine($"/// The expected {parameter.Type.QueryCSharpTypeName(true)}"); + } + + stringBuilder.AppendLine("/// "); + return stringBuilder.ToString(); + } + } +} diff --git a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs index f46a4c938..4d2eff4ab 100644 --- a/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs +++ b/SysML2.NET.CodeGenerator/HandleBarHelpers/PropertyHelper.cs @@ -300,7 +300,7 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) { if (property.QueryPropertyIsPartOfNonDerivedCompositeAggregation()) { - sb.Append($"IReadOnlyCollection<{typeName}> "); + sb.Append($"IReadOnlyList<{typeName}> "); } else { @@ -378,7 +378,7 @@ public static void RegisterPropertyHelper(this IHandlebars handlebars) { if (property.QueryPropertyIsPartOfNonDerivedCompositeAggregation()) { - sb.Append($"IReadOnlyCollection<{typeName}> "); + sb.Append($"IReadOnlyList<{typeName}> "); } else { diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-extend-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-extend-uml-template.hbs index d4ca18dcd..92dd1252e 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-extend-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-extend-uml-template.hbs @@ -37,19 +37,34 @@ namespace SysML2.NET.Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace thi /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static {{ Property.WriteTypeForExtendClass property }} Compute{{String.CapitalizeFirstLetter property.Name}}(this I{{../this.Name}} {{String.LowerCaseFirstLetter ../this.Name}}) + internal static {{ Property.WriteTypeForExtendClass property }} Compute{{String.CapitalizeFirstLetter property.Name}}(this I{{../this.Name}} {{String.LowerCaseFirstLetter ../this.Name}}Subject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } {{/if}} {{/each}} + {{#each (this.OwnedOperation) as | operation | }} + {{ #Documentation operation }} + /// + /// The subject + /// + {{ #ParameterDocumentation operation }} + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + {{ #Operation.WriteForPOCOExtend operation }} + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + {{#unless @last}} + + {{/unless}} + {{/each}} } } diff --git a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-interface-uml-template.hbs b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-interface-uml-template.hbs index 58e21ae24..31c548650 100644 --- a/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-interface-uml-template.hbs +++ b/SysML2.NET.CodeGenerator/Templates/Uml/core-poco-interface-uml-template.hbs @@ -46,6 +46,14 @@ namespace SysML2.NET.Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace thi {{ #Property.WriteForPOCOInterface property }} {{/each}} + {{#each (this.OwnedOperation) as | operation | }} + {{ #Documentation operation }} + {{ #ParameterDocumentation operation }} + {{ #Operation.WriteForPOCOInterface operation }} + {{#unless @last}} + + {{/unless}} + {{/each}} } } diff --git a/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs index 54103f3a7..d6a523e53 100644 --- a/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AcceptActionUsage.cs @@ -922,7 +922,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs index d18d2faf0..ad96965a7 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActionDefinition.cs @@ -606,7 +606,7 @@ public ActionDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs index 05a4c5c7d..7680237bf 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActionUsage.cs @@ -36,6 +36,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Functions; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -920,7 +921,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs b/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs index b18d6949c..3daa8b556 100644 --- a/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ActorMembership.cs @@ -290,7 +290,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -301,7 +301,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs index b56818339..95b049dd6 100644 --- a/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AllocationDefinition.cs @@ -656,7 +656,7 @@ bool Core.Types.IType.IsSufficient [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -667,7 +667,7 @@ bool Core.Types.IType.IsSufficient [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs b/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs index aa2d52b6f..386d12504 100644 --- a/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AllocationUsage.cs @@ -971,7 +971,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -982,7 +982,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs index a149ba17c..51a00ed82 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseDefinition.cs @@ -649,7 +649,7 @@ public AnalysisCaseDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs index fb3a99392..f6b87adfa 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnalysisCaseUsage.cs @@ -979,7 +979,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs b/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs index a126d2b2e..d664fd698 100644 --- a/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs +++ b/SysML2.NET/Core/AutoGenPoco/AnnotatingElement.cs @@ -182,7 +182,7 @@ public AnnotatingElement() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Annotation.cs b/SysML2.NET/Core/AutoGenPoco/Annotation.cs index f3537257f..d09ee6382 100644 --- a/SysML2.NET/Core/AutoGenPoco/Annotation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Annotation.cs @@ -191,7 +191,7 @@ public Annotation() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -202,7 +202,7 @@ public Annotation() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs index c02f425ef..7544b9389 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssertConstraintUsage.cs @@ -953,7 +953,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs index f8df89a27..c136253bd 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssignmentActionUsage.cs @@ -921,7 +921,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Association.cs b/SysML2.NET/Core/AutoGenPoco/Association.cs index 0e661aa72..6f98b8bfd 100644 --- a/SysML2.NET/Core/AutoGenPoco/Association.cs +++ b/SysML2.NET/Core/AutoGenPoco/Association.cs @@ -429,7 +429,7 @@ public Association() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -440,7 +440,7 @@ public Association() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs b/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs index 32b269e07..caaa99a90 100644 --- a/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs +++ b/SysML2.NET/Core/AutoGenPoco/AssociationStructure.cs @@ -431,7 +431,7 @@ public AssociationStructure() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -442,7 +442,7 @@ public AssociationStructure() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs b/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs index b902e3f53..ee2318b72 100644 --- a/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/AttributeDefinition.cs @@ -592,7 +592,7 @@ public AttributeDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs b/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs index 66c520e38..3eaad33cb 100644 --- a/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/AttributeUsage.cs @@ -894,7 +894,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Behavior.cs b/SysML2.NET/Core/AutoGenPoco/Behavior.cs index 1246e9b1b..aea7b579f 100644 --- a/SysML2.NET/Core/AutoGenPoco/Behavior.cs +++ b/SysML2.NET/Core/AutoGenPoco/Behavior.cs @@ -407,7 +407,7 @@ public Behavior() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs b/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs index 42fdd1558..1211d294c 100644 --- a/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs +++ b/SysML2.NET/Core/AutoGenPoco/BindingConnector.cs @@ -618,7 +618,7 @@ public BindingConnector() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -629,7 +629,7 @@ public BindingConnector() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs index d3ba72453..0bc3b6384 100644 --- a/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/BindingConnectorAsUsage.cs @@ -909,7 +909,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -920,7 +920,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs b/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs index 3a6012d5d..9760ce726 100644 --- a/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/BooleanExpression.cs @@ -605,7 +605,7 @@ public BooleanExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs index 17f8c2ea8..e5507f34b 100644 --- a/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/CalculationDefinition.cs @@ -634,7 +634,7 @@ public CalculationDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs b/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs index c6f27188c..9aca6dcdc 100644 --- a/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/CalculationUsage.cs @@ -948,7 +948,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs index 151a0fc4a..9c67cd9d8 100644 --- a/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/CaseDefinition.cs @@ -651,7 +651,7 @@ public CaseDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs index 289c1fd7a..7944c922f 100644 --- a/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/CaseUsage.cs @@ -970,7 +970,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Class.cs b/SysML2.NET/Core/AutoGenPoco/Class.cs index 4ddac7708..f577aba50 100644 --- a/SysML2.NET/Core/AutoGenPoco/Class.cs +++ b/SysML2.NET/Core/AutoGenPoco/Class.cs @@ -406,7 +406,7 @@ public Class() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Classifier.cs b/SysML2.NET/Core/AutoGenPoco/Classifier.cs index a2366a607..f5ac18d6a 100644 --- a/SysML2.NET/Core/AutoGenPoco/Classifier.cs +++ b/SysML2.NET/Core/AutoGenPoco/Classifier.cs @@ -409,7 +409,7 @@ public Classifier() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs b/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs index ec539d5fb..551256880 100644 --- a/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/CollectExpression.cs @@ -646,7 +646,7 @@ string IOperatorExpression.Operator [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Comment.cs b/SysML2.NET/Core/AutoGenPoco/Comment.cs index fbb7d6dd1..d7fcd96b7 100644 --- a/SysML2.NET/Core/AutoGenPoco/Comment.cs +++ b/SysML2.NET/Core/AutoGenPoco/Comment.cs @@ -196,7 +196,7 @@ public Comment() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs index d17294686..1fa722a87 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConcernDefinition.cs @@ -653,7 +653,7 @@ string Root.Elements.IElement.DeclaredShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs index 9d9eb3a89..5423bab6b 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConcernUsage.cs @@ -982,7 +982,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs index c4d057a27..1847a53e7 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortDefinition.cs @@ -627,7 +627,7 @@ public ConjugatedPortDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs index a18654cbe..d3f86460d 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConjugatedPortTyping.cs @@ -194,7 +194,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -205,7 +205,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Conjugation.cs b/SysML2.NET/Core/AutoGenPoco/Conjugation.cs index c5e58266f..9256126e5 100644 --- a/SysML2.NET/Core/AutoGenPoco/Conjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Conjugation.cs @@ -188,7 +188,7 @@ public Conjugation() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -199,7 +199,7 @@ public Conjugation() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs index 628ccf8c4..b99c5ee6e 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectionDefinition.cs @@ -644,7 +644,7 @@ bool Core.Types.IType.IsSufficient [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -655,7 +655,7 @@ bool Core.Types.IType.IsSufficient [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs index c34e424a4..c43f815e4 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConnectionUsage.cs @@ -964,7 +964,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -975,7 +975,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Connector.cs b/SysML2.NET/Core/AutoGenPoco/Connector.cs index ee1b48451..c377ccf24 100644 --- a/SysML2.NET/Core/AutoGenPoco/Connector.cs +++ b/SysML2.NET/Core/AutoGenPoco/Connector.cs @@ -620,7 +620,7 @@ public Connector() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -631,7 +631,7 @@ public Connector() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs index ab1b40c43..a174b9950 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstraintDefinition.cs @@ -617,7 +617,7 @@ public ConstraintDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs index 97f9425e3..5fa605f3a 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstraintUsage.cs @@ -938,7 +938,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs b/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs index b80191eb0..3dee94d36 100644 --- a/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/ConstructorExpression.cs @@ -624,7 +624,7 @@ public ConstructorExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs index fa96f946a..3d8258228 100644 --- a/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/CrossSubsetting.cs @@ -216,7 +216,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -227,7 +227,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/DataType.cs b/SysML2.NET/Core/AutoGenPoco/DataType.cs index 02e811867..5db59bdec 100644 --- a/SysML2.NET/Core/AutoGenPoco/DataType.cs +++ b/SysML2.NET/Core/AutoGenPoco/DataType.cs @@ -410,7 +410,7 @@ public DataType() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs b/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs index 0f00bc34e..14b24ba63 100644 --- a/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/DecisionNode.cs @@ -917,7 +917,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Definition.cs b/SysML2.NET/Core/AutoGenPoco/Definition.cs index a772f7733..6d82220eb 100644 --- a/SysML2.NET/Core/AutoGenPoco/Definition.cs +++ b/SysML2.NET/Core/AutoGenPoco/Definition.cs @@ -596,7 +596,7 @@ public Definition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Dependency.cs b/SysML2.NET/Core/AutoGenPoco/Dependency.cs index c9b563489..9f2a17b26 100644 --- a/SysML2.NET/Core/AutoGenPoco/Dependency.cs +++ b/SysML2.NET/Core/AutoGenPoco/Dependency.cs @@ -177,7 +177,7 @@ public Dependency() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -188,7 +188,7 @@ public Dependency() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Differencing.cs b/SysML2.NET/Core/AutoGenPoco/Differencing.cs index 1eea0723c..7f3d8af35 100644 --- a/SysML2.NET/Core/AutoGenPoco/Differencing.cs +++ b/SysML2.NET/Core/AutoGenPoco/Differencing.cs @@ -175,7 +175,7 @@ public Differencing() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -186,7 +186,7 @@ public Differencing() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Disjoining.cs b/SysML2.NET/Core/AutoGenPoco/Disjoining.cs index 301e64af2..792a797d3 100644 --- a/SysML2.NET/Core/AutoGenPoco/Disjoining.cs +++ b/SysML2.NET/Core/AutoGenPoco/Disjoining.cs @@ -176,7 +176,7 @@ public Disjoining() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -187,7 +187,7 @@ public Disjoining() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Documentation.cs b/SysML2.NET/Core/AutoGenPoco/Documentation.cs index df4d3e5dc..40a7cc787 100644 --- a/SysML2.NET/Core/AutoGenPoco/Documentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/Documentation.cs @@ -206,7 +206,7 @@ public Documentation() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs index 53025afa1..30642113f 100644 --- a/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ElementFilterMembership.cs @@ -269,7 +269,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -280,7 +280,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs index 69bd0394b..50f4e8bad 100644 --- a/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/EndFeatureMembership.cs @@ -276,7 +276,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -287,7 +287,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs b/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs index 651bcfff8..280716ee1 100644 --- a/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/EnumerationDefinition.cs @@ -615,7 +615,7 @@ bool Systems.DefinitionAndUsage.IDefinition.IsVariation [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs b/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs index 939615770..432035f5f 100644 --- a/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/EnumerationUsage.cs @@ -897,7 +897,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs index 24cfc6398..3813bd42b 100644 --- a/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/EventOccurrenceUsage.cs @@ -919,7 +919,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs b/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs index 5445368fc..7644095b9 100644 --- a/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ExhibitStateUsage.cs @@ -985,7 +985,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Expression.cs b/SysML2.NET/Core/AutoGenPoco/Expression.cs index c3ce9a63e..4f74d7901 100644 --- a/SysML2.NET/Core/AutoGenPoco/Expression.cs +++ b/SysML2.NET/Core/AutoGenPoco/Expression.cs @@ -607,7 +607,7 @@ public Expression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Feature.cs b/SysML2.NET/Core/AutoGenPoco/Feature.cs index 3605254ce..1bc856e10 100644 --- a/SysML2.NET/Core/AutoGenPoco/Feature.cs +++ b/SysML2.NET/Core/AutoGenPoco/Feature.cs @@ -590,7 +590,7 @@ public Feature() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs b/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs index d425cc618..703637a14 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureChainExpression.cs @@ -647,7 +647,7 @@ string IOperatorExpression.Operator [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs b/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs index 9d636eb61..d2ada4c8e 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureChaining.cs @@ -185,7 +185,7 @@ public FeatureChaining() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -196,7 +196,7 @@ public FeatureChaining() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs b/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs index 523fc0c28..46b73511e 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureInverting.cs @@ -185,7 +185,7 @@ public FeatureInverting() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -196,7 +196,7 @@ public FeatureInverting() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs index b63ebd661..2d1d971ff 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureMembership.cs @@ -271,7 +271,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -282,7 +282,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs index 15decb3dd..5b9707603 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureReferenceExpression.cs @@ -604,7 +604,7 @@ public FeatureReferenceExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs b/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs index 7025fb39c..6e70454b2 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureTyping.cs @@ -185,7 +185,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -196,7 +196,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs b/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs index 9b8ebde85..9cb094a4a 100644 --- a/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs +++ b/SysML2.NET/Core/AutoGenPoco/FeatureValue.cs @@ -291,7 +291,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -302,7 +302,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Flow.cs b/SysML2.NET/Core/AutoGenPoco/Flow.cs index a14f3624d..df70f3314 100644 --- a/SysML2.NET/Core/AutoGenPoco/Flow.cs +++ b/SysML2.NET/Core/AutoGenPoco/Flow.cs @@ -650,7 +650,7 @@ public Flow() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -661,7 +661,7 @@ public Flow() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs b/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs index 461359264..e5bcd4540 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowDefinition.cs @@ -640,7 +640,7 @@ public FlowDefinition() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -651,7 +651,7 @@ public FlowDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs b/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs index 77c4f9d78..22caf16da 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowEnd.cs @@ -579,7 +579,7 @@ public FlowEnd() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs index e4a321281..12152df08 100644 --- a/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/FlowUsage.cs @@ -990,7 +990,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -1001,7 +1001,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs index 8a9d04287..25550521b 100644 --- a/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ForLoopActionUsage.cs @@ -937,7 +937,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ForkNode.cs b/SysML2.NET/Core/AutoGenPoco/ForkNode.cs index ffcc27bb0..4e3ac23d8 100644 --- a/SysML2.NET/Core/AutoGenPoco/ForkNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/ForkNode.cs @@ -918,7 +918,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs b/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs index d1837bef6..cb68e8c3f 100644 --- a/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/FramedConcernMembership.cs @@ -312,7 +312,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -323,7 +323,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Function.cs b/SysML2.NET/Core/AutoGenPoco/Function.cs index 964451c62..e97ea5831 100644 --- a/SysML2.NET/Core/AutoGenPoco/Function.cs +++ b/SysML2.NET/Core/AutoGenPoco/Function.cs @@ -427,7 +427,7 @@ public Function() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs index 84e4dae0b..1cf9d53a7 100644 --- a/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IAcceptActionUsage.cs @@ -94,6 +94,13 @@ public partial interface IAcceptActionUsage : IActionUsage [Property(xmiId: "_19_0_4_12e503d9_1612814670555_311543_168", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] IExpression receiverArgument { get; } + /// + /// Check if this AcceptActionUsage is the triggerAction of a TransitionUsage. + /// + /// + /// The expected bool + /// + bool IsTriggerAction() => this.ComputeIsTriggerActionOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs index bc9efa850..39b071a9f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IActionUsage.cs @@ -35,6 +35,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Functions; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -80,6 +81,48 @@ public partial interface IActionUsage : IStep, IOccurrenceUsage [RedefinedProperty(propertyName: "_18_5_3_b9102da_1536346315176_954314_17388")] List actionDefinition { get; } + /// + /// Return the owned input parameters of this ActionUsage. + /// + /// + /// The expected IFeature + /// + IFeature InputParameters() => this.ComputeInputParametersOperation(); + + /// + /// Return the i-th owned input parameter of the ActionUsage. Return null if the ActionUsage has less + /// than i owned input parameters. + /// + /// + /// No documentation provided + /// + /// + /// The expected IFeature + /// + IFeature InputParameter(int i) => this.ComputeInputParameterOperation(i); + + /// + /// Return the i-th argument Expression of an ActionUsage, defined as the value Expression of the + /// FeatureValue of the i-th owned input parameter of the ActionUsage. Return null if the ActionUsage + /// has less than i owned input parameters or the i-th owned input parameter has no FeatureValue. + /// + /// + /// No documentation provided + /// + /// + /// The expected IExpression + /// + IExpression Argument(int i) => this.ComputeArgumentOperation(i); + + /// + /// Check if this ActionUsage is composite and has an owningType that is an ActionDefinition or + /// ActionUsage but is not the entryAction or exitAction of a StateDefinition or StateUsage. If so, then + /// it represents an Action that is a subaction of another Action. + /// + /// + /// The expected bool + /// + bool IsSubactionUsage() => this.ComputeIsSubactionUsageOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs b/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs index cedc5c549..233cc0271 100644 --- a/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ICalculationUsage.cs @@ -81,6 +81,16 @@ public partial interface ICalculationUsage : IExpression, IActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1543948477241_299049_20934")] IFunction calculationDefinition { get; } + /// + /// A CalculationUsage is not model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs index 21f41ef5c..c223c6bf4 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConjugatedPortDefinition.cs @@ -86,6 +86,14 @@ public partial interface IConjugatedPortDefinition : IPortDefinition [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1575482646809_280165_440")] IPortConjugation ownedPortConjugator { get; } + /// + /// If the name of the originalPortDefinition is non-empty, then return that with the character ~ + /// prepended. + /// + /// + /// The expected string + /// + new string EffectiveName() => this.ComputeRedefinedEffectiveNameOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs b/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs index 302618cd8..a7c0ff268 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConstraintUsage.cs @@ -81,6 +81,26 @@ public partial interface IConstraintUsage : IBooleanExpression, IOccurrenceUsage [RedefinedProperty(propertyName: "_19_0_2_12e503d9_1578025035149_386_969")] IPredicate constraintDefinition { get; } + /// + /// The naming Feature of a ConstraintUsage that is owned by a RequirementConstraintMembership and has + /// an ownedReferenceSubsetting is the featureTarget of the referencedFeature of that + /// ownedReferenceSubsetting. + /// + /// + /// The expected IFeature + /// + new IFeature NamingFeature() => this.ComputeRedefinedNamingFeatureOperation(); + + /// + /// A ConstraintUsage is not model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IConstructorExpression.cs b/SysML2.NET/Core/AutoGenPoco/IConstructorExpression.cs index 76013366a..386a28159 100644 --- a/SysML2.NET/Core/AutoGenPoco/IConstructorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IConstructorExpression.cs @@ -47,6 +47,17 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions [GeneratedCode("SysML2.NET", "latest")] public partial interface IConstructorExpression : IInstantiationExpression { + /// + /// A ConstructorExpression is model-level evaluable if all its argument Expressions are model-level + /// evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IControlNode.cs b/SysML2.NET/Core/AutoGenPoco/IControlNode.cs index fea8929ac..583cf32c5 100644 --- a/SysML2.NET/Core/AutoGenPoco/IControlNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/IControlNode.cs @@ -70,6 +70,23 @@ namespace SysML2.NET.Core.POCO.Systems.Actions [GeneratedCode("SysML2.NET", "latest")] public partial interface IControlNode : IActionUsage { + /// + /// Check that the given Multiplicity has lowerBound and upperBound expressions that are model-level + /// evaluable to the given lower and upper values. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool MultiplicityHasBounds(IMultiplicity mult, int lower, string upper) => this.ComputeMultiplicityHasBoundsOperation(mult, lower, upper); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IElement.cs b/SysML2.NET/Core/AutoGenPoco/IElement.cs index fb71530fd..649645280 100644 --- a/SysML2.NET/Core/AutoGenPoco/IElement.cs +++ b/SysML2.NET/Core/AutoGenPoco/IElement.cs @@ -124,7 +124,7 @@ public partial interface IElement ///
[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")] - IReadOnlyCollection OwnedRelationship { get; } + IReadOnlyList OwnedRelationship { get; } /// /// The owner of this Element, derived as the owningRelatedElement of the owningRelationship of this @@ -184,6 +184,55 @@ public partial interface IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092869879_112608_17278")] List textualRepresentation { get; } + /// + /// 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). + /// + /// + /// The expected string + /// + string EscapedName() => this.ComputeEscapedNameOperation(); + + /// + /// Return an effective shortName for this Element. By default this is the same as its + /// declaredShortName. + /// + /// + /// The expected string + /// + string EffectiveShortName() => this.ComputeEffectiveShortNameOperation(); + + /// + /// Return an effective name for this Element. By default this is the same as its declaredName. + /// + /// + /// The expected string + /// + string EffectiveName() => this.ComputeEffectiveNameOperation(); + + /// + /// By default, return the library Namespace of the owningRelationship of this Element, if it has one. + /// + /// + /// The expected INamespace + /// + INamespace LibraryNamespace() => this.ComputeLibraryNamespaceOperation(); + + /// + /// 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.) + /// + /// + /// The expected string + /// + string Path() => this.ComputePathOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IExpression.cs b/SysML2.NET/Core/AutoGenPoco/IExpression.cs index 29777ba18..9094866e1 100644 --- a/SysML2.NET/Core/AutoGenPoco/IExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IExpression.cs @@ -72,6 +72,49 @@ public partial interface IExpression : IStep [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1595189174990_213826_657")] IFeature result { get; } + /// + /// Return whether this Expression is model-level evaluable. The visited parameter is used to track + /// possible circular Feature references made from FeatureReferenceExpressions (see the redefinition of + /// this operation for FeatureReferenceExpression). Such circular references are not allowed in + /// model-level evaluable expressions. An Expression that is not otherwise + /// specialized is model-level evaluable if it has no (non-implied) ownedSpecializations and all its + /// ownedFeatures are either in parameters, the result parameter or a result Expression owned via a + /// ResultExpressionMembership. The parameters must not have any ownedFeatures or a FeatureValue, and + /// the result Expression must be model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool ModelLevelEvaluable(IFeature visited) => this.ComputeModelLevelEvaluableOperation(visited); + + /// + /// If this Expression isModelLevelEvaluable, then evaluate it using the target as the context Element + /// for resolving Feature names and testing classification. The result is a collection of Elements, + /// which, for a fully evaluable Expression, will be a LiteralExpression or a Feature that is not an + /// Expression. + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + IElement Evaluate(IElement target) => this.ComputeEvaluateOperation(target); + + /// + /// Model-level evaluate this Expression with the given target. If the result is a LiteralBoolean, + /// return its value. Otherwise return false. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool CheckCondition(IElement target) => this.ComputeCheckConditionOperation(target); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeature.cs b/SysML2.NET/Core/AutoGenPoco/IFeature.cs index f6d28b0b3..1779cc38d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeature.cs @@ -262,6 +262,208 @@ public partial interface IFeature : IType [Property(xmiId: "_18_5_3_12e503d9_1533160674969_376003_43216", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] List type { get; } + /// + /// Return the directionOf this Feature relative to the given type. + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + FeatureDirectionKind DirectionFor(IType type) => this.ComputeDirectionForOperation(type); + + /// + /// If a Feature has no declaredShortName or declaredName, then its effective shortName is given by the + /// effective shortName of the Feature returned by the namingFeature() operation, if any. + /// + /// + /// The expected string + /// + new string EffectiveShortName() => this.ComputeRedefinedEffectiveShortNameOperation(); + + /// + /// If a Feature has no declaredName or declaredShortName , then its + /// effective name is given by the effective name of the Feature returned by the namingFeature() + /// operation, if any. + /// + /// + /// The expected string + /// + new string EffectiveName() => this.ComputeRedefinedEffectiveNameOperation(); + + /// + /// By default, the naming Feature of a Feature is given by its first redefinedFeature of its first + /// ownedRedefinition, if any. + /// + /// + /// The expected IFeature + /// + IFeature NamingFeature() => this.ComputeNamingFeatureOperation(); + + /// + /// + /// + /// No documentation provided + /// + /// + /// The expected IType + /// + new IType Supertypes(bool excludeImplied) => this.ComputeRedefinedSupertypesOperation(excludeImplied); + + /// + /// Check whether this Feature directly redefines the given redefinedFeature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool Redefines(IFeature redefinedFeature) => this.ComputeRedefinesOperation(redefinedFeature); + + /// + /// Check whether this Feature directly redefines the named library Feature. libraryFeatureName must + /// conform to the syntax of a KerML qualified name and must resolve to a Feature in global scope. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool RedefinesFromLibrary(string libraryFeatureName) => this.ComputeRedefinesFromLibraryOperation(libraryFeatureName); + + /// + /// Check whether this Feature directly or indirectly specializes a Feature whose last two + /// chainingFeatures are the given Features first and second. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool SubsetsChain(IFeature first, IFeature second) => this.ComputeSubsetsChainOperation(first, second); + + /// + /// A Feature is compatible with an otherType if it either directly or indirectly specializes the + /// otherType or if the otherType is also a Feature and all of the following are true. + ///
  1. Neither this Feature or the otherType have any + /// ownedFeatures.
  2. This Feature directly or indirectly redefines a + /// Feature that is also directly or indirectly redefined by the otherType.
  3. + ///
  4. This Feature can access the otherType.
+ ///
+ /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool IsCompatibleWith(IType otherType) => this.ComputeRedefinedIsCompatibleWithOperation(otherType); + + /// + /// Return the Features used to determine the types of this Feature (other than this Feature itself). If + /// this Feature is not conjugated, then the typingFeatures consist of all subsetted Features, except + /// from CrossSubsetting, and the last chainingFeature (if any). If this Feature is conjugated, then the + /// typingFeatures are only its originalType (if the originalType is a Feature). + /// Note. CrossSubsetting is excluded from the determination of the type of a + /// Feature in order to avoid circularity in the construction of implied CrossSubsetting relationships. + /// The validateFeatureCrossFeatureType requires that the crossFeature of a Feature have the same type + /// as the Feature. + /// + /// + /// The expected IFeature + /// + IFeature TypingFeatures() => this.ComputeTypingFeaturesOperation(); + + /// + /// If isCartesianProduct is true, then return the list of Types whose Cartesian product can be + /// represented by this Feature. (If isCartesianProduct is not true, the operation will still return a + /// valid value, it will just not represent anything useful.) + /// + /// + /// The expected IType + /// + IType AsCartesianProduct() => this.ComputeAsCartesianProductOperation(); + + /// + /// Check whether this Feature can be used to represent a Cartesian product of Types. + /// + /// + /// The expected bool + /// + bool IsCartesianProduct() => this.ComputeIsCartesianProductOperation(); + + /// + /// Return whether this Feature is an owned cross Feature of an end Feature. + /// + /// + /// The expected bool + /// + bool IsOwnedCrossFeature() => this.ComputeIsOwnedCrossFeatureOperation(); + + /// + /// If this Feature is an end Feature of its owningType, then return the first ownedMember of the + /// Feature that is a Feature, but not a Multiplicity or a MetadataFeature, and whose owningMembership + /// is not a FeatureMembership. If this exists, it is the crossFeature of the end Feature. + /// + /// + /// The expected IFeature + /// + IFeature OwnedCrossFeature() => this.ComputeOwnedCrossFeatureOperation(); + + /// + /// Return this Feature and all the Features that are directly or indirectly Redefined by this Feature. + /// + /// + /// The expected IFeature + /// + IFeature AllRedefinedFeatures() => this.ComputeAllRedefinedFeaturesOperation(); + + /// + /// Return if the featuringTypes of this Feature are compatible with the given type. If type is null, + /// then check if this Feature is explicitly or implicitly featured by Base::Anything. If this Feature + /// has isVariable = true, then also consider it to be featured within its owningType. If this Feature + /// is a feature chain whose first chainingFeature has isVariable = true, then also consider it to be + /// featured within the owningType of its first chainingFeature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsFeaturedWithin(IType type) => this.ComputeIsFeaturedWithinOperation(type); + + /// + /// A Feature can access another feature if the other feature is featured within one of the direct or + /// indirect featuringTypes of this Feature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool CanAccess(IFeature feature) => this.ComputeCanAccessOperation(feature); + + /// + /// Return whether the given type must be a featuringType of this Feature. If this Feature has + /// isVariable = false, then return true if the type is the owningType of the Feature. If isVariable = + /// true, then return true if the type is a Feature representing the snapshots of the owningType of this + /// Feature. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsFeaturingType(IType type) => this.ComputeIsFeaturingTypeOperation(type); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs index cd94d956b..2fcc99b09 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureChainExpression.cs @@ -61,6 +61,14 @@ public partial interface IFeatureChainExpression : IOperatorExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] IFeature targetFeature { get; } + /// + /// Return the first ownedFeature of the first owned input parameter of this FeatureChainExpression (if + /// any). + /// + /// + /// The expected IFeature + /// + IFeature SourceTargetFeature() => this.ComputeSourceTargetFeatureOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs b/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs index faaa57bb1..e0fc6521f 100644 --- a/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IFeatureReferenceExpression.cs @@ -53,6 +53,40 @@ public partial interface IFeatureReferenceExpression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] IFeature referent { get; } + /// + /// A FeatureReferenceExpression is model-level evaluable if it's referent + ///
  • conforms to the self-reference feature Anything::self;
  • + ///
  • is an Expression that is model-level evaluable;
  • + ///
  • has an owningType that is a Metaclass or MetadataFeature; or
  • + ///
  • has no featuringTypes and, if it has a FeatureValue, the value Expression is model-level + /// evaluable.
+ ///
+ /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); + + /// + /// First, determine a value Expression for the referent:
    + ///
  • If the target Element is a Type that has a feature that is the referent or (directly + /// or indirectly) redefines it, then the value Expression of the FeatureValue for that feature (if + /// any).
  • Else, if the referent has no featuringTypes, the value + /// Expression of the FeatureValue for the referent (if any).
+ /// Then:
  • If such a + /// value Expression exists, return the result of evaluating that Expression on the target.
  • + ///
  • Else, if the referent is not an Expression, return the referent.
  • + ///
  • Else return the empty sequence.
+ ///
+ /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + new IElement Evaluate(IElement target) => this.ComputeRedefinedEvaluateOperation(target); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IImport.cs b/SysML2.NET/Core/AutoGenPoco/IImport.cs index 456a3edbe..08bfd0950 100644 --- a/SysML2.NET/Core/AutoGenPoco/IImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/IImport.cs @@ -81,6 +81,17 @@ public partial interface IImport : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674976_798509_43257", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "private")] VisibilityKind Visibility { get; set; } + /// + /// Returns Memberships that are to become importedMemberships of the importOwningNamespace. (The + /// excluded parameter is used to handle the possibility of circular Import Relationships.) + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership ImportedMemberships(INamespace excluded) => this.ComputeImportedMembershipsOperation(excluded); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs b/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs index 7835aa1c7..1cce6c3e7 100644 --- a/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IInstantiationExpression.cs @@ -64,6 +64,16 @@ public partial interface IInstantiationExpression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] IType instantiatedType { get; } + /// + /// Return the Type to act as the instantiatedType for this InstantiationExpression. By default, this is + /// the memberElement of the first ownedMembership that is not a FeatureMembership, which must be a + /// Type. Note. This operation is overridden in the subclass + /// OperatorExpression. + /// + /// + /// The expected IType + /// + IType InstantiatedType() => this.ComputeInstantiatedTypeOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IInvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/IInvocationExpression.cs index f90352290..712d92ec3 100644 --- a/SysML2.NET/Core/AutoGenPoco/IInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IInvocationExpression.cs @@ -50,6 +50,30 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions [GeneratedCode("SysML2.NET", "latest")] public partial interface IInvocationExpression : IInstantiationExpression { + /// + /// An InvocationExpression is model-level evaluable if all its argument Expressions are model-level + /// evaluable and its function is model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); + + /// + /// Apply the Function that is the type of this InvocationExpression to the argument values resulting + /// from evaluating each of the argument Expressions on the given target. If the application is not + /// possible, then return an empty sequence. + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + new IElement Evaluate(IElement target) => this.ComputeRedefinedEvaluateOperation(target); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ILibraryPackage.cs b/SysML2.NET/Core/AutoGenPoco/ILibraryPackage.cs index 996dcbaac..0ffac97d1 100644 --- a/SysML2.NET/Core/AutoGenPoco/ILibraryPackage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ILibraryPackage.cs @@ -50,6 +50,13 @@ public partial interface ILibraryPackage : IPackage [Property(xmiId: "_19_0_4_12e503d9_1665459011301_65344_899", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")] bool IsStandard { get; set; } + /// + /// The libraryNamespace for a LibraryPackage is itself. + /// + /// + /// The expected INamespace + /// + new INamespace LibraryNamespace() => this.ComputeRedefinedLibraryNamespaceOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ILiteralExpression.cs b/SysML2.NET/Core/AutoGenPoco/ILiteralExpression.cs index d2ac29dd3..81b2fc893 100644 --- a/SysML2.NET/Core/AutoGenPoco/ILiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/ILiteralExpression.cs @@ -45,6 +45,27 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions [GeneratedCode("SysML2.NET", "latest")] public partial interface ILiteralExpression : IExpression { + /// + /// A LiteralExpression is always model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); + + /// + /// The model-level value of a LiteralExpression is itself. + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + new IElement Evaluate(IElement target) => this.ComputeRedefinedEvaluateOperation(target); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMembership.cs b/SysML2.NET/Core/AutoGenPoco/IMembership.cs index ecd8116bb..0fb72a73c 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMembership.cs @@ -88,6 +88,20 @@ public partial interface IMembership : IRelationship [Property(xmiId: "_18_5_3_12e503d9_1533160674964_42975_43193", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "public")] VisibilityKind Visibility { get; set; } + /// + /// Whether this Membership is distinguishable from a given other Membership. By default, this is true + /// if this Membership has no memberShortName or memberName; or each of the memberShortName and + /// memberName are different than both of those of the other Membership; or neither of the metaclasses + /// of the memberElement of this Membership and the memberElement of the other Membership conform to the + /// other. But this may be overridden in specializations of Membership. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsDistinguishableFrom(IMembership other) => this.ComputeIsDistinguishableFromOperation(other); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMembershipImport.cs b/SysML2.NET/Core/AutoGenPoco/IMembershipImport.cs index f47d1bd72..bd0d904d6 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMembershipImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMembershipImport.cs @@ -49,6 +49,18 @@ public partial interface IMembershipImport : IImport [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] IMembership ImportedMembership { get; set; } + /// + /// Returns at least the importedMembership. If isRecursive = true and the memberElement of the + /// importedMembership is a Namespace, then Memberships are also recursively imported from that + /// Namespace. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + new IMembership ImportedMemberships(INamespace excluded) => this.ComputeRedefinedImportedMembershipsOperation(excluded); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs index fc53faaad..9e0771556 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMetadataAccessExpression.cs @@ -33,6 +33,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Kernel.Metadata; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -55,6 +56,41 @@ public partial interface IMetadataAccessExpression : IExpression [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_644335_43267")] IElement referencedElement { get; } + /// + /// A MetadataAccessExpression is always model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); + + /// + /// Return the ownedElements of the referencedElement that are MetadataFeatures and have the + /// referencedElement as an annotatedElement, plus a MetadataFeature whose annotatedElement is the + /// referencedElement, whose metaclass is the reflective Metaclass corresponding to the MOF class of the + /// referencedElement and whose ownedFeatures are bound to the values of the MOF properties of the + /// referencedElement. + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + new IElement Evaluate(IElement target) => this.ComputeRedefinedEvaluateOperation(target); + + /// + /// Return a MetadataFeature whose annotatedElement is the referencedElement, whose metaclass is the + /// reflective Metaclass corresponding to the MOF class of the referencedElement and whose ownedFeatures + /// are bound to the MOF properties of the referencedElement. + /// + /// + /// The expected IMetadataFeature + /// + IMetadataFeature MetaclassFeature() => this.ComputeMetaclassFeatureOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs b/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs index 144993814..bf66f4d25 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMetadataFeature.cs @@ -52,6 +52,44 @@ public partial interface IMetadataFeature : IAnnotatingElement, IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674969_376003_43216")] IMetaclass metaclass { get; } + /// + /// If the given baseFeature is a feature of this MetadataFeature, or is directly or indirectly + /// redefined by a feature, then return the result of evaluating the appropriate (model-level evaluable) + /// value Expression for it (if any), with the MetadataFeature as the target. + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + IElement EvaluateFeature(IFeature baseFeature) => this.ComputeEvaluateFeatureOperation(baseFeature); + + /// + /// Check if this MetadataFeature has a metaclass which is a kind of SemanticMetadata. + /// + /// + /// The expected bool + /// + bool IsSemantic() => this.ComputeIsSemanticOperation(); + + /// + /// Check if this MetadataFeature has a metaclass that is a kind of KerML::Element (that is, it is from + /// the reflective abstract syntax model). + /// + /// + /// The expected bool + /// + bool IsSyntactic() => this.ComputeIsSyntacticOperation(); + + /// + /// If this MetadataFeature reflectively represents a model element, then return the corresponding + /// Element instance from the MOF abstract syntax representation of the model. + /// + /// + /// The expected IElement + /// + IElement SyntaxElement() => this.ComputeSyntaxElementOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs b/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs index 576ca9cb1..2516f0d07 100644 --- a/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenPoco/IMultiplicityRange.cs @@ -74,6 +74,32 @@ public partial interface IMultiplicityRange : IMultiplicity [SubsettedProperty(propertyName: "_19_0_2_12e503d9_1573095221994_519580_5095")] IExpression upperBound { get; } + /// + /// Check whether this MultiplicityRange represents the range bounded by the given values lower and + /// upper, presuming the lowerBound and upperBound Expressions are model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool HasBounds(int lower, string upper) => this.ComputeHasBoundsOperation(lower, upper); + + /// + /// Evaluate the given bound Expression (at model level) and return the result represented as a MOF + /// UnlimitedNatural value. + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + string ValueOf(IExpression bound) => this.ComputeValueOfOperation(bound); } } diff --git a/SysML2.NET/Core/AutoGenPoco/INamespace.cs b/SysML2.NET/Core/AutoGenPoco/INamespace.cs index 0ea745661..7f15138eb 100644 --- a/SysML2.NET/Core/AutoGenPoco/INamespace.cs +++ b/SysML2.NET/Core/AutoGenPoco/INamespace.cs @@ -28,6 +28,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System.CodeDom.Compiler; using System.Collections.Generic; + using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Decorators; @@ -96,6 +97,158 @@ public partial interface INamespace : IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1543092026091_217766_16748")] List ownedMembership { get; } + /// + /// Return the names of the given element as it is known in this Namespace. + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + string NamesOf(IElement element) => this.ComputeNamesOfOperation(element); + + /// + /// Returns this visibility of mem relative to this Namespace. If mem is an importedMembership, this is + /// the visibility of its Import. Otherwise it is the visibility of the Membership itself. + /// + /// + /// No documentation provided + /// + /// + /// The expected VisibilityKind + /// + VisibilityKind VisibilityOf(IMembership mem) => this.ComputeVisibilityOfOperation(mem); + + /// + /// If includeAll = true, then return all the Memberships of this Namespace. Otherwise, return only the + /// publicly visible Memberships of this Namespace, including ownedMemberships that have a visibility of + /// public and Memberships imported with a visibility of public. If isRecursive = true, also recursively + /// include all visible Memberships of any public owned Namespaces, or, if IncludeAll = true, all + /// Memberships of all owned Namespaces. When computing imported Memberships, ignore this Namespace and + /// any Namespaces in the given excluded set. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership VisibleMemberships(INamespace excluded, bool isRecursive, bool includeAll) => this.ComputeVisibleMembershipsOperation(excluded, isRecursive, includeAll); + + /// + /// Derive the imported Memberships of this Namespace as the importedMembership of all ownedImports, + /// excluding those Imports whose importOwningNamespace is in the excluded set, and excluding + /// Memberships that have distinguisibility collisions with each other or with any ownedMembership. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership ImportedMemberships(INamespace excluded) => this.ComputeImportedMembershipsOperation(excluded); + + /// + /// If visibility is not null, return the Memberships of this Namespace with the given visibility, + /// including ownedMemberships with the given visibility and Memberships imported with the given + /// visibility. If visibility is null, return all ownedMemberships and imported Memberships regardless + /// of visibility. When computing imported Memberships, ignore this Namespace and any Namespaces in the + /// given excluded set. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership MembershipsOfVisibility(VisibilityKind visibility, INamespace excluded) => this.ComputeMembershipsOfVisibilityOperation(visibility, excluded); + + /// + /// Resolve the given qualified name to the named Membership (if any), starting with this Namespace as + /// the local scope. The qualified name string must conform to the concrete syntax of the KerML textual + /// notation. According to the KerML name resolution rules every qualified name will resolve to either a + /// single Membership, or to none. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership Resolve(string qualifiedName) => this.ComputeResolveOperation(qualifiedName); + + /// + /// Resolve the given qualified name to the named Membership (if any) in the effective global Namespace + /// that is the outermost naming scope. The qualified name string must conform to the concrete syntax of + /// the KerML textual notation. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership ResolveGlobal(string qualifiedName) => this.ComputeResolveGlobalOperation(qualifiedName); + + /// + /// Resolve a simple name starting with this Namespace as the local scope, and continuing with + /// containing outer scopes as necessary. However, if this Namespace is a root Namespace, then the + /// resolution is done directly in global scope. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership ResolveLocal(string name) => this.ComputeResolveLocalOperation(name); + + /// + /// Resolve a simple name from the visible Memberships of this Namespace. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership ResolveVisible(string name) => this.ComputeResolveVisibleOperation(name); + + /// + /// Return a string with valid KerML syntax representing the qualification part of a given + /// qualifiedName, that is, a qualified name with all the segment names of the given name except the + /// last. If the given qualifiedName has only one segment, then return null. + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + string QualificationOf(string qualifiedName) => this.ComputeQualificationOfOperation(qualifiedName); + + /// + /// Return the simple name that is the last segment name of the given qualifiedName. If this segment + /// name has the form of a KerML unrestricted name, then "unescape" it by removing the surrounding + /// single quotes and replacing all escape sequences with the specified character. + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + string UnqualifiedNameOf(string qualifiedName) => this.ComputeUnqualifiedNameOfOperation(qualifiedName); } } diff --git a/SysML2.NET/Core/AutoGenPoco/INamespaceImport.cs b/SysML2.NET/Core/AutoGenPoco/INamespaceImport.cs index 724a33dcc..2309abf55 100644 --- a/SysML2.NET/Core/AutoGenPoco/INamespaceImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/INamespaceImport.cs @@ -50,6 +50,18 @@ public partial interface INamespaceImport : IImport [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_138197_43179")] INamespace ImportedNamespace { get; set; } + /// + /// Returns at least the visible Memberships of the importedNamespace. If isRecursive = true, then + /// Memberships are also recursively imported from any ownedMembers of the importedNamespace that are + /// themselves Namespaces. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + new IMembership ImportedMemberships(INamespace excluded) => this.ComputeRedefinedImportedMembershipsOperation(excluded); } } diff --git a/SysML2.NET/Core/AutoGenPoco/INullExpression.cs b/SysML2.NET/Core/AutoGenPoco/INullExpression.cs index cd7d37e71..8d8a7a92b 100644 --- a/SysML2.NET/Core/AutoGenPoco/INullExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/INullExpression.cs @@ -45,6 +45,27 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions [GeneratedCode("SysML2.NET", "latest")] public partial interface INullExpression : IExpression { + /// + /// A NullExpression is always model-level evaluable. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + new bool ModelLevelEvaluable(IFeature visited) => this.ComputeRedefinedModelLevelEvaluableOperation(visited); + + /// + /// The model-level value of a NullExpression is an empty sequence. + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + new IElement Evaluate(IElement target) => this.ComputeRedefinedEvaluateOperation(target); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IOperatorExpression.cs b/SysML2.NET/Core/AutoGenPoco/IOperatorExpression.cs index 41b2a9240..6abe60d10 100644 --- a/SysML2.NET/Core/AutoGenPoco/IOperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IOperatorExpression.cs @@ -53,6 +53,14 @@ public partial interface IOperatorExpression : IInvocationExpression [Property(xmiId: "_18_5_3_12e503d9_1557528808100_646606_111674", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] string Operator { get; set; } + /// + /// The instantiatedType of an OperatorExpression is the resolution of it's operator from one of the + /// packages BaseFunctions, DataFunctions, or ControlFunctions from the Kernel Function Library. + /// + /// + /// The expected IType + /// + new IType InstantiatedType() => this.ComputeRedefinedInstantiatedTypeOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs b/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs index b2b8e291c..b199b2948 100644 --- a/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IOwningMembership.cs @@ -71,6 +71,15 @@ public partial interface IOwningMembership : IMembership [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1651721174176_601088_238")] string ownedMemberShortName { get; } + /// + /// If the ownedMemberElement of this OwningMembership has a non-null qualifiedName, then return the + /// string constructed by appending to that qualifiedName the string "/owningMembership". Otherwise, + /// return the path of the OwningMembership as specified for a Relationship in general. + /// + /// + /// The expected string + /// + new string Path() => this.ComputeRedefinedPathOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPackage.cs b/SysML2.NET/Core/AutoGenPoco/IPackage.cs index 079785849..70cd9cd5b 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPackage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPackage.cs @@ -51,6 +51,27 @@ public partial interface IPackage : INamespace [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_259543_43268")] List filterCondition { get; } + /// + /// Exclude Elements that do not meet all the filterConditions. + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + new IMembership ImportedMemberships(INamespace excluded) => this.ComputeRedefinedImportedMembershipsOperation(excluded); + + /// + /// Determine whether the given element meets all the filterConditions. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IncludeAsMember(IElement element) => this.ComputeIncludeAsMemberOperation(element); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs index 0e5f14850..ac3792210 100644 --- a/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IParameterMembership.cs @@ -28,6 +28,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors using System.CodeDom.Compiler; using System.Collections.Generic; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; @@ -52,6 +53,13 @@ public partial interface IParameterMembership : IFeatureMembership [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1533160674993_898044_43344")] IFeature ownedMemberParameter { get; } + /// + /// Return the required value of the direction of the ownedMemberParameter. By default, this is in. + /// + /// + /// The expected FeatureDirectionKind + /// + FeatureDirectionKind ParameterDirection() => this.ComputeParameterDirectionOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs index a2fe25267..44a84f46c 100644 --- a/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IPerformActionUsage.cs @@ -79,6 +79,15 @@ public partial interface IPerformActionUsage : IActionUsage, IEventOccurrenceUsa [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1622831790393_676695_195")] IActionUsage performedAction { get; } + /// + /// The naming Feature of a PerformActionUsage is its performedAction, if this is different than the + /// PerformActionUsage. If the PerformActionUsage is its own performedAction, then the naming Feature is + /// the same as the usual default for a Usage. + /// + /// + /// The expected IFeature + /// + new IFeature NamingFeature() => this.ComputeRedefinedNamingFeatureOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs index 66c259eec..c6971d556 100644 --- a/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IReferenceUsage.cs @@ -76,6 +76,14 @@ public partial interface IReferenceUsage : IUsage [RedefinedProperty(propertyName: "_19_0_4_12e503d9_1624035114787_488767_41423")] new bool isReference { get; } + /// + /// If this ReferenceUsage is the payload parameter of a TransitionUsage, then its naming Feature is the + /// payloadParameter of the triggerAction of that TransitionUsage (if any). + /// + /// + /// The expected IFeature + /// + new IFeature NamingFeature() => this.ComputeRedefinedNamingFeatureOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IRelationship.cs b/SysML2.NET/Core/AutoGenPoco/IRelationship.cs index 720b0d4a1..a5514210c 100644 --- a/SysML2.NET/Core/AutoGenPoco/IRelationship.cs +++ b/SysML2.NET/Core/AutoGenPoco/IRelationship.cs @@ -62,7 +62,7 @@ public partial interface IRelationship : IElement ///
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] - IReadOnlyCollection OwnedRelatedElement { get; } + IReadOnlyList OwnedRelatedElement { get; } /// /// The relatedElement of this Relationship that owns the Relationship, if any. @@ -92,6 +92,25 @@ public partial interface IRelationship : IElement [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")] List Target { get; set; } + /// + /// Return whether this Relationship has either an owningRelatedElement or owningRelationship that is a + /// library element. + /// + /// + /// The expected INamespace + /// + new INamespace LibraryNamespace() => this.ComputeRedefinedLibraryNamespaceOperation(); + + /// + /// If the owningRelationship of the Relationship is null but its owningRelatedElement is non-null, + /// construct the path using the position of the Relationship in the list of ownedRelationships of its + /// owningRelatedElement. Otherwise, return the path of the Relationship as specified for an Element in + /// general. + /// + /// + /// The expected string + /// + new string Path() => this.ComputeRedefinedPathOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IReturnParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/IReturnParameterMembership.cs index 3bb23e5b3..5c40c8a82 100644 --- a/SysML2.NET/Core/AutoGenPoco/IReturnParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/IReturnParameterMembership.cs @@ -28,6 +28,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System.CodeDom.Compiler; using System.Collections.Generic; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; @@ -46,6 +47,14 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions [GeneratedCode("SysML2.NET", "latest")] public partial interface IReturnParameterMembership : IParameterMembership { + /// + /// The ownedMemberParameter of a ReturnParameterMembership must have direction out. (This is a leaf + /// operation that cannot be further redefined.) + /// + /// + /// The expected FeatureDirectionKind + /// + new FeatureDirectionKind ParameterDirection() => this.ComputeRedefinedParameterDirectionOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs b/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs index 9945c784c..38b7c75d4 100644 --- a/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IStateUsage.cs @@ -112,6 +112,19 @@ public partial interface IStateUsage : IActionUsage [RedefinedProperty(propertyName: "_18_5_3_12e503d9_1565500905804_589845_30779")] List stateDefinition { get; } + /// + /// Check if this StateUsage is composite and has an owningType that is a StateDefinition or StateUsage + /// with the given value of isParallel, but is not an entryAction, doAction, or exitAction. If so, then + /// it represents a StateAction that is a substate or exclusiveState (for isParallel = false) of another + /// StateAction. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsSubstateUsage(bool isParallel) => this.ComputeIsSubstateUsageOperation(isParallel); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs b/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs index e39c5cb57..4c8f169e2 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITransitionUsage.cs @@ -124,6 +124,23 @@ public partial interface ITransitionUsage : IActionUsage [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674959_226999_43167")] List triggerAction { get; } + /// + /// Return the payloadParameter of the triggerAction of this TransitionUsage, if it has one. + /// + /// + /// The expected IReferenceUsage + /// + IReferenceUsage TriggerPayloadParameter() => this.ComputeTriggerPayloadParameterOperation(); + + /// + /// Return the Feature to be used as the source of the succession of this TransitionUsage, which is the + /// first member of the TransitionUsage that is a Feature, that is owned by the TransitionUsage via a + /// Membership that is not a FeatureMembership, and whose featureTarget is an ActionUsage. + /// + /// + /// The expected IFeature + /// + IFeature SourceFeature() => this.ComputeSourceFeatureOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/ITriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/ITriggerInvocationExpression.cs index f21eb949b..9d3d1d5bd 100644 --- a/SysML2.NET/Core/AutoGenPoco/ITriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/ITriggerInvocationExpression.cs @@ -55,6 +55,15 @@ public partial interface ITriggerInvocationExpression : IInvocationExpression [Property(xmiId: "_19_0_4_12e503d9_1643588513495_774789_300", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)] TriggerKind Kind { get; set; } + /// + /// Return one of the Functions TriggerWhen, TriggerAt or TriggerAfter, from the Kernel Semantic Library + /// Triggers package, depending on whether the kind of this TriggerInvocationExpression is when, at or + /// after, respectively. + /// + /// + /// The expected IType + /// + new IType InstantiatedType() => this.ComputeRedefinedInstantiatedTypeOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IType.cs b/SysML2.NET/Core/AutoGenPoco/IType.cs index e688a81bf..01080f87d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IType.cs +++ b/SysML2.NET/Core/AutoGenPoco/IType.cs @@ -28,6 +28,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System.CodeDom.Compiler; using System.Collections.Generic; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -243,6 +244,203 @@ public partial interface IType : INamespace [Property(xmiId: "_19_0_4_b9102da_1661974896766_783268_1231", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] List unioningType { get; } + /// + /// The visible Memberships of a Type include inheritedMemberships. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + new IMembership VisibleMemberships(INamespace excluded, bool isRecursive, bool includeAll) => this.ComputeRedefinedVisibleMembershipsOperation(excluded, isRecursive, includeAll); + + /// + /// Return the Memberships inheritable from supertypes of this Type with redefined Features removed. + /// When computing inheritable Memberships, exclude Imports of excludedNamespaces, Specializations of + /// excludedTypes, and, if excludeImplied = true, all implied Specializations. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership InheritedMemberships(INamespace excludedNamespaces, IType excludedTypes, bool excludeImplied) => this.ComputeInheritedMembershipsOperation(excludedNamespaces, excludedTypes, excludeImplied); + + /// + /// Return all the non-private Memberships of all the supertypes of this Type, excluding any supertypes + /// that are this Type or are in the given set of excludedTypes. If excludeImplied = true, then also + /// transitively exclude any supertypes from implied Specializations. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership InheritableMemberships(INamespace excludedNamespaces, IType excludedTypes, bool excludeImplied) => this.ComputeInheritableMembershipsOperation(excludedNamespaces, excludedTypes, excludeImplied); + + /// + /// Return the public, protected and inherited Memberships of this Type. When computing imported + /// Memberships, exclude the given set of excludedNamespaces. When computing inherited Memberships, + /// exclude Types in the given set of excludedTypes. If excludeImplied = true, then also exclude any + /// supertypes from implied Specializations. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership NonPrivateMemberships(INamespace excludedNamespaces, IType excludedTypes, bool excludeImplied) => this.ComputeNonPrivateMembershipsOperation(excludedNamespaces, excludedTypes, excludeImplied); + + /// + /// Return a subset of memberships, removing those Memberships whose memberElements are Features and for + /// which either of the following two conditions holds:
    + ///
  1. The memberElement of the Membership is included in redefined Features of another + /// Membership in memberships.
  2. One of the redefined Features of the + /// Membership is a directly redefinedFeature of an ownedFeature of this Type.
  3. + ///
For this purpose, the redefined Features of a Membership + /// whose memberElement is a Feature includes the memberElement and all Features directly or indirectly + /// redefined by the memberElement. + ///
+ /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + IMembership RemoveRedefinedFeatures(IMembership memberships) => this.ComputeRemoveRedefinedFeaturesOperation(memberships); + + /// + /// If the memberElement of the given membership is a Feature, then return all Features directly or + /// indirectly redefined by the memberElement. + /// + /// + /// No documentation provided + /// + /// + /// The expected IFeature + /// + IFeature AllRedefinedFeaturesOf(IMembership membership) => this.ComputeAllRedefinedFeaturesOfOperation(membership); + + /// + /// If the given feature is a feature of this Type, then return its direction relative to this Type, + /// taking conjugation into account. + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + FeatureDirectionKind DirectionOf(IFeature feature) => this.ComputeDirectionOfOperation(feature); + + /// + /// Return the direction of the given feature relative to this Type, excluding a given set of Types from + /// the search of supertypes of this Type. + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + FeatureDirectionKind DirectionOfExcluding(IFeature feature, IType excluded) => this.ComputeDirectionOfExcludingOperation(feature, excluded); + + /// + /// If this Type is conjugated, then return just the originalType of the Conjugation. Otherwise, return + /// the general Types from all ownedSpecializations of this type, if excludeImplied = false, or all + /// non-implied ownedSpecializations, if excludeImplied = true. + /// + /// + /// No documentation provided + /// + /// + /// The expected IType + /// + IType Supertypes(bool excludeImplied) => this.ComputeSupertypesOperation(excludeImplied); + + /// + /// Return this Type and all Types that are directly or transitively supertypes of this Type (as + /// determined by the supertypes operation with excludeImplied = false). + /// + /// + /// The expected IType + /// + IType AllSupertypes() => this.ComputeAllSupertypesOperation(); + + /// + /// Check whether this Type is a direct or indirect specialization of the given supertype. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool Specializes(IType supertype) => this.ComputeSpecializesOperation(supertype); + + /// + /// Check whether this Type is a direct or indirect specialization of the named library Type. + /// libraryTypeName must conform to the syntax of a KerML qualified name and must resolve to a Type in + /// global scope. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool SpecializesFromLibrary(string libraryTypeName) => this.ComputeSpecializesFromLibraryOperation(libraryTypeName); + + /// + /// By default, this Type is compatible with an otherType if it directly or indirectly specializes the + /// otherType. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IsCompatibleWith(IType otherType) => this.ComputeIsCompatibleWithOperation(otherType); + + /// + /// Return the owned or inherited Multiplicities for this Type<./code>. + /// + /// + /// The expected IMultiplicity + /// + IMultiplicity Multiplicities() => this.ComputeMultiplicitiesOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IUsage.cs b/SysML2.NET/Core/AutoGenPoco/IUsage.cs index f418b22f5..f9061cca6 100644 --- a/SysML2.NET/Core/AutoGenPoco/IUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IUsage.cs @@ -341,6 +341,23 @@ public partial interface IUsage : IFeature [SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674979_190614_43269")] List variantMembership { get; } + /// + /// If this Usage is a variant, then its naming Feature is the referencedFeature of its + /// ownedReferenceSubsetting. + /// + /// + /// The expected IFeature + /// + new IFeature NamingFeature() => this.ComputeRedefinedNamingFeatureOperation(); + + /// + /// If ownedReferenceSubsetting is not null, return the featureTarget of the referencedFeature of the + /// ownedReferenceSubsetting. + /// + /// + /// The expected IFeature + /// + IFeature ReferencedFeatureTarget() => this.ComputeReferencedFeatureTargetOperation(); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs b/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs index 425c59aed..5ab4e6066 100644 --- a/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IViewUsage.cs @@ -109,6 +109,16 @@ public partial interface IViewUsage : IPartUsage [Property(xmiId: "_19_0_2_12e503d9_1596657318021_274182_5067", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: true, defaultValue: null)] IRenderingUsage viewRendering { get; } + /// + /// Determine whether the given element meets all the owned and inherited viewConditions. + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + bool IncludeAsExposed(IElement element) => this.ComputeIncludeAsExposedOperation(element); } } diff --git a/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs index 4a93b3da5..870c6150d 100644 --- a/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IfActionUsage.cs @@ -936,7 +936,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs index 04baef2a2..cd6d60330 100644 --- a/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/IncludeUseCaseUsage.cs @@ -1001,7 +1001,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs b/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs index ee4c1480f..ed02aa7ec 100644 --- a/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/IndexExpression.cs @@ -646,7 +646,7 @@ string IOperatorExpression.Operator [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Interaction.cs b/SysML2.NET/Core/AutoGenPoco/Interaction.cs index e324cfcbb..8d424b70a 100644 --- a/SysML2.NET/Core/AutoGenPoco/Interaction.cs +++ b/SysML2.NET/Core/AutoGenPoco/Interaction.cs @@ -431,7 +431,7 @@ public Interaction() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -442,7 +442,7 @@ public Interaction() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs index 3c1be3fb6..50f69cfd5 100644 --- a/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/InterfaceDefinition.cs @@ -653,7 +653,7 @@ bool Core.Types.IType.IsSufficient [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -664,7 +664,7 @@ bool Core.Types.IType.IsSufficient [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs b/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs index 93261304c..59e2f64b9 100644 --- a/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/InterfaceUsage.cs @@ -971,7 +971,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -982,7 +982,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Intersecting.cs b/SysML2.NET/Core/AutoGenPoco/Intersecting.cs index 1fa421e52..a3fd9ca1b 100644 --- a/SysML2.NET/Core/AutoGenPoco/Intersecting.cs +++ b/SysML2.NET/Core/AutoGenPoco/Intersecting.cs @@ -175,7 +175,7 @@ public Intersecting() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -186,7 +186,7 @@ public Intersecting() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Invariant.cs b/SysML2.NET/Core/AutoGenPoco/Invariant.cs index df73b3ae2..78256410e 100644 --- a/SysML2.NET/Core/AutoGenPoco/Invariant.cs +++ b/SysML2.NET/Core/AutoGenPoco/Invariant.cs @@ -613,7 +613,7 @@ public Invariant() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs index 5863507eb..2db5b8ccd 100644 --- a/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/InvocationExpression.cs @@ -627,7 +627,7 @@ public InvocationExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs index 6ba92cd0e..253e0d98d 100644 --- a/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ItemDefinition.cs @@ -598,7 +598,7 @@ public ItemDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs b/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs index 93e7ea590..73fbed5f0 100644 --- a/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ItemUsage.cs @@ -910,7 +910,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/JoinNode.cs b/SysML2.NET/Core/AutoGenPoco/JoinNode.cs index e190d751f..bfbcfe519 100644 --- a/SysML2.NET/Core/AutoGenPoco/JoinNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/JoinNode.cs @@ -918,7 +918,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs b/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs index e78caedc0..ef2f10548 100644 --- a/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs +++ b/SysML2.NET/Core/AutoGenPoco/LibraryPackage.cs @@ -227,7 +227,7 @@ public LibraryPackage() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs b/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs index 75c438ba6..ea27e1d9d 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralBoolean.cs @@ -605,7 +605,7 @@ public LiteralBoolean() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs b/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs index e19664943..7f5cf9715 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralExpression.cs @@ -604,7 +604,7 @@ public LiteralExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs b/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs index 98a38dfd4..30decad88 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralInfinity.cs @@ -605,7 +605,7 @@ public LiteralInfinity() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs b/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs index 33c8de5ef..20a075301 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralInteger.cs @@ -605,7 +605,7 @@ public LiteralInteger() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs b/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs index 07e5d233f..a12ba5cb6 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralRational.cs @@ -605,7 +605,7 @@ public LiteralRational() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/LiteralString.cs b/SysML2.NET/Core/AutoGenPoco/LiteralString.cs index 5b32f3887..9d45fe1aa 100644 --- a/SysML2.NET/Core/AutoGenPoco/LiteralString.cs +++ b/SysML2.NET/Core/AutoGenPoco/LiteralString.cs @@ -605,7 +605,7 @@ public LiteralString() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Membership.cs b/SysML2.NET/Core/AutoGenPoco/Membership.cs index b8ca83fef..f2f50b872 100644 --- a/SysML2.NET/Core/AutoGenPoco/Membership.cs +++ b/SysML2.NET/Core/AutoGenPoco/Membership.cs @@ -211,7 +211,7 @@ public Membership() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -222,7 +222,7 @@ public Membership() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs b/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs index f8ffc2f7c..5ba535474 100644 --- a/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs +++ b/SysML2.NET/Core/AutoGenPoco/MembershipExpose.cs @@ -223,7 +223,7 @@ bool Root.Namespaces.IImport.IsImportAll [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -234,7 +234,7 @@ bool Root.Namespaces.IImport.IsImportAll [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs b/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs index 965dde49f..87941a177 100644 --- a/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/MembershipImport.cs @@ -207,7 +207,7 @@ public MembershipImport() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -218,7 +218,7 @@ public MembershipImport() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MergeNode.cs b/SysML2.NET/Core/AutoGenPoco/MergeNode.cs index 0b1ec15c5..aad62efc9 100644 --- a/SysML2.NET/Core/AutoGenPoco/MergeNode.cs +++ b/SysML2.NET/Core/AutoGenPoco/MergeNode.cs @@ -918,7 +918,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Metaclass.cs b/SysML2.NET/Core/AutoGenPoco/Metaclass.cs index 5f9ff69ea..88622a07b 100644 --- a/SysML2.NET/Core/AutoGenPoco/Metaclass.cs +++ b/SysML2.NET/Core/AutoGenPoco/Metaclass.cs @@ -405,7 +405,7 @@ public Metaclass() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs b/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs index eb2551c1d..c7fb83803 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataAccessExpression.cs @@ -34,6 +34,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Kernel.Metadata; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -607,7 +608,7 @@ public MetadataAccessExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs b/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs index faf9afbb4..f35a4751d 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataDefinition.cs @@ -595,7 +595,7 @@ public MetadataDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs b/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs index 452c47df6..56ce0e497 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataFeature.cs @@ -614,7 +614,7 @@ public MetadataFeature() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs b/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs index c31458ae0..cf3b4be16 100644 --- a/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/MetadataUsage.cs @@ -956,7 +956,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs b/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs index 12d888734..d86ecccb9 100644 --- a/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs +++ b/SysML2.NET/Core/AutoGenPoco/Multiplicity.cs @@ -587,7 +587,7 @@ public Multiplicity() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs b/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs index 0aca305fc..797843e7d 100644 --- a/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs +++ b/SysML2.NET/Core/AutoGenPoco/MultiplicityRange.cs @@ -602,7 +602,7 @@ public MultiplicityRange() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Namespace.cs b/SysML2.NET/Core/AutoGenPoco/Namespace.cs index 3ae60fc6d..bb16078cb 100644 --- a/SysML2.NET/Core/AutoGenPoco/Namespace.cs +++ b/SysML2.NET/Core/AutoGenPoco/Namespace.cs @@ -29,6 +29,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System.Collections.Generic; using System.Linq; + using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Collections; @@ -215,7 +216,7 @@ public Namespace() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs b/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs index 16e109dac..ccc0c9e88 100644 --- a/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs +++ b/SysML2.NET/Core/AutoGenPoco/NamespaceExpose.cs @@ -223,7 +223,7 @@ bool Root.Namespaces.IImport.IsImportAll [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -234,7 +234,7 @@ bool Root.Namespaces.IImport.IsImportAll [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs b/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs index f23beda6e..1b0612f71 100644 --- a/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs +++ b/SysML2.NET/Core/AutoGenPoco/NamespaceImport.cs @@ -208,7 +208,7 @@ public NamespaceImport() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -219,7 +219,7 @@ public NamespaceImport() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/NullExpression.cs b/SysML2.NET/Core/AutoGenPoco/NullExpression.cs index a45574aa7..bb6fd4cc9 100644 --- a/SysML2.NET/Core/AutoGenPoco/NullExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/NullExpression.cs @@ -604,7 +604,7 @@ public NullExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs b/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs index 42385f5c0..46a166342 100644 --- a/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ObjectiveMembership.cs @@ -279,7 +279,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -290,7 +290,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs b/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs index 55c33537c..210974ef6 100644 --- a/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/OccurrenceDefinition.cs @@ -598,7 +598,7 @@ public OccurrenceDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs index e7a9e46ea..6a49ad6b2 100644 --- a/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/OccurrenceUsage.cs @@ -899,7 +899,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs b/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs index 19cdb86d2..9a95a713f 100644 --- a/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/OperatorExpression.cs @@ -631,7 +631,7 @@ public OperatorExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs b/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs index c13c594b3..5f6f3dc99 100644 --- a/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/OwningMembership.cs @@ -255,7 +255,7 @@ string IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -266,7 +266,7 @@ string IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Package.cs b/SysML2.NET/Core/AutoGenPoco/Package.cs index b1f61d913..df3b6c792 100644 --- a/SysML2.NET/Core/AutoGenPoco/Package.cs +++ b/SysML2.NET/Core/AutoGenPoco/Package.cs @@ -219,7 +219,7 @@ public Package() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs index f7d3bb601..2034badd2 100644 --- a/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ParameterMembership.cs @@ -29,6 +29,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors using System.Collections.Generic; using System.Linq; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; @@ -279,7 +280,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -290,7 +291,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs b/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs index 83f1fdf65..dc7e87c0b 100644 --- a/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/PartDefinition.cs @@ -596,7 +596,7 @@ public PartDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PartUsage.cs b/SysML2.NET/Core/AutoGenPoco/PartUsage.cs index f98f51b22..469374421 100644 --- a/SysML2.NET/Core/AutoGenPoco/PartUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PartUsage.cs @@ -909,7 +909,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs b/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs index f2744957e..995ba314b 100644 --- a/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs +++ b/SysML2.NET/Core/AutoGenPoco/PayloadFeature.cs @@ -577,7 +577,7 @@ public PayloadFeature() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs index 6af64ab65..21d12855d 100644 --- a/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PerformActionUsage.cs @@ -939,7 +939,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs b/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs index 7a7281bc8..34dccc974 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortConjugation.cs @@ -213,7 +213,7 @@ IType Core.Types.IConjugation.OriginalType [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -224,7 +224,7 @@ IType Core.Types.IConjugation.OriginalType [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs b/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs index e740be4bb..7afff4bc8 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortDefinition.cs @@ -605,7 +605,7 @@ public PortDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/PortUsage.cs b/SysML2.NET/Core/AutoGenPoco/PortUsage.cs index 592591195..50a4ed426 100644 --- a/SysML2.NET/Core/AutoGenPoco/PortUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/PortUsage.cs @@ -898,7 +898,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Predicate.cs b/SysML2.NET/Core/AutoGenPoco/Predicate.cs index 0caeeb493..818529e65 100644 --- a/SysML2.NET/Core/AutoGenPoco/Predicate.cs +++ b/SysML2.NET/Core/AutoGenPoco/Predicate.cs @@ -425,7 +425,7 @@ public Predicate() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Redefinition.cs b/SysML2.NET/Core/AutoGenPoco/Redefinition.cs index b2016fb62..f28c73c59 100644 --- a/SysML2.NET/Core/AutoGenPoco/Redefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/Redefinition.cs @@ -196,7 +196,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -207,7 +207,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs b/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs index 540e900a8..8bc5fafac 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReferenceSubsetting.cs @@ -190,7 +190,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -201,7 +201,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs b/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs index 0cfddbfc1..675086d04 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReferenceUsage.cs @@ -880,7 +880,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs b/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs index b3044b92e..5b2edf2c1 100644 --- a/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/RenderingDefinition.cs @@ -595,7 +595,7 @@ public RenderingDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs b/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs index 11f41b942..6be12ea2f 100644 --- a/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/RenderingUsage.cs @@ -908,7 +908,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs b/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs index 444355ca4..8166a4466 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementConstraintMembership.cs @@ -287,7 +287,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -298,7 +298,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs b/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs index 40de60a31..e44e9f8c3 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementDefinition.cs @@ -653,7 +653,7 @@ string Root.Elements.IElement.DeclaredShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs index 35f773287..b6c2d1ebb 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementUsage.cs @@ -971,7 +971,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs b/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs index e1d0da3e5..505c284be 100644 --- a/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/RequirementVerificationMembership.cs @@ -305,7 +305,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -316,7 +316,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs b/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs index 00d8e63a3..292faf776 100644 --- a/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ResultExpressionMembership.cs @@ -272,7 +272,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -283,7 +283,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs b/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs index 3047490b5..73670a6bd 100644 --- a/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ReturnParameterMembership.cs @@ -29,6 +29,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions using System.Collections.Generic; using System.Linq; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; @@ -280,7 +281,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -291,7 +292,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs b/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs index 7028806aa..1b80fdd22 100644 --- a/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SatisfyRequirementUsage.cs @@ -991,7 +991,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs b/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs index 371194548..cf16784cd 100644 --- a/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/SelectExpression.cs @@ -646,7 +646,7 @@ string IOperatorExpression.Operator [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs index 5da7f9aa3..38ae245c0 100644 --- a/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SendActionUsage.cs @@ -923,7 +923,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Specialization.cs b/SysML2.NET/Core/AutoGenPoco/Specialization.cs index 7a5cbb0ab..2f094cd26 100644 --- a/SysML2.NET/Core/AutoGenPoco/Specialization.cs +++ b/SysML2.NET/Core/AutoGenPoco/Specialization.cs @@ -175,7 +175,7 @@ public Specialization() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -186,7 +186,7 @@ public Specialization() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs b/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs index d93d823dd..a79580b3a 100644 --- a/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/StakeholderMembership.cs @@ -282,7 +282,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -293,7 +293,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs b/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs index 6e5589b03..f78dcc343 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateDefinition.cs @@ -644,7 +644,7 @@ public StateDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs b/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs index 414f84181..af61b5f3d 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateSubactionMembership.cs @@ -287,7 +287,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -298,7 +298,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/StateUsage.cs b/SysML2.NET/Core/AutoGenPoco/StateUsage.cs index 81f8868b9..34af2b920 100644 --- a/SysML2.NET/Core/AutoGenPoco/StateUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/StateUsage.cs @@ -958,7 +958,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Step.cs b/SysML2.NET/Core/AutoGenPoco/Step.cs index 86cc54214..8bb890086 100644 --- a/SysML2.NET/Core/AutoGenPoco/Step.cs +++ b/SysML2.NET/Core/AutoGenPoco/Step.cs @@ -588,7 +588,7 @@ public Step() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Structure.cs b/SysML2.NET/Core/AutoGenPoco/Structure.cs index c4c97041c..cebc67eeb 100644 --- a/SysML2.NET/Core/AutoGenPoco/Structure.cs +++ b/SysML2.NET/Core/AutoGenPoco/Structure.cs @@ -407,7 +407,7 @@ public Structure() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Subclassification.cs b/SysML2.NET/Core/AutoGenPoco/Subclassification.cs index 504c1591d..0f8f018d7 100644 --- a/SysML2.NET/Core/AutoGenPoco/Subclassification.cs +++ b/SysML2.NET/Core/AutoGenPoco/Subclassification.cs @@ -186,7 +186,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -197,7 +197,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs b/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs index 360e5aedd..79756fd19 100644 --- a/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/SubjectMembership.cs @@ -282,7 +282,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -293,7 +293,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Subsetting.cs b/SysML2.NET/Core/AutoGenPoco/Subsetting.cs index 274336680..aed07db0b 100644 --- a/SysML2.NET/Core/AutoGenPoco/Subsetting.cs +++ b/SysML2.NET/Core/AutoGenPoco/Subsetting.cs @@ -190,7 +190,7 @@ IType Core.Types.ISpecialization.General [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -201,7 +201,7 @@ IType Core.Types.ISpecialization.General [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Succession.cs b/SysML2.NET/Core/AutoGenPoco/Succession.cs index bbff7bd0c..3b470e250 100644 --- a/SysML2.NET/Core/AutoGenPoco/Succession.cs +++ b/SysML2.NET/Core/AutoGenPoco/Succession.cs @@ -617,7 +617,7 @@ public Succession() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -628,7 +628,7 @@ public Succession() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs index 3651afdc3..e4e651f86 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionAsUsage.cs @@ -909,7 +909,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -920,7 +920,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs index bde47a6a5..72195d8cc 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionFlow.cs @@ -651,7 +651,7 @@ public SuccessionFlow() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -662,7 +662,7 @@ public SuccessionFlow() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs b/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs index 26773c049..8a08b3ef1 100644 --- a/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/SuccessionFlowUsage.cs @@ -990,7 +990,7 @@ bool Core.Features.IFeature.IsVariable [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -1001,7 +1001,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs index 3442e0f89..4fe5ac967 100644 --- a/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/TerminateActionUsage.cs @@ -922,7 +922,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs b/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs index f662375c8..4232104bf 100644 --- a/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs +++ b/SysML2.NET/Core/AutoGenPoco/TextualRepresentation.cs @@ -222,7 +222,7 @@ public TextualRepresentation() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs b/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs index ef0319a57..ba6cd3da4 100644 --- a/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/TransitionFeatureMembership.cs @@ -280,7 +280,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -291,7 +291,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs b/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs index 17ca399eb..a32ccc77b 100644 --- a/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/TransitionUsage.cs @@ -944,7 +944,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs b/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs index cdc9c2a5c..7f6ec857d 100644 --- a/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs +++ b/SysML2.NET/Core/AutoGenPoco/TriggerInvocationExpression.cs @@ -633,7 +633,7 @@ public TriggerInvocationExpression() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Type.cs b/SysML2.NET/Core/AutoGenPoco/Type.cs index 71adf21c6..8d232a0d5 100644 --- a/SysML2.NET/Core/AutoGenPoco/Type.cs +++ b/SysML2.NET/Core/AutoGenPoco/Type.cs @@ -29,6 +29,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System.Collections.Generic; using System.Linq; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -404,7 +405,7 @@ public Type() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs b/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs index 3e0d73e86..9393ecdc2 100644 --- a/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs +++ b/SysML2.NET/Core/AutoGenPoco/TypeFeaturing.cs @@ -183,7 +183,7 @@ public TypeFeaturing() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -194,7 +194,7 @@ public TypeFeaturing() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Unioning.cs b/SysML2.NET/Core/AutoGenPoco/Unioning.cs index eda71ca5b..26ed48c0d 100644 --- a/SysML2.NET/Core/AutoGenPoco/Unioning.cs +++ b/SysML2.NET/Core/AutoGenPoco/Unioning.cs @@ -165,7 +165,7 @@ public Unioning() [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -176,7 +176,7 @@ public Unioning() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/Usage.cs b/SysML2.NET/Core/AutoGenPoco/Usage.cs index f21a7d6a5..60686f0c8 100644 --- a/SysML2.NET/Core/AutoGenPoco/Usage.cs +++ b/SysML2.NET/Core/AutoGenPoco/Usage.cs @@ -874,7 +874,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs index 1a4b79ecd..05069e833 100644 --- a/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/UseCaseDefinition.cs @@ -659,7 +659,7 @@ public UseCaseDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs index 01976e1d8..214466648 100644 --- a/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/UseCaseUsage.cs @@ -979,7 +979,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs b/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs index 9e166c350..12cd01e95 100644 --- a/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/VariantMembership.cs @@ -258,7 +258,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -269,7 +269,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs b/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs index 9a0fd5072..05c8eacaa 100644 --- a/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/VerificationCaseDefinition.cs @@ -650,7 +650,7 @@ public VerificationCaseDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs b/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs index 43d311bfa..3654ac767 100644 --- a/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/VerificationCaseUsage.cs @@ -970,7 +970,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs index ba9d7ba66..41f97f055 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewDefinition.cs @@ -597,7 +597,7 @@ public ViewDefinition() [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs b/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs index 99d6e523d..d907151eb 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewRenderingMembership.cs @@ -270,7 +270,7 @@ string Root.Namespaces.IMembership.MemberShortName [Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", 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_132339_43177")] [Implements(implementation: "IRelationship.OwnedRelatedElement")] - public IReadOnlyCollection OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; + public IReadOnlyList OwnedRelatedElement => ((IContainedRelationship)this).OwnedRelatedElement; /// Backing field for IRelationship.OwnedRelatedElement ContainerList IContainedRelationship.OwnedRelatedElement { get; set; } @@ -281,7 +281,7 @@ string Root.Namespaces.IMembership.MemberShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs b/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs index 4cc717602..5233284bf 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewUsage.cs @@ -919,7 +919,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs b/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs index 355c9c895..6576a8de1 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewpointDefinition.cs @@ -652,7 +652,7 @@ string Root.Elements.IElement.DeclaredShortName [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs b/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs index e2ff68301..e85fd9ebb 100644 --- a/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/ViewpointUsage.cs @@ -971,7 +971,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs b/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs index 329ebcbaf..3a360d789 100644 --- a/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs +++ b/SysML2.NET/Core/AutoGenPoco/WhileLoopActionUsage.cs @@ -930,7 +930,7 @@ bool Core.Features.IFeature.IsVariable [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")] [Implements(implementation: "IElement.OwnedRelationship")] - public IReadOnlyCollection OwnedRelationship => ((IContainedElement)this).OwnedRelationship; + public IReadOnlyList OwnedRelationship => ((IContainedElement)this).OwnedRelationship; /// Backing field for IElement.OwnedRelationship ContainerList IContainedElement.OwnedRelationship { get; set; } diff --git a/SysML2.NET/Extend/AcceptActionUsageExtensions.cs b/SysML2.NET/Extend/AcceptActionUsageExtensions.cs index d69c55aa2..80b1f45c3 100644 --- a/SysML2.NET/Extend/AcceptActionUsageExtensions.cs +++ b/SysML2.NET/Extend/AcceptActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface ///
- [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AcceptActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputePayloadArgument(this IAcceptActionUsage acceptActionUsage) + internal static IExpression ComputePayloadArgument(this IAcceptActionUsage acceptActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IExpression ComputePayloadArgument(this IAcceptActionUsage accep /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IReferenceUsage ComputePayloadParameter(this IAcceptActionUsage acceptActionUsage) + internal static IReferenceUsage ComputePayloadParameter(this IAcceptActionUsage acceptActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,17 +95,31 @@ internal static IReferenceUsage ComputePayloadParameter(this IAcceptActionUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeReceiverArgument(this IAcceptActionUsage acceptActionUsage) + internal static IExpression ComputeReceiverArgument(this IAcceptActionUsage acceptActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Check if this AcceptActionUsage is the triggerAction of a TransitionUsage. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsTriggerActionOperation(this IAcceptActionUsage acceptActionUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ActionDefinitionExtensions.cs b/SysML2.NET/Extend/ActionDefinitionExtensions.cs index 7b3995f1a..3a917a366 100644 --- a/SysML2.NET/Extend/ActionDefinitionExtensions.cs +++ b/SysML2.NET/Extend/ActionDefinitionExtensions.cs @@ -56,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ActionDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAction(this IActionDefinition actionDefinition) + internal static List ComputeAction(this IActionDefinition actionDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ActionUsageExtensions.cs b/SysML2.NET/Extend/ActionUsageExtensions.cs index fae267e65..c0cf46381 100644 --- a/SysML2.NET/Extend/ActionUsageExtensions.cs +++ b/SysML2.NET/Extend/ActionUsageExtensions.cs @@ -30,6 +30,7 @@ namespace SysML2.NET.Core.POCO.Systems.Actions using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Functions; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -59,26 +60,92 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeActionDefinition(this IActionUsage actionUsage) + internal static List ComputeActionDefinition(this IActionUsage actionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return the owned input parameters of this ActionUsage. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeInputParametersOperation(this IActionUsage actionUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the i-th owned input parameter of the ActionUsage. Return null if the ActionUsage has less + /// than i owned input parameters. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeInputParameterOperation(this IActionUsage actionUsageSubject, int i) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the i-th argument Expression of an ActionUsage, defined as the value Expression of the + /// FeatureValue of the i-th owned input parameter of the ActionUsage. Return null if the ActionUsage + /// has less than i owned input parameters or the i-th owned input parameter has no FeatureValue. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IExpression + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IExpression ComputeArgumentOperation(this IActionUsage actionUsageSubject, int i) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check if this ActionUsage is composite and has an owningType that is an ActionDefinition or + /// ActionUsage but is not the entryAction or exitAction of a StateDefinition or StateUsage. If so, then + /// it represents an Action that is a subaction of another Action. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsSubactionUsageOperation(this IActionUsage actionUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ActorMembershipExtensions.cs b/SysML2.NET/Extend/ActorMembershipExtensions.cs index 6928cf04d..f2cb25ed0 100644 --- a/SysML2.NET/Extend/ActorMembershipExtensions.cs +++ b/SysML2.NET/Extend/ActorMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ActorMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPartUsage ComputeOwnedActorParameter(this IActorMembership actorMembership) + internal static IPartUsage ComputeOwnedActorParameter(this IActorMembership actorMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AllocationDefinitionExtensions.cs b/SysML2.NET/Extend/AllocationDefinitionExtensions.cs index 5ffa333ba..d1fa2e9c5 100644 --- a/SysML2.NET/Extend/AllocationDefinitionExtensions.cs +++ b/SysML2.NET/Extend/AllocationDefinitionExtensions.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.Core.POCO.Systems.Allocations using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -55,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.Allocations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AllocationDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAllocation(this IAllocationDefinition allocationDefinition) + internal static List ComputeAllocation(this IAllocationDefinition allocationDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AllocationUsageExtensions.cs b/SysML2.NET/Extend/AllocationUsageExtensions.cs index e417fb7b7..db8bf6e0f 100644 --- a/SysML2.NET/Extend/AllocationUsageExtensions.cs +++ b/SysML2.NET/Extend/AllocationUsageExtensions.cs @@ -30,6 +30,7 @@ namespace SysML2.NET.Core.POCO.Systems.Allocations using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Connectors; using SysML2.NET.Core.POCO.Kernel.Structures; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -60,23 +61,19 @@ namespace SysML2.NET.Core.POCO.Systems.Allocations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AllocationUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAllocationDefinition(this IAllocationUsage allocationUsage) + internal static List ComputeAllocationDefinition(this IAllocationUsage allocationUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AnalysisCaseDefinitionExtensions.cs b/SysML2.NET/Extend/AnalysisCaseDefinitionExtensions.cs index a15534c73..7ac668fb8 100644 --- a/SysML2.NET/Extend/AnalysisCaseDefinitionExtensions.cs +++ b/SysML2.NET/Extend/AnalysisCaseDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.AnalysisCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AnalysisCaseDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeResultExpression(this IAnalysisCaseDefinition analysisCaseDefinition) + internal static IExpression ComputeResultExpression(this IAnalysisCaseDefinition analysisCaseDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AnalysisCaseUsageExtensions.cs b/SysML2.NET/Extend/AnalysisCaseUsageExtensions.cs index fd7f7aff0..a2d6398be 100644 --- a/SysML2.NET/Extend/AnalysisCaseUsageExtensions.cs +++ b/SysML2.NET/Extend/AnalysisCaseUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.AnalysisCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AnalysisCaseUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IAnalysisCaseDefinition ComputeAnalysisCaseDefinition(this IAnalysisCaseUsage analysisCaseUsage) + internal static IAnalysisCaseDefinition ComputeAnalysisCaseDefinition(this IAnalysisCaseUsage analysisCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IAnalysisCaseDefinition ComputeAnalysisCaseDefinition(this IAnal /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeResultExpression(this IAnalysisCaseUsage analysisCaseUsage) + internal static IExpression ComputeResultExpression(this IAnalysisCaseUsage analysisCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AnnotatingElementExtensions.cs b/SysML2.NET/Extend/AnnotatingElementExtensions.cs index ad6f2ac77..35c20cec4 100644 --- a/SysML2.NET/Extend/AnnotatingElementExtensions.cs +++ b/SysML2.NET/Extend/AnnotatingElementExtensions.cs @@ -30,23 +30,19 @@ namespace SysML2.NET.Core.POCO.Root.Annotations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AnnotatingElementExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAnnotatedElement(this IAnnotatingElement annotatingElement) + internal static List ComputeAnnotatedElement(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -54,14 +50,14 @@ internal static List ComputeAnnotatedElement(this IAnnotatingElement a /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAnnotation(this IAnnotatingElement annotatingElement) + internal static List ComputeAnnotation(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -69,14 +65,14 @@ internal static List ComputeAnnotation(this IAnnotatingElement anno /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAnnotatingRelationship(this IAnnotatingElement annotatingElement) + internal static List ComputeOwnedAnnotatingRelationship(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static List ComputeOwnedAnnotatingRelationship(this IAnnot /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IAnnotation ComputeOwningAnnotatingRelationship(this IAnnotatingElement annotatingElement) + internal static IAnnotation ComputeOwningAnnotatingRelationship(this IAnnotatingElement annotatingElementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AnnotationExtensions.cs b/SysML2.NET/Extend/AnnotationExtensions.cs index 74d1b8121..cb101a290 100644 --- a/SysML2.NET/Extend/AnnotationExtensions.cs +++ b/SysML2.NET/Extend/AnnotationExtensions.cs @@ -30,23 +30,19 @@ namespace SysML2.NET.Core.POCO.Root.Annotations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AnnotationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IAnnotatingElement ComputeAnnotatingElement(this IAnnotation annotation) + internal static IAnnotatingElement ComputeAnnotatingElement(this IAnnotation annotationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -54,14 +50,14 @@ internal static IAnnotatingElement ComputeAnnotatingElement(this IAnnotation ann /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IAnnotatingElement ComputeOwnedAnnotatingElement(this IAnnotation annotation) + internal static IAnnotatingElement ComputeOwnedAnnotatingElement(this IAnnotation annotationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -69,14 +65,14 @@ internal static IAnnotatingElement ComputeOwnedAnnotatingElement(this IAnnotatio /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeOwningAnnotatedElement(this IAnnotation annotation) + internal static IElement ComputeOwningAnnotatedElement(this IAnnotation annotationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IElement ComputeOwningAnnotatedElement(this IAnnotation annotati /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IAnnotatingElement ComputeOwningAnnotatingElement(this IAnnotation annotation) + internal static IAnnotatingElement ComputeOwningAnnotatingElement(this IAnnotation annotationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AssertConstraintUsageExtensions.cs b/SysML2.NET/Extend/AssertConstraintUsageExtensions.cs index 57b27a1a0..32a80b140 100644 --- a/SysML2.NET/Extend/AssertConstraintUsageExtensions.cs +++ b/SysML2.NET/Extend/AssertConstraintUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Constraints /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AssertConstraintUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConstraintUsage ComputeAssertedConstraint(this IAssertConstraintUsage assertConstraintUsage) + internal static IConstraintUsage ComputeAssertedConstraint(this IAssertConstraintUsage assertConstraintUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AssignmentActionUsageExtensions.cs b/SysML2.NET/Extend/AssignmentActionUsageExtensions.cs index eaa299dd0..5a55e3e7a 100644 --- a/SysML2.NET/Extend/AssignmentActionUsageExtensions.cs +++ b/SysML2.NET/Extend/AssignmentActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AssignmentActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeReferent(this IAssignmentActionUsage assignmentActionUsage) + internal static IFeature ComputeReferent(this IAssignmentActionUsage assignmentActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IFeature ComputeReferent(this IAssignmentActionUsage assignmentA /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeTargetArgument(this IAssignmentActionUsage assignmentActionUsage) + internal static IExpression ComputeTargetArgument(this IAssignmentActionUsage assignmentActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static IExpression ComputeTargetArgument(this IAssignmentActionUsage as /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeValueExpression(this IAssignmentActionUsage assignmentActionUsage) + internal static IExpression ComputeValueExpression(this IAssignmentActionUsage assignmentActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AssociationExtensions.cs b/SysML2.NET/Extend/AssociationExtensions.cs index 2ab746094..b3eb6d794 100644 --- a/SysML2.NET/Extend/AssociationExtensions.cs +++ b/SysML2.NET/Extend/AssociationExtensions.cs @@ -34,23 +34,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Associations /// The class provides extensions methods for /// the interface /// - - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")]internal static class AssociationExtensions + internal static class AssociationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAssociationEnd(this IAssociation association) + internal static List ComputeAssociationEnd(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -58,14 +54,14 @@ internal static List ComputeAssociationEnd(this IAssociation associati /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRelatedType(this IAssociation association) + internal static List ComputeRelatedType(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -73,14 +69,14 @@ internal static List ComputeRelatedType(this IAssociation association) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeSourceType(this IAssociation association) + internal static IType ComputeSourceType(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -88,14 +84,14 @@ internal static IType ComputeSourceType(this IAssociation association) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeTargetType(this IAssociation association) + internal static List ComputeTargetType(this IAssociation associationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/AttributeUsageExtensions.cs b/SysML2.NET/Extend/AttributeUsageExtensions.cs index 1c9b63dc2..74aaa2598 100644 --- a/SysML2.NET/Extend/AttributeUsageExtensions.cs +++ b/SysML2.NET/Extend/AttributeUsageExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.Attributes /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class AttributeUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAttributeDefinition(this IAttributeUsage attributeUsage) + internal static List ComputeAttributeDefinition(this IAttributeUsage attributeUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -81,14 +77,14 @@ internal static List ComputeAttributeDefinition(this IAttributeUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsReference(this IAttributeUsage attributeUsage) + internal static bool ComputeIsReference(this IAttributeUsage attributeUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/BehaviorExtensions.cs b/SysML2.NET/Extend/BehaviorExtensions.cs index 39137883c..00fdfe333 100644 --- a/SysML2.NET/Extend/BehaviorExtensions.cs +++ b/SysML2.NET/Extend/BehaviorExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class BehaviorExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeParameter(this IBehavior behavior) + internal static List ComputeParameter(this IBehavior behaviorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -59,14 +55,14 @@ internal static List ComputeParameter(this IBehavior behavior) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeStep(this IBehavior behavior) + internal static List ComputeStep(this IBehavior behaviorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/BooleanExpressionExtensions.cs b/SysML2.NET/Extend/BooleanExpressionExtensions.cs index bdf291b3e..0f5e0eb77 100644 --- a/SysML2.NET/Extend/BooleanExpressionExtensions.cs +++ b/SysML2.NET/Extend/BooleanExpressionExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class BooleanExpressionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPredicate ComputePredicate(this IBooleanExpression booleanExpression) + internal static IPredicate ComputePredicate(this IBooleanExpression booleanExpressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/CalculationDefinitionExtensions.cs b/SysML2.NET/Extend/CalculationDefinitionExtensions.cs index f77f79629..4a8e88417 100644 --- a/SysML2.NET/Extend/CalculationDefinitionExtensions.cs +++ b/SysML2.NET/Extend/CalculationDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.Calculations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class CalculationDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeCalculation(this ICalculationDefinition calculationDefinition) + internal static List ComputeCalculation(this ICalculationDefinition calculationDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/CalculationUsageExtensions.cs b/SysML2.NET/Extend/CalculationUsageExtensions.cs index a13261985..2653449d6 100644 --- a/SysML2.NET/Extend/CalculationUsageExtensions.cs +++ b/SysML2.NET/Extend/CalculationUsageExtensions.cs @@ -60,26 +60,39 @@ namespace SysML2.NET.Core.POCO.Systems.Calculations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class CalculationUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFunction ComputeCalculationDefinition(this ICalculationUsage calculationUsage) + internal static IFunction ComputeCalculationDefinition(this ICalculationUsage calculationUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// A CalculationUsage is not model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this ICalculationUsage calculationUsageSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/CaseDefinitionExtensions.cs b/SysML2.NET/Extend/CaseDefinitionExtensions.cs index d6e2ee573..86c6c7ef5 100644 --- a/SysML2.NET/Extend/CaseDefinitionExtensions.cs +++ b/SysML2.NET/Extend/CaseDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.Cases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class CaseDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeActorParameter(this ICaseDefinition caseDefinition) + internal static List ComputeActorParameter(this ICaseDefinition caseDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -81,14 +77,14 @@ internal static List ComputeActorParameter(this ICaseDefinition case /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementUsage ComputeObjectiveRequirement(this ICaseDefinition caseDefinition) + internal static IRequirementUsage ComputeObjectiveRequirement(this ICaseDefinition caseDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -96,14 +92,14 @@ internal static IRequirementUsage ComputeObjectiveRequirement(this ICaseDefiniti /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeSubjectParameter(this ICaseDefinition caseDefinition) + internal static IUsage ComputeSubjectParameter(this ICaseDefinition caseDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/CaseUsageExtensions.cs b/SysML2.NET/Extend/CaseUsageExtensions.cs index 8c24091d0..767f05f26 100644 --- a/SysML2.NET/Extend/CaseUsageExtensions.cs +++ b/SysML2.NET/Extend/CaseUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Cases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class CaseUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeActorParameter(this ICaseUsage caseUsage) + internal static List ComputeActorParameter(this ICaseUsage caseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static List ComputeActorParameter(this ICaseUsage caseUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static ICaseDefinition ComputeCaseDefinition(this ICaseUsage caseUsage) + internal static ICaseDefinition ComputeCaseDefinition(this ICaseUsage caseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static ICaseDefinition ComputeCaseDefinition(this ICaseUsage caseUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementUsage ComputeObjectiveRequirement(this ICaseUsage caseUsage) + internal static IRequirementUsage ComputeObjectiveRequirement(this ICaseUsage caseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -114,14 +110,14 @@ internal static IRequirementUsage ComputeObjectiveRequirement(this ICaseUsage ca /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeSubjectParameter(this ICaseUsage caseUsage) + internal static IUsage ComputeSubjectParameter(this ICaseUsage caseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ClassifierExtensions.cs b/SysML2.NET/Extend/ClassifierExtensions.cs index 6666e3a7c..54033130a 100644 --- a/SysML2.NET/Extend/ClassifierExtensions.cs +++ b/SysML2.NET/Extend/ClassifierExtensions.cs @@ -33,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Core.Classifiers /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ClassifierExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedSubclassification(this IClassifier classifier) + internal static List ComputeOwnedSubclassification(this IClassifier classifierSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/CollectExpressionExtensions.cs b/SysML2.NET/Extend/CollectExpressionExtensions.cs index 868db65f7..164b83a74 100644 --- a/SysML2.NET/Extend/CollectExpressionExtensions.cs +++ b/SysML2.NET/Extend/CollectExpressionExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; - + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class CollectExpressionExtensions { } diff --git a/SysML2.NET/Extend/CommentExtensions.cs b/SysML2.NET/Extend/CommentExtensions.cs index 150a34f74..304c74f97 100644 --- a/SysML2.NET/Extend/CommentExtensions.cs +++ b/SysML2.NET/Extend/CommentExtensions.cs @@ -20,16 +20,16 @@ namespace SysML2.NET.Core.POCO.Root.Annotations { - using System.Diagnostics.CodeAnalysis; - + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class CommentExtensions { } diff --git a/SysML2.NET/Extend/ConcernUsageExtensions.cs b/SysML2.NET/Extend/ConcernUsageExtensions.cs index e3ec04ab6..a9baaa1c3 100644 --- a/SysML2.NET/Extend/ConcernUsageExtensions.cs +++ b/SysML2.NET/Extend/ConcernUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConcernUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConcernDefinition ComputeConcernDefinition(this IConcernUsage concernUsage) + internal static IConcernDefinition ComputeConcernDefinition(this IConcernUsage concernUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ConjugatedPortDefinitionExtensions.cs b/SysML2.NET/Extend/ConjugatedPortDefinitionExtensions.cs index 56e8976ec..d80d8d32f 100644 --- a/SysML2.NET/Extend/ConjugatedPortDefinitionExtensions.cs +++ b/SysML2.NET/Extend/ConjugatedPortDefinitionExtensions.cs @@ -55,23 +55,19 @@ namespace SysML2.NET.Core.POCO.Systems.Ports /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConjugatedPortDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPortDefinition ComputeOriginalPortDefinition(this IConjugatedPortDefinition conjugatedPortDefinition) + internal static IPortDefinition ComputeOriginalPortDefinition(this IConjugatedPortDefinition conjugatedPortDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -79,17 +75,32 @@ internal static IPortDefinition ComputeOriginalPortDefinition(this IConjugatedPo /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPortConjugation ComputeOwnedPortConjugator(this IConjugatedPortDefinition conjugatedPortDefinition) + internal static IPortConjugation ComputeOwnedPortConjugator(this IConjugatedPortDefinition conjugatedPortDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If the name of the originalPortDefinition is non-empty, then return that with the character ~ + /// prepended. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedEffectiveNameOperation(this IConjugatedPortDefinition conjugatedPortDefinitionSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ConjugatedPortTypingExtensions.cs b/SysML2.NET/Extend/ConjugatedPortTypingExtensions.cs index 08ae7842e..28bb182ec 100644 --- a/SysML2.NET/Extend/ConjugatedPortTypingExtensions.cs +++ b/SysML2.NET/Extend/ConjugatedPortTypingExtensions.cs @@ -33,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Systems.Ports /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConjugatedPortTypingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPortDefinition ComputePortDefinition(this IConjugatedPortTyping conjugatedPortTyping) + internal static IPortDefinition ComputePortDefinition(this IConjugatedPortTyping conjugatedPortTypingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ConjugationExtensions.cs b/SysML2.NET/Extend/ConjugationExtensions.cs index 1ed5d32e0..c4d9e1212 100644 --- a/SysML2.NET/Extend/ConjugationExtensions.cs +++ b/SysML2.NET/Extend/ConjugationExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConjugationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeOwningType(this IConjugation conjugation) + internal static IType ComputeOwningType(this IConjugation conjugationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ConnectionDefinitionExtensions.cs b/SysML2.NET/Extend/ConnectionDefinitionExtensions.cs index 6bc98b0f7..ce8b2f88e 100644 --- a/SysML2.NET/Extend/ConnectionDefinitionExtensions.cs +++ b/SysML2.NET/Extend/ConnectionDefinitionExtensions.cs @@ -56,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.Connections /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConnectionDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeConnectionEnd(this IConnectionDefinition connectionDefinition) + internal static List ComputeConnectionEnd(this IConnectionDefinition connectionDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ConnectionUsageExtensions.cs b/SysML2.NET/Extend/ConnectionUsageExtensions.cs index cbe06753f..74a398ba0 100644 --- a/SysML2.NET/Extend/ConnectionUsageExtensions.cs +++ b/SysML2.NET/Extend/ConnectionUsageExtensions.cs @@ -30,6 +30,7 @@ namespace SysML2.NET.Core.POCO.Systems.Connections using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Connectors; using SysML2.NET.Core.POCO.Kernel.Structures; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -60,23 +61,19 @@ namespace SysML2.NET.Core.POCO.Systems.Connections /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConnectionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeConnectionDefinition(this IConnectionUsage connectionUsage) + internal static List ComputeConnectionDefinition(this IConnectionUsage connectionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ConnectorExtensions.cs b/SysML2.NET/Extend/ConnectorExtensions.cs index e9e80c42b..31fb05651 100644 --- a/SysML2.NET/Extend/ConnectorExtensions.cs +++ b/SysML2.NET/Extend/ConnectorExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Connectors /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConnectorExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAssociation(this IConnector connector) + internal static List ComputeAssociation(this IConnector connectorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -59,14 +55,14 @@ internal static List ComputeAssociation(this IConnector connector) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeConnectorEnd(this IConnector connector) + internal static List ComputeConnectorEnd(this IConnector connectorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -74,14 +70,14 @@ internal static List ComputeConnectorEnd(this IConnector connector) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeDefaultFeaturingType(this IConnector connector) + internal static IType ComputeDefaultFeaturingType(this IConnector connectorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -89,14 +85,14 @@ internal static IType ComputeDefaultFeaturingType(this IConnector connector) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRelatedFeature(this IConnector connector) + internal static List ComputeRelatedFeature(this IConnector connectorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -104,14 +100,14 @@ internal static List ComputeRelatedFeature(this IConnector connector) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeSourceFeature(this IConnector connector) + internal static IFeature ComputeSourceFeature(this IConnector connectorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -119,14 +115,14 @@ internal static IFeature ComputeSourceFeature(this IConnector connector) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeTargetFeature(this IConnector connector) + internal static List ComputeTargetFeature(this IConnector connectorSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ConstraintUsageExtensions.cs b/SysML2.NET/Extend/ConstraintUsageExtensions.cs index 713b3b8dd..e09928c60 100644 --- a/SysML2.NET/Extend/ConstraintUsageExtensions.cs +++ b/SysML2.NET/Extend/ConstraintUsageExtensions.cs @@ -60,26 +60,56 @@ namespace SysML2.NET.Core.POCO.Systems.Constraints /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ConstraintUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPredicate ComputeConstraintDefinition(this IConstraintUsage constraintUsage) + internal static IPredicate ComputeConstraintDefinition(this IConstraintUsage constraintUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// The naming Feature of a ConstraintUsage that is owned by a RequirementConstraintMembership and has + /// an ownedReferenceSubsetting is the featureTarget of the referencedFeature of that + /// ownedReferenceSubsetting. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeRedefinedNamingFeatureOperation(this IConstraintUsage constraintUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// A ConstraintUsage is not model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this IConstraintUsage constraintUsageSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ConstructorExpressionExtensions.cs b/SysML2.NET/Extend/ConstructorExpressionExtensions.cs new file mode 100644 index 000000000..a450aad9d --- /dev/null +++ b/SysML2.NET/Extend/ConstructorExpressionExtensions.cs @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Core.POCO.Kernel.Expressions +{ + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + + /// + /// The class provides extensions methods for + /// the interface + /// + internal static class ConstructorExpressionExtensions + { + /// + /// A ConstructorExpression is model-level evaluable if all its argument Expressions are model-level + /// evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this IConstructorExpression constructorExpressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + } +} diff --git a/SysML2.NET/Extend/ControlNodeExtensions.cs b/SysML2.NET/Extend/ControlNodeExtensions.cs new file mode 100644 index 000000000..49df5bc83 --- /dev/null +++ b/SysML2.NET/Extend/ControlNodeExtensions.cs @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Core.POCO.Systems.Actions +{ + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.Systems.Occurrences; + using SysML2.NET.Core.POCO.Core.Classifiers; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + using SysML2.NET.Core.POCO.Systems.Allocations; + using SysML2.NET.Core.POCO.Systems.AnalysisCases; + using SysML2.NET.Core.POCO.Systems.Attributes; + using SysML2.NET.Core.POCO.Systems.Calculations; + using SysML2.NET.Core.POCO.Systems.Cases; + using SysML2.NET.Core.POCO.Systems.Connections; + using SysML2.NET.Core.POCO.Systems.Constraints; + using SysML2.NET.Core.POCO.Systems.DefinitionAndUsage; + using SysML2.NET.Core.POCO.Systems.Enumerations; + using SysML2.NET.Core.POCO.Systems.Flows; + using SysML2.NET.Core.POCO.Systems.Interfaces; + using SysML2.NET.Core.POCO.Systems.Items; + using SysML2.NET.Core.POCO.Systems.Metadata; + using SysML2.NET.Core.POCO.Systems.Occurrences; + using SysML2.NET.Core.POCO.Systems.Parts; + using SysML2.NET.Core.POCO.Systems.Ports; + using SysML2.NET.Core.POCO.Systems.Requirements; + using SysML2.NET.Core.POCO.Systems.States; + using SysML2.NET.Core.POCO.Systems.UseCases; + using SysML2.NET.Core.POCO.Systems.VerificationCases; + using SysML2.NET.Core.POCO.Systems.Views; + + /// + /// The class provides extensions methods for + /// the interface + /// + internal static class ControlNodeExtensions + { + /// + /// Check that the given Multiplicity has lowerBound and upperBound expressions that are model-level + /// evaluable to the given lower and upper values. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeMultiplicityHasBoundsOperation(this IControlNode controlNodeSubject, IMultiplicity mult, int lower, string upper) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + } +} diff --git a/SysML2.NET/Extend/CrossSubsettingExtensions.cs b/SysML2.NET/Extend/CrossSubsettingExtensions.cs index 9e7682143..0f0b1c128 100644 --- a/SysML2.NET/Extend/CrossSubsettingExtensions.cs +++ b/SysML2.NET/Extend/CrossSubsettingExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class CrossSubsettingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeCrossingFeature(this ICrossSubsetting crossSubsetting) + internal static IFeature ComputeCrossingFeature(this ICrossSubsetting crossSubsettingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/DefinitionExtensions.cs b/SysML2.NET/Extend/DefinitionExtensions.cs index 298c5033f..dd3913daa 100644 --- a/SysML2.NET/Extend/DefinitionExtensions.cs +++ b/SysML2.NET/Extend/DefinitionExtensions.cs @@ -55,23 +55,19 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class DefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDirectedUsage(this IDefinition definition) + internal static List ComputeDirectedUsage(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -79,14 +75,14 @@ internal static List ComputeDirectedUsage(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAction(this IDefinition definition) + internal static List ComputeOwnedAction(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -94,14 +90,14 @@ internal static List ComputeOwnedAction(this IDefinition definitio /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAllocation(this IDefinition definition) + internal static List ComputeOwnedAllocation(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -109,14 +105,14 @@ internal static List ComputeOwnedAllocation(this IDefinition d /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAnalysisCase(this IDefinition definition) + internal static List ComputeOwnedAnalysisCase(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -124,14 +120,14 @@ internal static List ComputeOwnedAnalysisCase(this IDefiniti /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAttribute(this IDefinition definition) + internal static List ComputeOwnedAttribute(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -139,14 +135,14 @@ internal static List ComputeOwnedAttribute(this IDefinition def /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedCalculation(this IDefinition definition) + internal static List ComputeOwnedCalculation(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -154,14 +150,14 @@ internal static List ComputeOwnedCalculation(this IDefinition /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedCase(this IDefinition definition) + internal static List ComputeOwnedCase(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -169,14 +165,14 @@ internal static List ComputeOwnedCase(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedConcern(this IDefinition definition) + internal static List ComputeOwnedConcern(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -184,14 +180,14 @@ internal static List ComputeOwnedConcern(this IDefinition definit /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedConnection(this IDefinition definition) + internal static List ComputeOwnedConnection(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -199,14 +195,14 @@ internal static List ComputeOwnedConnection(this IDefinition /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedConstraint(this IDefinition definition) + internal static List ComputeOwnedConstraint(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -214,14 +210,14 @@ internal static List ComputeOwnedConstraint(this IDefinition d /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedEnumeration(this IDefinition definition) + internal static List ComputeOwnedEnumeration(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -229,14 +225,14 @@ internal static List ComputeOwnedEnumeration(this IDefinition /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFlow(this IDefinition definition) + internal static List ComputeOwnedFlow(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -244,14 +240,14 @@ internal static List ComputeOwnedFlow(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedInterface(this IDefinition definition) + internal static List ComputeOwnedInterface(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -259,14 +255,14 @@ internal static List ComputeOwnedInterface(this IDefinition def /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedItem(this IDefinition definition) + internal static List ComputeOwnedItem(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -274,14 +270,14 @@ internal static List ComputeOwnedItem(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedMetadata(this IDefinition definition) + internal static List ComputeOwnedMetadata(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -289,14 +285,14 @@ internal static List ComputeOwnedMetadata(this IDefinition defin /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedOccurrence(this IDefinition definition) + internal static List ComputeOwnedOccurrence(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -304,14 +300,14 @@ internal static List ComputeOwnedOccurrence(this IDefinition d /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedPart(this IDefinition definition) + internal static List ComputeOwnedPart(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -319,14 +315,14 @@ internal static List ComputeOwnedPart(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedPort(this IDefinition definition) + internal static List ComputeOwnedPort(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -334,14 +330,14 @@ internal static List ComputeOwnedPort(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedReference(this IDefinition definition) + internal static List ComputeOwnedReference(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -349,14 +345,14 @@ internal static List ComputeOwnedReference(this IDefinition def /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedRendering(this IDefinition definition) + internal static List ComputeOwnedRendering(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -364,14 +360,14 @@ internal static List ComputeOwnedRendering(this IDefinition def /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedRequirement(this IDefinition definition) + internal static List ComputeOwnedRequirement(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -379,14 +375,14 @@ internal static List ComputeOwnedRequirement(this IDefinition /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedState(this IDefinition definition) + internal static List ComputeOwnedState(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -394,14 +390,14 @@ internal static List ComputeOwnedState(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedTransition(this IDefinition definition) + internal static List ComputeOwnedTransition(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -409,14 +405,14 @@ internal static List ComputeOwnedTransition(this IDefinition d /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedUsage(this IDefinition definition) + internal static List ComputeOwnedUsage(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -424,14 +420,14 @@ internal static List ComputeOwnedUsage(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedUseCase(this IDefinition definition) + internal static List ComputeOwnedUseCase(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -439,14 +435,14 @@ internal static List ComputeOwnedUseCase(this IDefinition definit /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedVerificationCase(this IDefinition definition) + internal static List ComputeOwnedVerificationCase(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -454,14 +450,14 @@ internal static List ComputeOwnedVerificationCase(this I /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedView(this IDefinition definition) + internal static List ComputeOwnedView(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -469,14 +465,14 @@ internal static List ComputeOwnedView(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedViewpoint(this IDefinition definition) + internal static List ComputeOwnedViewpoint(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -484,14 +480,14 @@ internal static List ComputeOwnedViewpoint(this IDefinition def /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeUsage(this IDefinition definition) + internal static List ComputeUsage(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -499,14 +495,14 @@ internal static List ComputeUsage(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVariant(this IDefinition definition) + internal static List ComputeVariant(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -514,14 +510,14 @@ internal static List ComputeVariant(this IDefinition definition) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVariantMembership(this IDefinition definition) + internal static List ComputeVariantMembership(this IDefinition definitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/DependencyExtensions.cs b/SysML2.NET/Extend/DependencyExtensions.cs index 64f8f075f..3eea36a6c 100644 --- a/SysML2.NET/Extend/DependencyExtensions.cs +++ b/SysML2.NET/Extend/DependencyExtensions.cs @@ -20,16 +20,17 @@ namespace SysML2.NET.Core.POCO.Root.Dependencies { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class DependencyExtensions { } diff --git a/SysML2.NET/Extend/DifferencingExtensions.cs b/SysML2.NET/Extend/DifferencingExtensions.cs index b82be1bf0..ce196ae0d 100644 --- a/SysML2.NET/Extend/DifferencingExtensions.cs +++ b/SysML2.NET/Extend/DifferencingExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class DifferencingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeTypeDifferenced(this IDifferencing differencing) + internal static IType ComputeTypeDifferenced(this IDifferencing differencingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/DisjoiningExtensions.cs b/SysML2.NET/Extend/DisjoiningExtensions.cs index 201f6afcc..561d40d63 100644 --- a/SysML2.NET/Extend/DisjoiningExtensions.cs +++ b/SysML2.NET/Extend/DisjoiningExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class DisjoiningExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeOwningType(this IDisjoining disjoining) + internal static IType ComputeOwningType(this IDisjoining disjoiningSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/DocumentationExtensions.cs b/SysML2.NET/Extend/DocumentationExtensions.cs index 839325ddd..175ef2ad4 100644 --- a/SysML2.NET/Extend/DocumentationExtensions.cs +++ b/SysML2.NET/Extend/DocumentationExtensions.cs @@ -30,23 +30,19 @@ namespace SysML2.NET.Core.POCO.Root.Annotations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class DocumentationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeDocumentedElement(this IDocumentation documentation) + internal static IElement ComputeDocumentedElement(this IDocumentation documentationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ElementExtensions.cs b/SysML2.NET/Extend/ElementExtensions.cs index 7dd201ae0..010d1c499 100644 --- a/SysML2.NET/Extend/ElementExtensions.cs +++ b/SysML2.NET/Extend/ElementExtensions.cs @@ -30,23 +30,19 @@ namespace SysML2.NET.Core.POCO.Root.Elements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ElementExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDocumentation(this IElement element) + internal static List ComputeDocumentation(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -54,14 +50,14 @@ internal static List ComputeDocumentation(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsLibraryElement(this IElement element) + internal static bool ComputeIsLibraryElement(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -69,14 +65,14 @@ internal static bool ComputeIsLibraryElement(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeName(this IElement element) + internal static string ComputeName(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static string ComputeName(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedAnnotation(this IElement element) + internal static List ComputeOwnedAnnotation(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static List ComputeOwnedAnnotation(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedElement(this IElement element) + internal static List ComputeOwnedElement(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -114,14 +110,14 @@ internal static List ComputeOwnedElement(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeOwner(this IElement element) + internal static IElement ComputeOwner(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -129,14 +125,14 @@ internal static IElement ComputeOwner(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IOwningMembership ComputeOwningMembership(this IElement element) + internal static IOwningMembership ComputeOwningMembership(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -144,14 +140,14 @@ internal static IOwningMembership ComputeOwningMembership(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static INamespace ComputeOwningNamespace(this IElement element) + internal static INamespace ComputeOwningNamespace(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -159,14 +155,14 @@ internal static INamespace ComputeOwningNamespace(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeQualifiedName(this IElement element) + internal static string ComputeQualifiedName(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -174,14 +170,14 @@ internal static string ComputeQualifiedName(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeShortName(this IElement element) + internal static string ComputeShortName(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -189,17 +185,101 @@ internal static string ComputeShortName(this IElement element) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeTextualRepresentation(this IElement element) + internal static List ComputeTextualRepresentation(this IElement elementSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// 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). + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeEscapedNameOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return an effective shortName for this Element. By default this is the same as its + /// declaredShortName. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeEffectiveShortNameOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return an effective name for this Element. By default this is the same as its declaredName. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeEffectiveNameOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// By default, return the library Namespace of the owningRelationship of this Element, if it has one. + /// + /// + /// The subject + /// + /// + /// The expected INamespace + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static INamespace ComputeLibraryNamespaceOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// 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.) + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputePathOperation(this IElement elementSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ElementFilterMembershipExtensions.cs b/SysML2.NET/Extend/ElementFilterMembershipExtensions.cs index b2740a5d0..7a303cdb6 100644 --- a/SysML2.NET/Extend/ElementFilterMembershipExtensions.cs +++ b/SysML2.NET/Extend/ElementFilterMembershipExtensions.cs @@ -33,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Packages /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ElementFilterMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeCondition(this IElementFilterMembership elementFilterMembership) + internal static IExpression ComputeCondition(this IElementFilterMembership elementFilterMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/EndFeatureMembershipExtensions.cs b/SysML2.NET/Extend/EndFeatureMembershipExtensions.cs index 17539e751..538a58446 100644 --- a/SysML2.NET/Extend/EndFeatureMembershipExtensions.cs +++ b/SysML2.NET/Extend/EndFeatureMembershipExtensions.cs @@ -33,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class EndFeatureMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwnedMemberFeature(this IEndFeatureMembership endFeatureMembership) + internal static IFeature ComputeOwnedMemberFeature(this IEndFeatureMembership endFeatureMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/EnumerationDefinitionExtensions.cs b/SysML2.NET/Extend/EnumerationDefinitionExtensions.cs index 3dcf77db8..f88dd6517 100644 --- a/SysML2.NET/Extend/EnumerationDefinitionExtensions.cs +++ b/SysML2.NET/Extend/EnumerationDefinitionExtensions.cs @@ -55,23 +55,19 @@ namespace SysML2.NET.Core.POCO.Systems.Enumerations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class EnumerationDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeEnumeratedValue(this IEnumerationDefinition enumerationDefinition) + internal static List ComputeEnumeratedValue(this IEnumerationDefinition enumerationDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/EnumerationUsageExtensions.cs b/SysML2.NET/Extend/EnumerationUsageExtensions.cs index 08293ef7e..ace7d3ec7 100644 --- a/SysML2.NET/Extend/EnumerationUsageExtensions.cs +++ b/SysML2.NET/Extend/EnumerationUsageExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.Enumerations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class EnumerationUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IEnumerationDefinition ComputeEnumerationDefinition(this IEnumerationUsage enumerationUsage) + internal static IEnumerationDefinition ComputeEnumerationDefinition(this IEnumerationUsage enumerationUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/EventOccurrenceUsageExtensions.cs b/SysML2.NET/Extend/EventOccurrenceUsageExtensions.cs index e9083137e..53e168b97 100644 --- a/SysML2.NET/Extend/EventOccurrenceUsageExtensions.cs +++ b/SysML2.NET/Extend/EventOccurrenceUsageExtensions.cs @@ -58,23 +58,19 @@ namespace SysML2.NET.Core.POCO.Systems.Occurrences /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class EventOccurrenceUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IOccurrenceUsage ComputeEventOccurrence(this IEventOccurrenceUsage eventOccurrenceUsage) + internal static IOccurrenceUsage ComputeEventOccurrence(this IEventOccurrenceUsage eventOccurrenceUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -82,14 +78,14 @@ internal static IOccurrenceUsage ComputeEventOccurrence(this IEventOccurrenceUsa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsReference(this IEventOccurrenceUsage eventOccurrenceUsage) + internal static bool ComputeIsReference(this IEventOccurrenceUsage eventOccurrenceUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ExhibitStateUsageExtensions.cs b/SysML2.NET/Extend/ExhibitStateUsageExtensions.cs index 6f630bdac..5ba01ff2f 100644 --- a/SysML2.NET/Extend/ExhibitStateUsageExtensions.cs +++ b/SysML2.NET/Extend/ExhibitStateUsageExtensions.cs @@ -59,23 +59,19 @@ namespace SysML2.NET.Core.POCO.Systems.States /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ExhibitStateUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IStateUsage ComputeExhibitedState(this IExhibitStateUsage exhibitStateUsage) + internal static IStateUsage ComputeExhibitedState(this IExhibitStateUsage exhibitStateUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ExposeExtensions.cs b/SysML2.NET/Extend/ExposeExtensions.cs index a409a49e4..4448b8e30 100644 --- a/SysML2.NET/Extend/ExposeExtensions.cs +++ b/SysML2.NET/Extend/ExposeExtensions.cs @@ -20,16 +20,18 @@ namespace SysML2.NET.Core.POCO.Systems.Views { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Root.Namespaces; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class ExposeExtensions { } diff --git a/SysML2.NET/Extend/ExpressionExtensions.cs b/SysML2.NET/Extend/ExpressionExtensions.cs index 2e6df2503..aa339e9bb 100644 --- a/SysML2.NET/Extend/ExpressionExtensions.cs +++ b/SysML2.NET/Extend/ExpressionExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ExpressionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFunction ComputeFunction(this IExpression expression) + internal static IFunction ComputeFunction(this IExpression expressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -59,14 +55,14 @@ internal static IFunction ComputeFunction(this IExpression expression) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsModelLevelEvaluable(this IExpression expression) + internal static bool ComputeIsModelLevelEvaluable(this IExpression expressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -74,17 +70,81 @@ internal static bool ComputeIsModelLevelEvaluable(this IExpression expression) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeResult(this IExpression expression) + internal static IFeature ComputeResult(this IExpression expressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return whether this Expression is model-level evaluable. The visited parameter is used to track + /// possible circular Feature references made from FeatureReferenceExpressions (see the redefinition of + /// this operation for FeatureReferenceExpression). Such circular references are not allowed in + /// model-level evaluable expressions. An Expression that is not otherwise + /// specialized is model-level evaluable if it has no (non-implied) ownedSpecializations and all its + /// ownedFeatures are either in parameters, the result parameter or a result Expression owned via a + /// ResultExpressionMembership. The parameters must not have any ownedFeatures or a FeatureValue, and + /// the result Expression must be model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeModelLevelEvaluableOperation(this IExpression expressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If this Expression isModelLevelEvaluable, then evaluate it using the target as the context Element + /// for resolving Feature names and testing classification. The result is a collection of Elements, + /// which, for a fully evaluable Expression, will be a LiteralExpression or a Feature that is not an + /// Expression. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeEvaluateOperation(this IExpression expressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Model-level evaluate this Expression with the given target. If the result is a LiteralBoolean, + /// return its value. Otherwise return false. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeCheckConditionOperation(this IExpression expressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/FeatureChainExpressionExtensions.cs b/SysML2.NET/Extend/FeatureChainExpressionExtensions.cs index 8d99cd269..398135a48 100644 --- a/SysML2.NET/Extend/FeatureChainExpressionExtensions.cs +++ b/SysML2.NET/Extend/FeatureChainExpressionExtensions.cs @@ -36,26 +36,37 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureChainExpressionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeTargetFeature(this IFeatureChainExpression featureChainExpression) + internal static IFeature ComputeTargetFeature(this IFeatureChainExpression featureChainExpressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return the first ownedFeature of the first owned input parameter of this FeatureChainExpression (if + /// any). + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeSourceTargetFeatureOperation(this IFeatureChainExpression featureChainExpressionSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/FeatureChainingExtensions.cs b/SysML2.NET/Extend/FeatureChainingExtensions.cs index af8b38407..c5ea648e6 100644 --- a/SysML2.NET/Extend/FeatureChainingExtensions.cs +++ b/SysML2.NET/Extend/FeatureChainingExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureChainingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeFeatureChained(this IFeatureChaining featureChaining) + internal static IFeature ComputeFeatureChained(this IFeatureChaining featureChainingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FeatureExtensions.cs b/SysML2.NET/Extend/FeatureExtensions.cs index 14735db82..d4faeceac 100644 --- a/SysML2.NET/Extend/FeatureExtensions.cs +++ b/SysML2.NET/Extend/FeatureExtensions.cs @@ -33,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeChainingFeature(this IFeature feature) + internal static List ComputeChainingFeature(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -57,14 +53,14 @@ internal static List ComputeChainingFeature(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeCrossFeature(this IFeature feature) + internal static IFeature ComputeCrossFeature(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -72,14 +68,14 @@ internal static IFeature ComputeCrossFeature(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeEndOwningType(this IFeature feature) + internal static IType ComputeEndOwningType(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -87,14 +83,14 @@ internal static IType ComputeEndOwningType(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeFeatureTarget(this IFeature feature) + internal static IFeature ComputeFeatureTarget(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -102,14 +98,14 @@ internal static IFeature ComputeFeatureTarget(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFeaturingType(this IFeature feature) + internal static List ComputeFeaturingType(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -117,14 +113,14 @@ internal static List ComputeFeaturingType(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature feature) + internal static ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -132,14 +128,14 @@ internal static ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature featu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFeatureChaining(this IFeature feature) + internal static List ComputeOwnedFeatureChaining(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -147,14 +143,14 @@ internal static List ComputeOwnedFeatureChaining(this IFeature /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFeatureInverting(this IFeature feature) + internal static List ComputeOwnedFeatureInverting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -162,14 +158,14 @@ internal static List ComputeOwnedFeatureInverting(this IFeatu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedRedefinition(this IFeature feature) + internal static List ComputeOwnedRedefinition(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -177,14 +173,14 @@ internal static List ComputeOwnedRedefinition(this IFeature featu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeature feature) + internal static IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -192,14 +188,14 @@ internal static IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeatu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedSubsetting(this IFeature feature) + internal static List ComputeOwnedSubsetting(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -207,14 +203,14 @@ internal static List ComputeOwnedSubsetting(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedTypeFeaturing(this IFeature feature) + internal static List ComputeOwnedTypeFeaturing(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -222,14 +218,14 @@ internal static List ComputeOwnedTypeFeaturing(this IFeature fea /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedTyping(this IFeature feature) + internal static List ComputeOwnedTyping(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -237,14 +233,14 @@ internal static List ComputeOwnedTyping(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeatureMembership ComputeOwningFeatureMembership(this IFeature feature) + internal static IFeatureMembership ComputeOwningFeatureMembership(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -252,14 +248,14 @@ internal static IFeatureMembership ComputeOwningFeatureMembership(this IFeature /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeOwningType(this IFeature feature) + internal static IType ComputeOwningType(this IFeature featureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -267,17 +263,345 @@ internal static IType ComputeOwningType(this IFeature feature) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeType(this IFeature feature) + internal static List ComputeType(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the directionOf this Feature relative to the given type. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static FeatureDirectionKind ComputeDirectionForOperation(this IFeature featureSubject, IType type) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If a Feature has no declaredShortName or declaredName, then its effective shortName is given by the + /// effective shortName of the Feature returned by the namingFeature() operation, if any. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedEffectiveShortNameOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If a Feature has no declaredName or declaredShortName , then its + /// effective name is given by the effective name of the Feature returned by the namingFeature() + /// operation, if any. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedEffectiveNameOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// By default, the naming Feature of a Feature is given by its first redefinedFeature of its first + /// ownedRedefinition, if any. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeNamingFeatureOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeRedefinedSupertypesOperation(this IFeature featureSubject, bool excludeImplied) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature directly redefines the given redefinedFeature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinesOperation(this IFeature featureSubject, IFeature redefinedFeature) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature directly redefines the named library Feature. libraryFeatureName must + /// conform to the syntax of a KerML qualified name and must resolve to a Feature in global scope. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinesFromLibraryOperation(this IFeature featureSubject, string libraryFeatureName) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature directly or indirectly specializes a Feature whose last two + /// chainingFeatures are the given Features first and second. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeSubsetsChainOperation(this IFeature featureSubject, IFeature first, IFeature second) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// A Feature is compatible with an otherType if it either directly or indirectly specializes the + /// otherType or if the otherType is also a Feature and all of the following are true. + ///
  1. Neither this Feature or the otherType have any + /// ownedFeatures.
  2. This Feature directly or indirectly redefines a + /// Feature that is also directly or indirectly redefined by the otherType.
  3. + ///
  4. This Feature can access the otherType.
+ ///
+ /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedIsCompatibleWithOperation(this IFeature featureSubject, IType otherType) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the Features used to determine the types of this Feature (other than this Feature itself). If + /// this Feature is not conjugated, then the typingFeatures consist of all subsetted Features, except + /// from CrossSubsetting, and the last chainingFeature (if any). If this Feature is conjugated, then the + /// typingFeatures are only its originalType (if the originalType is a Feature). + /// Note. CrossSubsetting is excluded from the determination of the type of a + /// Feature in order to avoid circularity in the construction of implied CrossSubsetting relationships. + /// The validateFeatureCrossFeatureType requires that the crossFeature of a Feature have the same type + /// as the Feature. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeTypingFeaturesOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If isCartesianProduct is true, then return the list of Types whose Cartesian product can be + /// represented by this Feature. (If isCartesianProduct is not true, the operation will still return a + /// valid value, it will just not represent anything useful.) + /// + /// + /// The subject + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeAsCartesianProductOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Feature can be used to represent a Cartesian product of Types. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsCartesianProductOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return whether this Feature is an owned cross Feature of an end Feature. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsOwnedCrossFeatureOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If this Feature is an end Feature of its owningType, then return the first ownedMember of the + /// Feature that is a Feature, but not a Multiplicity or a MetadataFeature, and whose owningMembership + /// is not a FeatureMembership. If this exists, it is the crossFeature of the end Feature. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeOwnedCrossFeatureOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return this Feature and all the Features that are directly or indirectly Redefined by this Feature. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeAllRedefinedFeaturesOperation(this IFeature featureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return if the featuringTypes of this Feature are compatible with the given type. If type is null, + /// then check if this Feature is explicitly or implicitly featured by Base::Anything. If this Feature + /// has isVariable = true, then also consider it to be featured within its owningType. If this Feature + /// is a feature chain whose first chainingFeature has isVariable = true, then also consider it to be + /// featured within the owningType of its first chainingFeature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsFeaturedWithinOperation(this IFeature featureSubject, IType type) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// A Feature can access another feature if the other feature is featured within one of the direct or + /// indirect featuringTypes of this Feature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeCanAccessOperation(this IFeature featureSubject, IFeature feature) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return whether the given type must be a featuringType of this Feature. If this Feature has + /// isVariable = false, then return true if the type is the owningType of the Feature. If isVariable = + /// true, then return true if the type is a Feature representing the snapshots of the owningType of this + /// Feature. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsFeaturingTypeOperation(this IFeature featureSubject, IType type) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/FeatureInvertingExtensions.cs b/SysML2.NET/Extend/FeatureInvertingExtensions.cs index 85c6ae573..6d40ccdbb 100644 --- a/SysML2.NET/Extend/FeatureInvertingExtensions.cs +++ b/SysML2.NET/Extend/FeatureInvertingExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureInvertingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwningFeature(this IFeatureInverting featureInverting) + internal static IFeature ComputeOwningFeature(this IFeatureInverting featureInvertingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FeatureMembershipExtensions.cs b/SysML2.NET/Extend/FeatureMembershipExtensions.cs index 3c420c89e..0cfea5176 100644 --- a/SysML2.NET/Extend/FeatureMembershipExtensions.cs +++ b/SysML2.NET/Extend/FeatureMembershipExtensions.cs @@ -33,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwnedMemberFeature(this IFeatureMembership featureMembership) + internal static IFeature ComputeOwnedMemberFeature(this IFeatureMembership featureMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -57,14 +53,14 @@ internal static IFeature ComputeOwnedMemberFeature(this IFeatureMembership featu /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeOwningType(this IFeatureMembership featureMembership) + internal static IType ComputeOwningType(this IFeatureMembership featureMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FeatureReferenceExpressionExtensions.cs b/SysML2.NET/Extend/FeatureReferenceExpressionExtensions.cs index 0e9d93e7d..4873216b6 100644 --- a/SysML2.NET/Extend/FeatureReferenceExpressionExtensions.cs +++ b/SysML2.NET/Extend/FeatureReferenceExpressionExtensions.cs @@ -36,26 +36,70 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureReferenceExpressionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeReferent(this IFeatureReferenceExpression featureReferenceExpression) + internal static IFeature ComputeReferent(this IFeatureReferenceExpression featureReferenceExpressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// A FeatureReferenceExpression is model-level evaluable if it's referent + ///
  • conforms to the self-reference feature Anything::self;
  • + ///
  • is an Expression that is model-level evaluable;
  • + ///
  • has an owningType that is a Metaclass or MetadataFeature; or
  • + ///
  • has no featuringTypes and, if it has a FeatureValue, the value Expression is model-level + /// evaluable.
+ ///
+ /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this IFeatureReferenceExpression featureReferenceExpressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// First, determine a value Expression for the referent:
    + ///
  • If the target Element is a Type that has a feature that is the referent or (directly + /// or indirectly) redefines it, then the value Expression of the FeatureValue for that feature (if + /// any).
  • Else, if the referent has no featuringTypes, the value + /// Expression of the FeatureValue for the referent (if any).
+ /// Then:
  • If such a + /// value Expression exists, return the result of evaluating that Expression on the target.
  • + ///
  • Else, if the referent is not an Expression, return the referent.
  • + ///
  • Else return the empty sequence.
+ ///
+ /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeRedefinedEvaluateOperation(this IFeatureReferenceExpression featureReferenceExpressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/FeatureTypingExtensions.cs b/SysML2.NET/Extend/FeatureTypingExtensions.cs index d04436c38..0b0762c11 100644 --- a/SysML2.NET/Extend/FeatureTypingExtensions.cs +++ b/SysML2.NET/Extend/FeatureTypingExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureTypingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwningFeature(this IFeatureTyping featureTyping) + internal static IFeature ComputeOwningFeature(this IFeatureTyping featureTypingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FeatureValueExtensions.cs b/SysML2.NET/Extend/FeatureValueExtensions.cs index d73a518f9..467fb0600 100644 --- a/SysML2.NET/Extend/FeatureValueExtensions.cs +++ b/SysML2.NET/Extend/FeatureValueExtensions.cs @@ -34,23 +34,19 @@ namespace SysML2.NET.Core.POCO.Kernel.FeatureValues /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FeatureValueExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeFeatureWithValue(this IFeatureValue featureValue) + internal static IFeature ComputeFeatureWithValue(this IFeatureValue featureValueSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -58,14 +54,14 @@ internal static IFeature ComputeFeatureWithValue(this IFeatureValue featureValue /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeValue(this IFeatureValue featureValue) + internal static IExpression ComputeValue(this IFeatureValue featureValueSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FlowDefinitionExtensions.cs b/SysML2.NET/Extend/FlowDefinitionExtensions.cs index 842006673..d7c5d20b7 100644 --- a/SysML2.NET/Extend/FlowDefinitionExtensions.cs +++ b/SysML2.NET/Extend/FlowDefinitionExtensions.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.Core.POCO.Systems.Flows using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Interactions; using SysML2.NET.Core.POCO.Root.Annotations; @@ -57,23 +58,19 @@ namespace SysML2.NET.Core.POCO.Systems.Flows /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FlowDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFlowEnd(this IFlowDefinition flowDefinition) + internal static List ComputeFlowEnd(this IFlowDefinition flowDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FlowExtensions.cs b/SysML2.NET/Extend/FlowExtensions.cs index c122303f9..604dd9bbb 100644 --- a/SysML2.NET/Extend/FlowExtensions.cs +++ b/SysML2.NET/Extend/FlowExtensions.cs @@ -38,23 +38,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Interactions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FlowExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFlowEnd(this IFlow flow) + internal static List ComputeFlowEnd(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -62,14 +58,14 @@ internal static List ComputeFlowEnd(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInteraction(this IFlow flow) + internal static List ComputeInteraction(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -77,14 +73,14 @@ internal static List ComputeInteraction(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPayloadFeature ComputePayloadFeature(this IFlow flow) + internal static IPayloadFeature ComputePayloadFeature(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -92,14 +88,14 @@ internal static IPayloadFeature ComputePayloadFeature(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputePayloadType(this IFlow flow) + internal static List ComputePayloadType(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -107,14 +103,14 @@ internal static List ComputePayloadType(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeSourceOutputFeature(this IFlow flow) + internal static IFeature ComputeSourceOutputFeature(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -122,14 +118,14 @@ internal static IFeature ComputeSourceOutputFeature(this IFlow flow) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeTargetInputFeature(this IFlow flow) + internal static IFeature ComputeTargetInputFeature(this IFlow flowSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FlowUsageExtensions.cs b/SysML2.NET/Extend/FlowUsageExtensions.cs index e04c3922e..cee915b97 100644 --- a/SysML2.NET/Extend/FlowUsageExtensions.cs +++ b/SysML2.NET/Extend/FlowUsageExtensions.cs @@ -31,6 +31,7 @@ namespace SysML2.NET.Core.POCO.Systems.Flows using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Connectors; using SysML2.NET.Core.POCO.Kernel.Interactions; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -61,23 +62,19 @@ namespace SysML2.NET.Core.POCO.Systems.Flows /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FlowUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFlowDefinition(this IFlowUsage flowUsage) + internal static List ComputeFlowDefinition(this IFlowUsage flowUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ForLoopActionUsageExtensions.cs b/SysML2.NET/Extend/ForLoopActionUsageExtensions.cs index 2110c513b..13e212e9d 100644 --- a/SysML2.NET/Extend/ForLoopActionUsageExtensions.cs +++ b/SysML2.NET/Extend/ForLoopActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ForLoopActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IReferenceUsage ComputeLoopVariable(this IForLoopActionUsage forLoopActionUsage) + internal static IReferenceUsage ComputeLoopVariable(this IForLoopActionUsage forLoopActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IReferenceUsage ComputeLoopVariable(this IForLoopActionUsage for /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeSeqArgument(this IForLoopActionUsage forLoopActionUsage) + internal static IExpression ComputeSeqArgument(this IForLoopActionUsage forLoopActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FramedConcernMembershipExtensions.cs b/SysML2.NET/Extend/FramedConcernMembershipExtensions.cs index 35133e7da..28dd5fa59 100644 --- a/SysML2.NET/Extend/FramedConcernMembershipExtensions.cs +++ b/SysML2.NET/Extend/FramedConcernMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FramedConcernMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConcernUsage ComputeOwnedConcern(this IFramedConcernMembership framedConcernMembership) + internal static IConcernUsage ComputeOwnedConcern(this IFramedConcernMembership framedConcernMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -60,14 +56,14 @@ internal static IConcernUsage ComputeOwnedConcern(this IFramedConcernMembership /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConcernUsage ComputeReferencedConcern(this IFramedConcernMembership framedConcernMembership) + internal static IConcernUsage ComputeReferencedConcern(this IFramedConcernMembership framedConcernMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/FunctionExtensions.cs b/SysML2.NET/Extend/FunctionExtensions.cs index 1991041c3..508dfa098 100644 --- a/SysML2.NET/Extend/FunctionExtensions.cs +++ b/SysML2.NET/Extend/FunctionExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class FunctionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeExpression(this IFunction function) + internal static List ComputeExpression(this IFunction functionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -59,14 +55,14 @@ internal static List ComputeExpression(this IFunction function) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsModelLevelEvaluable(this IFunction function) + internal static bool ComputeIsModelLevelEvaluable(this IFunction functionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -74,14 +70,14 @@ internal static bool ComputeIsModelLevelEvaluable(this IFunction function) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeResult(this IFunction function) + internal static IFeature ComputeResult(this IFunction functionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/IfActionUsageExtensions.cs b/SysML2.NET/Extend/IfActionUsageExtensions.cs index d91d4b0d2..fc731d51c 100644 --- a/SysML2.NET/Extend/IfActionUsageExtensions.cs +++ b/SysML2.NET/Extend/IfActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class IfActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeElseAction(this IIfActionUsage ifActionUsage) + internal static IActionUsage ComputeElseAction(this IIfActionUsage ifActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IActionUsage ComputeElseAction(this IIfActionUsage ifActionUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeIfArgument(this IIfActionUsage ifActionUsage) + internal static IExpression ComputeIfArgument(this IIfActionUsage ifActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static IExpression ComputeIfArgument(this IIfActionUsage ifActionUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeThenAction(this IIfActionUsage ifActionUsage) + internal static IActionUsage ComputeThenAction(this IIfActionUsage ifActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ImportExtensions.cs b/SysML2.NET/Extend/ImportExtensions.cs index 6f8c35e85..80dd45f19 100644 --- a/SysML2.NET/Extend/ImportExtensions.cs +++ b/SysML2.NET/Extend/ImportExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ImportExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeImportedElement(this IImport import) + internal static IElement ComputeImportedElement(this IImport importSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -55,17 +51,35 @@ internal static IElement ComputeImportedElement(this IImport import) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static INamespace ComputeImportOwningNamespace(this IImport import) + internal static INamespace ComputeImportOwningNamespace(this IImport importSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Returns Memberships that are to become importedMemberships of the importOwningNamespace. (The + /// excluded parameter is used to handle the possibility of circular Import Relationships.) + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeImportedMembershipsOperation(this IImport importSubject, INamespace excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/IncludeUseCaseUsageExtensions.cs b/SysML2.NET/Extend/IncludeUseCaseUsageExtensions.cs index 74d47bb06..750ceec42 100644 --- a/SysML2.NET/Extend/IncludeUseCaseUsageExtensions.cs +++ b/SysML2.NET/Extend/IncludeUseCaseUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.UseCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class IncludeUseCaseUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUseCaseUsage ComputeUseCaseIncluded(this IIncludeUseCaseUsage includeUseCaseUsage) + internal static IUseCaseUsage ComputeUseCaseIncluded(this IIncludeUseCaseUsage includeUseCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/IndexExpressionExtensions.cs b/SysML2.NET/Extend/IndexExpressionExtensions.cs index 32b7b1a98..678985fc6 100644 --- a/SysML2.NET/Extend/IndexExpressionExtensions.cs +++ b/SysML2.NET/Extend/IndexExpressionExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class IndexExpressionExtensions { } diff --git a/SysML2.NET/Extend/InstantiationExpressionExtensions.cs b/SysML2.NET/Extend/InstantiationExpressionExtensions.cs index 27d2a891e..85181220f 100644 --- a/SysML2.NET/Extend/InstantiationExpressionExtensions.cs +++ b/SysML2.NET/Extend/InstantiationExpressionExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class InstantiationExpressionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeArgument(this IInstantiationExpression instantiationExpression) + internal static List ComputeArgument(this IInstantiationExpression instantiationExpressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -60,17 +56,34 @@ internal static List ComputeArgument(this IInstantiationExpression /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeInstantiatedType(this IInstantiationExpression instantiationExpression) + internal static IType ComputeInstantiatedType(this IInstantiationExpression instantiationExpressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return the Type to act as the instantiatedType for this InstantiationExpression. By default, this is + /// the memberElement of the first ownedMembership that is not a FeatureMembership, which must be a + /// Type. Note. This operation is overridden in the subclass + /// OperatorExpression. + /// + /// + /// The subject + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeInstantiatedTypeOperation(this IInstantiationExpression instantiationExpressionSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/InterfaceDefinitionExtensions.cs b/SysML2.NET/Extend/InterfaceDefinitionExtensions.cs index b2cd98244..0a1b9311c 100644 --- a/SysML2.NET/Extend/InterfaceDefinitionExtensions.cs +++ b/SysML2.NET/Extend/InterfaceDefinitionExtensions.cs @@ -26,6 +26,7 @@ namespace SysML2.NET.Core.POCO.Systems.Interfaces using SysML2.NET.Core.POCO.Core.Classifiers; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -55,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.Interfaces /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class InterfaceDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInterfaceEnd(this IInterfaceDefinition interfaceDefinition) + internal static List ComputeInterfaceEnd(this IInterfaceDefinition interfaceDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/InterfaceUsageExtensions.cs b/SysML2.NET/Extend/InterfaceUsageExtensions.cs index 1d4b2a0a4..8bd4cf901 100644 --- a/SysML2.NET/Extend/InterfaceUsageExtensions.cs +++ b/SysML2.NET/Extend/InterfaceUsageExtensions.cs @@ -30,6 +30,7 @@ namespace SysML2.NET.Core.POCO.Systems.Interfaces using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Associations; using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Kernel.Connectors; using SysML2.NET.Core.POCO.Kernel.Structures; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -60,23 +61,19 @@ namespace SysML2.NET.Core.POCO.Systems.Interfaces /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class InterfaceUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInterfaceDefinition(this IInterfaceUsage interfaceUsage) + internal static List ComputeInterfaceDefinition(this IInterfaceUsage interfaceUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/IntersectingExtensions.cs b/SysML2.NET/Extend/IntersectingExtensions.cs index 1a215ade2..935938b0d 100644 --- a/SysML2.NET/Extend/IntersectingExtensions.cs +++ b/SysML2.NET/Extend/IntersectingExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class IntersectingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeTypeIntersected(this IIntersecting intersecting) + internal static IType ComputeTypeIntersected(this IIntersecting intersectingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/InvariantExtensions.cs b/SysML2.NET/Extend/InvariantExtensions.cs index f51b9df77..c4c38fce4 100644 --- a/SysML2.NET/Extend/InvariantExtensions.cs +++ b/SysML2.NET/Extend/InvariantExtensions.cs @@ -20,16 +20,21 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class InvariantExtensions { } diff --git a/SysML2.NET/Extend/InvocationExpressionExtensions.cs b/SysML2.NET/Extend/InvocationExpressionExtensions.cs new file mode 100644 index 000000000..f1e2a49f9 --- /dev/null +++ b/SysML2.NET/Extend/InvocationExpressionExtensions.cs @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Core.POCO.Kernel.Expressions +{ + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + + /// + /// The class provides extensions methods for + /// the interface + /// + internal static class InvocationExpressionExtensions + { + /// + /// An InvocationExpression is model-level evaluable if all its argument Expressions are model-level + /// evaluable and its function is model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this IInvocationExpression invocationExpressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Apply the Function that is the type of this InvocationExpression to the argument values resulting + /// from evaluating each of the argument Expressions on the given target. If the application is not + /// possible, then return an empty sequence. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeRedefinedEvaluateOperation(this IInvocationExpression invocationExpressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + } +} diff --git a/SysML2.NET/Extend/ItemUsageExtensions.cs b/SysML2.NET/Extend/ItemUsageExtensions.cs index f44ad9af0..096c45d69 100644 --- a/SysML2.NET/Extend/ItemUsageExtensions.cs +++ b/SysML2.NET/Extend/ItemUsageExtensions.cs @@ -59,23 +59,19 @@ namespace SysML2.NET.Core.POCO.Systems.Items /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ItemUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeItemDefinition(this IItemUsage itemUsage) + internal static List ComputeItemDefinition(this IItemUsage itemUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/LibraryPackageExtensions.cs b/SysML2.NET/Extend/LibraryPackageExtensions.cs index 6a8e8c5a2..5569bdefd 100644 --- a/SysML2.NET/Extend/LibraryPackageExtensions.cs +++ b/SysML2.NET/Extend/LibraryPackageExtensions.cs @@ -20,17 +20,33 @@ namespace SysML2.NET.Core.POCO.Kernel.Packages { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class LibraryPackageExtensions { + /// + /// The libraryNamespace for a LibraryPackage is itself. + /// + /// + /// The subject + /// + /// + /// The expected INamespace + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static INamespace ComputeRedefinedLibraryNamespaceOperation(this ILibraryPackage libraryPackageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/LiteralBooleanExtensions.cs b/SysML2.NET/Extend/LiteralBooleanExtensions.cs index 843c73780..5eec3c048 100644 --- a/SysML2.NET/Extend/LiteralBooleanExtensions.cs +++ b/SysML2.NET/Extend/LiteralBooleanExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class LiteralBooleanExtensions { } diff --git a/SysML2.NET/Extend/LiteralExpressionExtensions.cs b/SysML2.NET/Extend/LiteralExpressionExtensions.cs new file mode 100644 index 000000000..528245e4e --- /dev/null +++ b/SysML2.NET/Extend/LiteralExpressionExtensions.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Core.POCO.Kernel.Expressions +{ + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + + /// + /// The class provides extensions methods for + /// the interface + /// + internal static class LiteralExpressionExtensions + { + /// + /// A LiteralExpression is always model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this ILiteralExpression literalExpressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// The model-level value of a LiteralExpression is itself. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeRedefinedEvaluateOperation(this ILiteralExpression literalExpressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + } +} diff --git a/SysML2.NET/Extend/LiteralIntegerExtensions.cs b/SysML2.NET/Extend/LiteralIntegerExtensions.cs index 724f6ccbd..453f5e2ba 100644 --- a/SysML2.NET/Extend/LiteralIntegerExtensions.cs +++ b/SysML2.NET/Extend/LiteralIntegerExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; - + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class LiteralIntegerExtensions { } diff --git a/SysML2.NET/Extend/LiteralRationalExtensions.cs b/SysML2.NET/Extend/LiteralRationalExtensions.cs index c6dcd7a33..92c7140bd 100644 --- a/SysML2.NET/Extend/LiteralRationalExtensions.cs +++ b/SysML2.NET/Extend/LiteralRationalExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class LiteralRationalExtensions { } diff --git a/SysML2.NET/Extend/LiteralStringExtensions.cs b/SysML2.NET/Extend/LiteralStringExtensions.cs index c5ab35647..2dedcbc32 100644 --- a/SysML2.NET/Extend/LiteralStringExtensions.cs +++ b/SysML2.NET/Extend/LiteralStringExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class LiteralStringExtensions { } diff --git a/SysML2.NET/Extend/LoopActionUsageExtensions.cs b/SysML2.NET/Extend/LoopActionUsageExtensions.cs index 9c4f50664..6971d237c 100644 --- a/SysML2.NET/Extend/LoopActionUsageExtensions.cs +++ b/SysML2.NET/Extend/LoopActionUsageExtensions.cs @@ -59,24 +59,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class LoopActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeBodyAction(this ILoopActionUsage loopActionUsage) + internal static IActionUsage ComputeBodyAction(this ILoopActionUsage loopActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/MembershipExtensions.cs b/SysML2.NET/Extend/MembershipExtensions.cs index 55ee5bc23..859a514dd 100644 --- a/SysML2.NET/Extend/MembershipExtensions.cs +++ b/SysML2.NET/Extend/MembershipExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class MembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeMemberElementId(this IMembership membership) + internal static string ComputeMemberElementId(this IMembership membershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -55,17 +51,38 @@ internal static string ComputeMemberElementId(this IMembership membership) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static INamespace ComputeMembershipOwningNamespace(this IMembership membership) + internal static INamespace ComputeMembershipOwningNamespace(this IMembership membershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Whether this Membership is distinguishable from a given other Membership. By default, this is true + /// if this Membership has no memberShortName or memberName; or each of the memberShortName and + /// memberName are different than both of those of the other Membership; or neither of the metaclasses + /// of the memberElement of this Membership and the memberElement of the other Membership conform to the + /// other. But this may be overridden in specializations of Membership. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsDistinguishableFromOperation(this IMembership membershipSubject, IMembership other) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/MembershipImportExtensions.cs b/SysML2.NET/Extend/MembershipImportExtensions.cs index fa519bfd5..dea0444c4 100644 --- a/SysML2.NET/Extend/MembershipImportExtensions.cs +++ b/SysML2.NET/Extend/MembershipImportExtensions.cs @@ -20,17 +20,37 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Root.Namespaces; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class MembershipImportExtensions { + /// + /// Returns at least the importedMembership. If isRecursive = true and the memberElement of the + /// importedMembership is a Namespace, then Memberships are also recursively imported from that + /// Namespace. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeRedefinedImportedMembershipsOperation(this IMembershipImport membershipImportSubject, INamespace excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/MetadataAccessExpressionExtensions.cs b/SysML2.NET/Extend/MetadataAccessExpressionExtensions.cs index 7aafa93ad..41334153a 100644 --- a/SysML2.NET/Extend/MetadataAccessExpressionExtensions.cs +++ b/SysML2.NET/Extend/MetadataAccessExpressionExtensions.cs @@ -28,6 +28,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions using SysML2.NET.Core.POCO.Core.Types; using SysML2.NET.Core.POCO.Kernel.Behaviors; using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Kernel.Metadata; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; using SysML2.NET.Core.POCO.Root.Namespaces; @@ -36,26 +37,78 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class MetadataAccessExpressionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeReferencedElement(this IMetadataAccessExpression metadataAccessExpression) + internal static IElement ComputeReferencedElement(this IMetadataAccessExpression metadataAccessExpressionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// A MetadataAccessExpression is always model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this IMetadataAccessExpression metadataAccessExpressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the ownedElements of the referencedElement that are MetadataFeatures and have the + /// referencedElement as an annotatedElement, plus a MetadataFeature whose annotatedElement is the + /// referencedElement, whose metaclass is the reflective Metaclass corresponding to the MOF class of the + /// referencedElement and whose ownedFeatures are bound to the values of the MOF properties of the + /// referencedElement. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeRedefinedEvaluateOperation(this IMetadataAccessExpression metadataAccessExpressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return a MetadataFeature whose annotatedElement is the referencedElement, whose metaclass is the + /// reflective Metaclass corresponding to the MOF class of the referencedElement and whose ownedFeatures + /// are bound to the MOF properties of the referencedElement. + /// + /// + /// The subject + /// + /// + /// The expected IMetadataFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMetadataFeature ComputeMetaclassFeatureOperation(this IMetadataAccessExpression metadataAccessExpressionSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/MetadataFeatureExtensions.cs b/SysML2.NET/Extend/MetadataFeatureExtensions.cs index 1e12dd4ea..00beae779 100644 --- a/SysML2.NET/Extend/MetadataFeatureExtensions.cs +++ b/SysML2.NET/Extend/MetadataFeatureExtensions.cs @@ -34,26 +34,88 @@ namespace SysML2.NET.Core.POCO.Kernel.Metadata /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class MetadataFeatureExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IMetaclass ComputeMetaclass(this IMetadataFeature metadataFeature) + internal static IMetaclass ComputeMetaclass(this IMetadataFeature metadataFeatureSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If the given baseFeature is a feature of this MetadataFeature, or is directly or indirectly + /// redefined by a feature, then return the result of evaluating the appropriate (model-level evaluable) + /// value Expression for it (if any), with the MetadataFeature as the target. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeEvaluateFeatureOperation(this IMetadataFeature metadataFeatureSubject, IFeature baseFeature) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check if this MetadataFeature has a metaclass which is a kind of SemanticMetadata. + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsSemanticOperation(this IMetadataFeature metadataFeatureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check if this MetadataFeature has a metaclass that is a kind of KerML::Element (that is, it is from + /// the reflective abstract syntax model). + /// + /// + /// The subject + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsSyntacticOperation(this IMetadataFeature metadataFeatureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If this MetadataFeature reflectively represents a model element, then return the corresponding + /// Element instance from the MOF abstract syntax representation of the model. + /// + /// + /// The subject + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeSyntaxElementOperation(this IMetadataFeature metadataFeatureSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/MetadataUsageExtensions.cs b/SysML2.NET/Extend/MetadataUsageExtensions.cs index 2e10fe2a1..72d8198df 100644 --- a/SysML2.NET/Extend/MetadataUsageExtensions.cs +++ b/SysML2.NET/Extend/MetadataUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Metadata /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class MetadataUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IMetaclass ComputeMetadataDefinition(this IMetadataUsage metadataUsage) + internal static IMetaclass ComputeMetadataDefinition(this IMetadataUsage metadataUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/MultiplicityRangeExtensions.cs b/SysML2.NET/Extend/MultiplicityRangeExtensions.cs index cf2466883..38aca7741 100644 --- a/SysML2.NET/Extend/MultiplicityRangeExtensions.cs +++ b/SysML2.NET/Extend/MultiplicityRangeExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Multiplicities /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class MultiplicityRangeExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeBound(this IMultiplicityRange multiplicityRange) + internal static List ComputeBound(this IMultiplicityRange multiplicityRangeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -59,14 +55,14 @@ internal static List ComputeBound(this IMultiplicityRange multiplic /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeLowerBound(this IMultiplicityRange multiplicityRange) + internal static IExpression ComputeLowerBound(this IMultiplicityRange multiplicityRangeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -74,17 +70,57 @@ internal static IExpression ComputeLowerBound(this IMultiplicityRange multiplici /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeUpperBound(this IMultiplicityRange multiplicityRange) + internal static IExpression ComputeUpperBound(this IMultiplicityRange multiplicityRangeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Check whether this MultiplicityRange represents the range bounded by the given values lower and + /// upper, presuming the lowerBound and upperBound Expressions are model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeHasBoundsOperation(this IMultiplicityRange multiplicityRangeSubject, int lower, string upper) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Evaluate the given bound Expression (at model level) and return the result represented as a MOF + /// UnlimitedNatural value. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeValueOfOperation(this IMultiplicityRange multiplicityRangeSubject, IExpression bound) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/NamespaceExtensions.cs b/SysML2.NET/Extend/NamespaceExtensions.cs index d2e3ba194..f2eacffc8 100644 --- a/SysML2.NET/Extend/NamespaceExtensions.cs +++ b/SysML2.NET/Extend/NamespaceExtensions.cs @@ -23,6 +23,7 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces using System; using System.Collections.Generic; + using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -30,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class NamespaceExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeImportedMembership(this INamespace @namespace) + internal static List ComputeImportedMembership(this INamespace namespaceSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -54,14 +51,14 @@ internal static List ComputeImportedMembership(this INamespace @nam /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeMember(this INamespace @namespace) + internal static List ComputeMember(this INamespace namespaceSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -69,14 +66,14 @@ internal static List ComputeMember(this INamespace @namespace) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeMembership(this INamespace @namespace) + internal static List ComputeMembership(this INamespace namespaceSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +81,14 @@ internal static List ComputeMembership(this INamespace @namespace) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedImport(this INamespace @namespace) + internal static List ComputeOwnedImport(this INamespace namespaceSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +96,14 @@ internal static List ComputeOwnedImport(this INamespace @namespace) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedMember(this INamespace @namespace) + internal static List ComputeOwnedMember(this INamespace namespaceSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -114,14 +111,244 @@ internal static List ComputeOwnedMember(this INamespace @namespace) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedMembership(this INamespace @namespace) + internal static List ComputeOwnedMembership(this INamespace namespaceSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the names of the given element as it is known in this Namespace. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeNamesOfOperation(this INamespace namespaceSubject, IElement element) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Returns this visibility of mem relative to this Namespace. If mem is an importedMembership, this is + /// the visibility of its Import. Otherwise it is the visibility of the Membership itself. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected VisibilityKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static VisibilityKind ComputeVisibilityOfOperation(this INamespace namespaceSubject, IMembership mem) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If includeAll = true, then return all the Memberships of this Namespace. Otherwise, return only the + /// publicly visible Memberships of this Namespace, including ownedMemberships that have a visibility of + /// public and Memberships imported with a visibility of public. If isRecursive = true, also recursively + /// include all visible Memberships of any public owned Namespaces, or, if IncludeAll = true, all + /// Memberships of all owned Namespaces. When computing imported Memberships, ignore this Namespace and + /// any Namespaces in the given excluded set. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeVisibleMembershipsOperation(this INamespace namespaceSubject, INamespace excluded, bool isRecursive, bool includeAll) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Derive the imported Memberships of this Namespace as the importedMembership of all ownedImports, + /// excluding those Imports whose importOwningNamespace is in the excluded set, and excluding + /// Memberships that have distinguisibility collisions with each other or with any ownedMembership. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeImportedMembershipsOperation(this INamespace namespaceSubject, INamespace excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If visibility is not null, return the Memberships of this Namespace with the given visibility, + /// including ownedMemberships with the given visibility and Memberships imported with the given + /// visibility. If visibility is null, return all ownedMemberships and imported Memberships regardless + /// of visibility. When computing imported Memberships, ignore this Namespace and any Namespaces in the + /// given excluded set. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeMembershipsOfVisibilityOperation(this INamespace namespaceSubject, VisibilityKind visibility, INamespace excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Resolve the given qualified name to the named Membership (if any), starting with this Namespace as + /// the local scope. The qualified name string must conform to the concrete syntax of the KerML textual + /// notation. According to the KerML name resolution rules every qualified name will resolve to either a + /// single Membership, or to none. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeResolveOperation(this INamespace namespaceSubject, string qualifiedName) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Resolve the given qualified name to the named Membership (if any) in the effective global Namespace + /// that is the outermost naming scope. The qualified name string must conform to the concrete syntax of + /// the KerML textual notation. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeResolveGlobalOperation(this INamespace namespaceSubject, string qualifiedName) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Resolve a simple name starting with this Namespace as the local scope, and continuing with + /// containing outer scopes as necessary. However, if this Namespace is a root Namespace, then the + /// resolution is done directly in global scope. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeResolveLocalOperation(this INamespace namespaceSubject, string name) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Resolve a simple name from the visible Memberships of this Namespace. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeResolveVisibleOperation(this INamespace namespaceSubject, string name) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return a string with valid KerML syntax representing the qualification part of a given + /// qualifiedName, that is, a qualified name with all the segment names of the given name except the + /// last. If the given qualifiedName has only one segment, then return null. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeQualificationOfOperation(this INamespace namespaceSubject, string qualifiedName) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the simple name that is the last segment name of the given qualifiedName. If this segment + /// name has the form of a KerML unrestricted name, then "unescape" it by removing the surrounding + /// single quotes and replacing all escape sequences with the specified character. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeUnqualifiedNameOfOperation(this INamespace namespaceSubject, string qualifiedName) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/NamespaceImportExtensions.cs b/SysML2.NET/Extend/NamespaceImportExtensions.cs index e82e02e95..2834eeba5 100644 --- a/SysML2.NET/Extend/NamespaceImportExtensions.cs +++ b/SysML2.NET/Extend/NamespaceImportExtensions.cs @@ -20,17 +20,37 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Root.Namespaces; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class NamespaceImportExtensions { + /// + /// Returns at least the visible Memberships of the importedNamespace. If isRecursive = true, then + /// Memberships are also recursively imported from any ownedMembers of the importedNamespace that are + /// themselves Namespaces. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeRedefinedImportedMembershipsOperation(this INamespaceImport namespaceImportSubject, INamespace excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/NullExpressionExtensions.cs b/SysML2.NET/Extend/NullExpressionExtensions.cs new file mode 100644 index 000000000..e68068344 --- /dev/null +++ b/SysML2.NET/Extend/NullExpressionExtensions.cs @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Core.POCO.Kernel.Expressions +{ + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + + /// + /// The class provides extensions methods for + /// the interface + /// + internal static class NullExpressionExtensions + { + /// + /// A NullExpression is always model-level evaluable. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeRedefinedModelLevelEvaluableOperation(this INullExpression nullExpressionSubject, IFeature visited) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// The model-level value of a NullExpression is an empty sequence. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IElement + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IElement ComputeRedefinedEvaluateOperation(this INullExpression nullExpressionSubject, IElement target) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + } +} diff --git a/SysML2.NET/Extend/ObjectiveMembershipExtensions.cs b/SysML2.NET/Extend/ObjectiveMembershipExtensions.cs index 1a6fd20e8..ad169e0dc 100644 --- a/SysML2.NET/Extend/ObjectiveMembershipExtensions.cs +++ b/SysML2.NET/Extend/ObjectiveMembershipExtensions.cs @@ -35,23 +35,19 @@ namespace SysML2.NET.Core.POCO.Systems.Cases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ObjectiveMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementUsage ComputeOwnedObjectiveRequirement(this IObjectiveMembership objectiveMembership) + internal static IRequirementUsage ComputeOwnedObjectiveRequirement(this IObjectiveMembership objectiveMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/OccurrenceDefinitionExtensions.cs b/SysML2.NET/Extend/OccurrenceDefinitionExtensions.cs index 1640fb5ba..243f6b224 100644 --- a/SysML2.NET/Extend/OccurrenceDefinitionExtensions.cs +++ b/SysML2.NET/Extend/OccurrenceDefinitionExtensions.cs @@ -20,16 +20,42 @@ namespace SysML2.NET.Core.POCO.Systems.Occurrences { - using System.Diagnostics.CodeAnalysis; - + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.POCO.Core.Classifiers; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Classes; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + using SysML2.NET.Core.POCO.Systems.Actions; + using SysML2.NET.Core.POCO.Systems.Allocations; + using SysML2.NET.Core.POCO.Systems.AnalysisCases; + using SysML2.NET.Core.POCO.Systems.Attributes; + using SysML2.NET.Core.POCO.Systems.Calculations; + using SysML2.NET.Core.POCO.Systems.Cases; + using SysML2.NET.Core.POCO.Systems.Connections; + using SysML2.NET.Core.POCO.Systems.Constraints; + using SysML2.NET.Core.POCO.Systems.DefinitionAndUsage; + using SysML2.NET.Core.POCO.Systems.Enumerations; + using SysML2.NET.Core.POCO.Systems.Flows; + using SysML2.NET.Core.POCO.Systems.Interfaces; + using SysML2.NET.Core.POCO.Systems.Items; + using SysML2.NET.Core.POCO.Systems.Metadata; + using SysML2.NET.Core.POCO.Systems.Parts; + using SysML2.NET.Core.POCO.Systems.Ports; + using SysML2.NET.Core.POCO.Systems.Requirements; + using SysML2.NET.Core.POCO.Systems.States; + using SysML2.NET.Core.POCO.Systems.UseCases; + using SysML2.NET.Core.POCO.Systems.VerificationCases; + using SysML2.NET.Core.POCO.Systems.Views; + /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class OccurrenceDefinitionExtensions { } diff --git a/SysML2.NET/Extend/OccurrenceUsageExtensions.cs b/SysML2.NET/Extend/OccurrenceUsageExtensions.cs index 830f039d7..6c027f4b0 100644 --- a/SysML2.NET/Extend/OccurrenceUsageExtensions.cs +++ b/SysML2.NET/Extend/OccurrenceUsageExtensions.cs @@ -58,23 +58,19 @@ namespace SysML2.NET.Core.POCO.Systems.Occurrences /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class OccurrenceUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IOccurrenceDefinition ComputeIndividualDefinition(this IOccurrenceUsage occurrenceUsage) + internal static IOccurrenceDefinition ComputeIndividualDefinition(this IOccurrenceUsage occurrenceUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -82,14 +78,14 @@ internal static IOccurrenceDefinition ComputeIndividualDefinition(this IOccurren /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOccurrenceDefinition(this IOccurrenceUsage occurrenceUsage) + internal static List ComputeOccurrenceDefinition(this IOccurrenceUsage occurrenceUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/OperatorExpressionExtensions.cs b/SysML2.NET/Extend/OperatorExpressionExtensions.cs index e8693a96a..5bafece36 100644 --- a/SysML2.NET/Extend/OperatorExpressionExtensions.cs +++ b/SysML2.NET/Extend/OperatorExpressionExtensions.cs @@ -20,17 +20,38 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; - + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class OperatorExpressionExtensions { + /// + /// The instantiatedType of an OperatorExpression is the resolution of it's operator from one of the + /// packages BaseFunctions, DataFunctions, or ControlFunctions from the Kernel Function Library. + /// + /// + /// The subject + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeRedefinedInstantiatedTypeOperation(this IOperatorExpression operatorExpressionSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/OwningMembershipExtensions.cs b/SysML2.NET/Extend/OwningMembershipExtensions.cs index cb13caeb3..8d61a00e1 100644 --- a/SysML2.NET/Extend/OwningMembershipExtensions.cs +++ b/SysML2.NET/Extend/OwningMembershipExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Root.Namespaces /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class OwningMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeOwnedMemberElement(this IOwningMembership owningMembership) + internal static IElement ComputeOwnedMemberElement(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -55,14 +51,14 @@ internal static IElement ComputeOwnedMemberElement(this IOwningMembership owning /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeOwnedMemberElementId(this IOwningMembership owningMembership) + internal static string ComputeOwnedMemberElementId(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -70,14 +66,14 @@ internal static string ComputeOwnedMemberElementId(this IOwningMembership owning /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeOwnedMemberName(this IOwningMembership owningMembership) + internal static string ComputeOwnedMemberName(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -85,17 +81,33 @@ internal static string ComputeOwnedMemberName(this IOwningMembership owningMembe /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static string ComputeOwnedMemberShortName(this IOwningMembership owningMembership) + internal static string ComputeOwnedMemberShortName(this IOwningMembership owningMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If the ownedMemberElement of this OwningMembership has a non-null qualifiedName, then return the + /// string constructed by appending to that qualifiedName the string "/owningMembership". Otherwise, + /// return the path of the OwningMembership as specified for a Relationship in general. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedPathOperation(this IOwningMembership owningMembershipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/PackageExtensions.cs b/SysML2.NET/Extend/PackageExtensions.cs index aacc66192..48100c3b0 100644 --- a/SysML2.NET/Extend/PackageExtensions.cs +++ b/SysML2.NET/Extend/PackageExtensions.cs @@ -32,26 +32,57 @@ namespace SysML2.NET.Core.POCO.Kernel.Packages /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class PackageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFilterCondition(this IPackage package) + internal static List ComputeFilterCondition(this IPackage packageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Exclude Elements that do not meet all the filterConditions. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeRedefinedImportedMembershipsOperation(this IPackage packageSubject, INamespace excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Determine whether the given element meets all the filterConditions. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIncludeAsMemberOperation(this IPackage packageSubject, IElement element) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ParameterMembershipExtensions.cs b/SysML2.NET/Extend/ParameterMembershipExtensions.cs index 4ac607daf..5864cc75e 100644 --- a/SysML2.NET/Extend/ParameterMembershipExtensions.cs +++ b/SysML2.NET/Extend/ParameterMembershipExtensions.cs @@ -23,6 +23,7 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors using System; using System.Collections.Generic; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.Root.Namespaces; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Core.Types; @@ -34,26 +35,36 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ParameterMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwnedMemberParameter(this IParameterMembership parameterMembership) + internal static IFeature ComputeOwnedMemberParameter(this IParameterMembership parameterMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return the required value of the direction of the ownedMemberParameter. By default, this is in. + /// + /// + /// The subject + /// + /// + /// The expected FeatureDirectionKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static FeatureDirectionKind ComputeParameterDirectionOperation(this IParameterMembership parameterMembershipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/PartUsageExtensions.cs b/SysML2.NET/Extend/PartUsageExtensions.cs index 7feb5c527..bf261d19c 100644 --- a/SysML2.NET/Extend/PartUsageExtensions.cs +++ b/SysML2.NET/Extend/PartUsageExtensions.cs @@ -59,23 +59,19 @@ namespace SysML2.NET.Core.POCO.Systems.Parts /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class PartUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputePartDefinition(this IPartUsage partUsage) + internal static List ComputePartDefinition(this IPartUsage partUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/PerformActionUsageExtensions.cs b/SysML2.NET/Extend/PerformActionUsageExtensions.cs index 5e83a4c0d..f5083dd98 100644 --- a/SysML2.NET/Extend/PerformActionUsageExtensions.cs +++ b/SysML2.NET/Extend/PerformActionUsageExtensions.cs @@ -59,26 +59,38 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class PerformActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputePerformedAction(this IPerformActionUsage performActionUsage) + internal static IActionUsage ComputePerformedAction(this IPerformActionUsage performActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// The naming Feature of a PerformActionUsage is its performedAction, if this is different than the + /// PerformActionUsage. If the PerformActionUsage is its own performedAction, then the naming Feature is + /// the same as the usual default for a Usage. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeRedefinedNamingFeatureOperation(this IPerformActionUsage performActionUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/PortConjugationExtensions.cs b/SysML2.NET/Extend/PortConjugationExtensions.cs index ff6568604..eef8d0772 100644 --- a/SysML2.NET/Extend/PortConjugationExtensions.cs +++ b/SysML2.NET/Extend/PortConjugationExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Systems.Ports /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class PortConjugationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConjugatedPortDefinition ComputeConjugatedPortDefinition(this IPortConjugation portConjugation) + internal static IConjugatedPortDefinition ComputeConjugatedPortDefinition(this IPortConjugation portConjugationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/PortDefinitionExtensions.cs b/SysML2.NET/Extend/PortDefinitionExtensions.cs index fe627dc84..112678494 100644 --- a/SysML2.NET/Extend/PortDefinitionExtensions.cs +++ b/SysML2.NET/Extend/PortDefinitionExtensions.cs @@ -56,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.Ports /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class PortDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConjugatedPortDefinition ComputeConjugatedPortDefinition(this IPortDefinition portDefinition) + internal static IConjugatedPortDefinition ComputeConjugatedPortDefinition(this IPortDefinition portDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/PortUsageExtensions.cs b/SysML2.NET/Extend/PortUsageExtensions.cs index f839a6cb8..9e8e09ddc 100644 --- a/SysML2.NET/Extend/PortUsageExtensions.cs +++ b/SysML2.NET/Extend/PortUsageExtensions.cs @@ -58,23 +58,19 @@ namespace SysML2.NET.Core.POCO.Systems.Ports /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class PortUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputePortDefinition(this IPortUsage portUsage) + internal static List ComputePortDefinition(this IPortUsage portUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/RedefinitionExtensions.cs b/SysML2.NET/Extend/RedefinitionExtensions.cs index e69df841a..700812032 100644 --- a/SysML2.NET/Extend/RedefinitionExtensions.cs +++ b/SysML2.NET/Extend/RedefinitionExtensions.cs @@ -20,16 +20,18 @@ namespace SysML2.NET.Core.POCO.Core.Features { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class RedefinitionExtensions { } diff --git a/SysML2.NET/Extend/ReferenceSubsettingExtensions.cs b/SysML2.NET/Extend/ReferenceSubsettingExtensions.cs index 59024e088..2d0ca2f2e 100644 --- a/SysML2.NET/Extend/ReferenceSubsettingExtensions.cs +++ b/SysML2.NET/Extend/ReferenceSubsettingExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ReferenceSubsettingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeReferencingFeature(this IReferenceSubsetting referenceSubsetting) + internal static IFeature ComputeReferencingFeature(this IReferenceSubsetting referenceSubsettingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ReferenceUsageExtensions.cs b/SysML2.NET/Extend/ReferenceUsageExtensions.cs index 4a255fb54..e857cab7a 100644 --- a/SysML2.NET/Extend/ReferenceUsageExtensions.cs +++ b/SysML2.NET/Extend/ReferenceUsageExtensions.cs @@ -56,26 +56,37 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ReferenceUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsReference(this IReferenceUsage referenceUsage) + internal static bool ComputeIsReference(this IReferenceUsage referenceUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If this ReferenceUsage is the payload parameter of a TransitionUsage, then its naming Feature is the + /// payloadParameter of the triggerAction of that TransitionUsage (if any). + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeRedefinedNamingFeatureOperation(this IReferenceUsage referenceUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/RelationshipExtensions.cs b/SysML2.NET/Extend/RelationshipExtensions.cs index 545eb4ec8..150a0e14f 100644 --- a/SysML2.NET/Extend/RelationshipExtensions.cs +++ b/SysML2.NET/Extend/RelationshipExtensions.cs @@ -30,26 +30,55 @@ namespace SysML2.NET.Core.POCO.Root.Elements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RelationshipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRelatedElement(this IRelationship relationship) + internal static List ComputeRelatedElement(this IRelationship relationshipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return whether this Relationship has either an owningRelatedElement or owningRelationship that is a + /// library element. + /// + /// + /// The subject + /// + /// + /// The expected INamespace + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static INamespace ComputeRedefinedLibraryNamespaceOperation(this IRelationship relationshipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If the owningRelationship of the Relationship is null but its owningRelatedElement is non-null, + /// construct the path using the position of the Relationship in the list of ownedRelationships of its + /// owningRelatedElement. Otherwise, return the path of the Relationship as specified for an Element in + /// general. + /// + /// + /// The subject + /// + /// + /// The expected string + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static string ComputeRedefinedPathOperation(this IRelationship relationshipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/RenderingDefinitionExtensions.cs b/SysML2.NET/Extend/RenderingDefinitionExtensions.cs index 8d0bc0f45..1b18d7af7 100644 --- a/SysML2.NET/Extend/RenderingDefinitionExtensions.cs +++ b/SysML2.NET/Extend/RenderingDefinitionExtensions.cs @@ -55,23 +55,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RenderingDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRendering(this IRenderingDefinition renderingDefinition) + internal static List ComputeRendering(this IRenderingDefinition renderingDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/RenderingUsageExtensions.cs b/SysML2.NET/Extend/RenderingUsageExtensions.cs index 79ab76ceb..be1180876 100644 --- a/SysML2.NET/Extend/RenderingUsageExtensions.cs +++ b/SysML2.NET/Extend/RenderingUsageExtensions.cs @@ -59,23 +59,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RenderingUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRenderingDefinition ComputeRenderingDefinition(this IRenderingUsage renderingUsage) + internal static IRenderingDefinition ComputeRenderingDefinition(this IRenderingUsage renderingUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/RequirementConstraintMembershipExtensions.cs b/SysML2.NET/Extend/RequirementConstraintMembershipExtensions.cs index 566bb7047..83a4d4546 100644 --- a/SysML2.NET/Extend/RequirementConstraintMembershipExtensions.cs +++ b/SysML2.NET/Extend/RequirementConstraintMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RequirementConstraintMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConstraintUsage ComputeOwnedConstraint(this IRequirementConstraintMembership requirementConstraintMembership) + internal static IConstraintUsage ComputeOwnedConstraint(this IRequirementConstraintMembership requirementConstraintMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -60,14 +56,14 @@ internal static IConstraintUsage ComputeOwnedConstraint(this IRequirementConstra /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConstraintUsage ComputeReferencedConstraint(this IRequirementConstraintMembership requirementConstraintMembership) + internal static IConstraintUsage ComputeReferencedConstraint(this IRequirementConstraintMembership requirementConstraintMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/RequirementDefinitionExtensions.cs b/SysML2.NET/Extend/RequirementDefinitionExtensions.cs index 142dc6778..d07b1e390 100644 --- a/SysML2.NET/Extend/RequirementDefinitionExtensions.cs +++ b/SysML2.NET/Extend/RequirementDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RequirementDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeActorParameter(this IRequirementDefinition requirementDefinition) + internal static List ComputeActorParameter(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -81,14 +77,14 @@ internal static List ComputeActorParameter(this IRequirementDefiniti /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAssumedConstraint(this IRequirementDefinition requirementDefinition) + internal static List ComputeAssumedConstraint(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -96,14 +92,14 @@ internal static List ComputeAssumedConstraint(this IRequiremen /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFramedConcern(this IRequirementDefinition requirementDefinition) + internal static List ComputeFramedConcern(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -111,14 +107,14 @@ internal static List ComputeFramedConcern(this IRequirementDefini /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRequiredConstraint(this IRequirementDefinition requirementDefinition) + internal static List ComputeRequiredConstraint(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -126,14 +122,14 @@ internal static List ComputeRequiredConstraint(this IRequireme /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeStakeholderParameter(this IRequirementDefinition requirementDefinition) + internal static List ComputeStakeholderParameter(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -141,14 +137,14 @@ internal static List ComputeStakeholderParameter(this IRequirementDe /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeSubjectParameter(this IRequirementDefinition requirementDefinition) + internal static IUsage ComputeSubjectParameter(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -156,14 +152,14 @@ internal static IUsage ComputeSubjectParameter(this IRequirementDefinition requi /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeText(this IRequirementDefinition requirementDefinition) + internal static List ComputeText(this IRequirementDefinition requirementDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/RequirementUsageExtensions.cs b/SysML2.NET/Extend/RequirementUsageExtensions.cs index afc264805..1ba1f57ad 100644 --- a/SysML2.NET/Extend/RequirementUsageExtensions.cs +++ b/SysML2.NET/Extend/RequirementUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RequirementUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeActorParameter(this IRequirementUsage requirementUsage) + internal static List ComputeActorParameter(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static List ComputeActorParameter(this IRequirementUsage re /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeAssumedConstraint(this IRequirementUsage requirementUsage) + internal static List ComputeAssumedConstraint(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static List ComputeAssumedConstraint(this IRequiremen /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFramedConcern(this IRequirementUsage requirementUsage) + internal static List ComputeFramedConcern(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -114,14 +110,14 @@ internal static List ComputeFramedConcern(this IRequirementUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeRequiredConstraint(this IRequirementUsage requirementUsage) + internal static List ComputeRequiredConstraint(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -129,14 +125,14 @@ internal static List ComputeRequiredConstraint(this IRequireme /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementDefinition ComputeRequirementDefinition(this IRequirementUsage requirementUsage) + internal static IRequirementDefinition ComputeRequirementDefinition(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -144,14 +140,14 @@ internal static IRequirementDefinition ComputeRequirementDefinition(this IRequir /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeStakeholderParameter(this IRequirementUsage requirementUsage) + internal static List ComputeStakeholderParameter(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -159,14 +155,14 @@ internal static List ComputeStakeholderParameter(this IRequirementUs /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeSubjectParameter(this IRequirementUsage requirementUsage) + internal static IUsage ComputeSubjectParameter(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -174,14 +170,14 @@ internal static IUsage ComputeSubjectParameter(this IRequirementUsage requiremen /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeText(this IRequirementUsage requirementUsage) + internal static List ComputeText(this IRequirementUsage requirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/RequirementVerificationMembershipExtensions.cs b/SysML2.NET/Extend/RequirementVerificationMembershipExtensions.cs index 72c733d39..f527749e7 100644 --- a/SysML2.NET/Extend/RequirementVerificationMembershipExtensions.cs +++ b/SysML2.NET/Extend/RequirementVerificationMembershipExtensions.cs @@ -37,23 +37,19 @@ namespace SysML2.NET.Core.POCO.Systems.VerificationCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class RequirementVerificationMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementUsage ComputeOwnedRequirement(this IRequirementVerificationMembership requirementVerificationMembership) + internal static IRequirementUsage ComputeOwnedRequirement(this IRequirementVerificationMembership requirementVerificationMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -61,14 +57,14 @@ internal static IRequirementUsage ComputeOwnedRequirement(this IRequirementVerif /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementUsage ComputeVerifiedRequirement(this IRequirementVerificationMembership requirementVerificationMembership) + internal static IRequirementUsage ComputeVerifiedRequirement(this IRequirementVerificationMembership requirementVerificationMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ResultExpressionMembershipExtensions.cs b/SysML2.NET/Extend/ResultExpressionMembershipExtensions.cs index 4401cb158..758800407 100644 --- a/SysML2.NET/Extend/ResultExpressionMembershipExtensions.cs +++ b/SysML2.NET/Extend/ResultExpressionMembershipExtensions.cs @@ -34,23 +34,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Functions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ResultExpressionMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeOwnedResultExpression(this IResultExpressionMembership resultExpressionMembership) + internal static IExpression ComputeOwnedResultExpression(this IResultExpressionMembership resultExpressionMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ReturnParameterMembershipExtensions.cs b/SysML2.NET/Extend/ReturnParameterMembershipExtensions.cs new file mode 100644 index 000000000..fae134dc3 --- /dev/null +++ b/SysML2.NET/Extend/ReturnParameterMembershipExtensions.cs @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------------------------- +// +// +// 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. +// +// +// ------------------------------------------------------------------------------------------------ + +namespace SysML2.NET.Core.POCO.Kernel.Functions +{ + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.Root.Namespaces; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; + + /// + /// The class provides extensions methods for + /// the interface + /// + internal static class ReturnParameterMembershipExtensions + { + /// + /// The ownedMemberParameter of a ReturnParameterMembership must have direction out. (This is a leaf + /// operation that cannot be further redefined.) + /// + /// + /// The subject + /// + /// + /// The expected FeatureDirectionKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static FeatureDirectionKind ComputeRedefinedParameterDirectionOperation(this IReturnParameterMembership returnParameterMembershipSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + } +} diff --git a/SysML2.NET/Extend/SatisfyRequirementUsageExtensions.cs b/SysML2.NET/Extend/SatisfyRequirementUsageExtensions.cs index 2103b13ea..0f4b9b595 100644 --- a/SysML2.NET/Extend/SatisfyRequirementUsageExtensions.cs +++ b/SysML2.NET/Extend/SatisfyRequirementUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class SatisfyRequirementUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRequirementUsage ComputeSatisfiedRequirement(this ISatisfyRequirementUsage satisfyRequirementUsage) + internal static IRequirementUsage ComputeSatisfiedRequirement(this ISatisfyRequirementUsage satisfyRequirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IRequirementUsage ComputeSatisfiedRequirement(this ISatisfyRequi /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeSatisfyingFeature(this ISatisfyRequirementUsage satisfyRequirementUsage) + internal static IFeature ComputeSatisfyingFeature(this ISatisfyRequirementUsage satisfyRequirementUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/SelectExpressionExtensions.cs b/SysML2.NET/Extend/SelectExpressionExtensions.cs index be4b4ae29..c86871811 100644 --- a/SysML2.NET/Extend/SelectExpressionExtensions.cs +++ b/SysML2.NET/Extend/SelectExpressionExtensions.cs @@ -20,16 +20,22 @@ namespace SysML2.NET.Core.POCO.Kernel.Expressions { - using System.Diagnostics.CodeAnalysis; + using System; + using System.Collections.Generic; + + using SysML2.NET.Core.Core.Types; + using SysML2.NET.Core.POCO.Core.Features; + using SysML2.NET.Core.POCO.Core.Types; + using SysML2.NET.Core.POCO.Kernel.Behaviors; + using SysML2.NET.Core.POCO.Kernel.Functions; + using SysML2.NET.Core.POCO.Root.Annotations; + using SysML2.NET.Core.POCO.Root.Elements; + using SysML2.NET.Core.POCO.Root.Namespaces; /// /// The class provides extensions methods for /// the interface /// - [SuppressMessage( - "Major Code Smell", - "S2094:Classes should not be empty", - Justification = "Extension class intentionally empty; methods are generated conditionally.")] internal static class SelectExpressionExtensions { } diff --git a/SysML2.NET/Extend/SendActionUsageExtensions.cs b/SysML2.NET/Extend/SendActionUsageExtensions.cs index 57f9e7d29..7c5998484 100644 --- a/SysML2.NET/Extend/SendActionUsageExtensions.cs +++ b/SysML2.NET/Extend/SendActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class SendActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputePayloadArgument(this ISendActionUsage sendActionUsage) + internal static IExpression ComputePayloadArgument(this ISendActionUsage sendActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IExpression ComputePayloadArgument(this ISendActionUsage sendAct /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeReceiverArgument(this ISendActionUsage sendActionUsage) + internal static IExpression ComputeReceiverArgument(this ISendActionUsage sendActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static IExpression ComputeReceiverArgument(this ISendActionUsage sendAc /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeSenderArgument(this ISendActionUsage sendActionUsage) + internal static IExpression ComputeSenderArgument(this ISendActionUsage sendActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/SpecializationExtensions.cs b/SysML2.NET/Extend/SpecializationExtensions.cs index dc7bc0272..62bf4780c 100644 --- a/SysML2.NET/Extend/SpecializationExtensions.cs +++ b/SysML2.NET/Extend/SpecializationExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class SpecializationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeOwningType(this ISpecialization specialization) + internal static IType ComputeOwningType(this ISpecialization specializationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/StakeholderMembershipExtensions.cs b/SysML2.NET/Extend/StakeholderMembershipExtensions.cs index 4d488897f..5198fdaee 100644 --- a/SysML2.NET/Extend/StakeholderMembershipExtensions.cs +++ b/SysML2.NET/Extend/StakeholderMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class StakeholderMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IPartUsage ComputeOwnedStakeholderParameter(this IStakeholderMembership stakeholderMembership) + internal static IPartUsage ComputeOwnedStakeholderParameter(this IStakeholderMembership stakeholderMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/StateDefinitionExtensions.cs b/SysML2.NET/Extend/StateDefinitionExtensions.cs index d98d8d418..0dd8a4ccb 100644 --- a/SysML2.NET/Extend/StateDefinitionExtensions.cs +++ b/SysML2.NET/Extend/StateDefinitionExtensions.cs @@ -56,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.States /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class StateDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeDoAction(this IStateDefinition stateDefinition) + internal static IActionUsage ComputeDoAction(this IStateDefinition stateDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -80,14 +76,14 @@ internal static IActionUsage ComputeDoAction(this IStateDefinition stateDefiniti /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeEntryAction(this IStateDefinition stateDefinition) + internal static IActionUsage ComputeEntryAction(this IStateDefinition stateDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -95,14 +91,14 @@ internal static IActionUsage ComputeEntryAction(this IStateDefinition stateDefin /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeExitAction(this IStateDefinition stateDefinition) + internal static IActionUsage ComputeExitAction(this IStateDefinition stateDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -110,14 +106,14 @@ internal static IActionUsage ComputeExitAction(this IStateDefinition stateDefini /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeState(this IStateDefinition stateDefinition) + internal static List ComputeState(this IStateDefinition stateDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/StateSubactionMembershipExtensions.cs b/SysML2.NET/Extend/StateSubactionMembershipExtensions.cs index 17a9c3eaf..58206a71b 100644 --- a/SysML2.NET/Extend/StateSubactionMembershipExtensions.cs +++ b/SysML2.NET/Extend/StateSubactionMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.States /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class StateSubactionMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeAction(this IStateSubactionMembership stateSubactionMembership) + internal static IActionUsage ComputeAction(this IStateSubactionMembership stateSubactionMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/StateUsageExtensions.cs b/SysML2.NET/Extend/StateUsageExtensions.cs index e26190293..f30ddaaff 100644 --- a/SysML2.NET/Extend/StateUsageExtensions.cs +++ b/SysML2.NET/Extend/StateUsageExtensions.cs @@ -59,23 +59,19 @@ namespace SysML2.NET.Core.POCO.Systems.States /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class StateUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeDoAction(this IStateUsage stateUsage) + internal static IActionUsage ComputeDoAction(this IStateUsage stateUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -83,14 +79,14 @@ internal static IActionUsage ComputeDoAction(this IStateUsage stateUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeEntryAction(this IStateUsage stateUsage) + internal static IActionUsage ComputeEntryAction(this IStateUsage stateUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -98,14 +94,14 @@ internal static IActionUsage ComputeEntryAction(this IStateUsage stateUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeExitAction(this IStateUsage stateUsage) + internal static IActionUsage ComputeExitAction(this IStateUsage stateUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -113,17 +109,37 @@ internal static IActionUsage ComputeExitAction(this IStateUsage stateUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeStateDefinition(this IStateUsage stateUsage) + internal static List ComputeStateDefinition(this IStateUsage stateUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Check if this StateUsage is composite and has an owningType that is a StateDefinition or StateUsage + /// with the given value of isParallel, but is not an entryAction, doAction, or exitAction. If so, then + /// it represents a StateAction that is a substate or exclusiveState (for isParallel = false) of another + /// StateAction. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsSubstateUsageOperation(this IStateUsage stateUsageSubject, bool isParallel) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/StepExtensions.cs b/SysML2.NET/Extend/StepExtensions.cs index 3764c9c38..238acefb6 100644 --- a/SysML2.NET/Extend/StepExtensions.cs +++ b/SysML2.NET/Extend/StepExtensions.cs @@ -34,23 +34,19 @@ namespace SysML2.NET.Core.POCO.Kernel.Behaviors /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class StepExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeBehavior(this IStep step) + internal static List ComputeBehavior(this IStep stepSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -58,14 +54,14 @@ internal static List ComputeBehavior(this IStep step) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeParameter(this IStep step) + internal static List ComputeParameter(this IStep stepSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/SubclassificationExtensions.cs b/SysML2.NET/Extend/SubclassificationExtensions.cs index 9619e60eb..858b90edd 100644 --- a/SysML2.NET/Extend/SubclassificationExtensions.cs +++ b/SysML2.NET/Extend/SubclassificationExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Core.Classifiers /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class SubclassificationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IClassifier ComputeOwningClassifier(this ISubclassification subclassification) + internal static IClassifier ComputeOwningClassifier(this ISubclassification subclassificationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/SubjectMembershipExtensions.cs b/SysML2.NET/Extend/SubjectMembershipExtensions.cs index 5abb3a310..1737b0303 100644 --- a/SysML2.NET/Extend/SubjectMembershipExtensions.cs +++ b/SysML2.NET/Extend/SubjectMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.Requirements /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class SubjectMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeOwnedSubjectParameter(this ISubjectMembership subjectMembership) + internal static IUsage ComputeOwnedSubjectParameter(this ISubjectMembership subjectMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/SubsettingExtensions.cs b/SysML2.NET/Extend/SubsettingExtensions.cs index a20d6d078..bb3a618df 100644 --- a/SysML2.NET/Extend/SubsettingExtensions.cs +++ b/SysML2.NET/Extend/SubsettingExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class SubsettingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwningFeature(this ISubsetting subsetting) + internal static IFeature ComputeOwningFeature(this ISubsetting subsettingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/TerminateActionUsageExtensions.cs b/SysML2.NET/Extend/TerminateActionUsageExtensions.cs index ccbe1ec87..95debe57a 100644 --- a/SysML2.NET/Extend/TerminateActionUsageExtensions.cs +++ b/SysML2.NET/Extend/TerminateActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TerminateActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeTerminatedOccurrenceArgument(this ITerminateActionUsage terminateActionUsage) + internal static IExpression ComputeTerminatedOccurrenceArgument(this ITerminateActionUsage terminateActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/TextualRepresentationExtensions.cs b/SysML2.NET/Extend/TextualRepresentationExtensions.cs index 71cc2fad0..fce6d2c38 100644 --- a/SysML2.NET/Extend/TextualRepresentationExtensions.cs +++ b/SysML2.NET/Extend/TextualRepresentationExtensions.cs @@ -30,23 +30,19 @@ namespace SysML2.NET.Core.POCO.Root.Annotations /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TextualRepresentationExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IElement ComputeRepresentedElement(this ITextualRepresentation textualRepresentation) + internal static IElement ComputeRepresentedElement(this ITextualRepresentation textualRepresentationSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/TransitionFeatureMembershipExtensions.cs b/SysML2.NET/Extend/TransitionFeatureMembershipExtensions.cs index 09fa40614..e16c8e7ae 100644 --- a/SysML2.NET/Extend/TransitionFeatureMembershipExtensions.cs +++ b/SysML2.NET/Extend/TransitionFeatureMembershipExtensions.cs @@ -36,23 +36,19 @@ namespace SysML2.NET.Core.POCO.Systems.States /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TransitionFeatureMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IStep ComputeTransitionFeature(this ITransitionFeatureMembership transitionFeatureMembership) + internal static IStep ComputeTransitionFeature(this ITransitionFeatureMembership transitionFeatureMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/TransitionUsageExtensions.cs b/SysML2.NET/Extend/TransitionUsageExtensions.cs index 268a0a15d..8d317383e 100644 --- a/SysML2.NET/Extend/TransitionUsageExtensions.cs +++ b/SysML2.NET/Extend/TransitionUsageExtensions.cs @@ -61,23 +61,19 @@ namespace SysML2.NET.Core.POCO.Systems.States /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TransitionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeEffectAction(this ITransitionUsage transitionUsage) + internal static List ComputeEffectAction(this ITransitionUsage transitionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -85,14 +81,14 @@ internal static List ComputeEffectAction(this ITransitionUsage tra /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeGuardExpression(this ITransitionUsage transitionUsage) + internal static List ComputeGuardExpression(this ITransitionUsage transitionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -100,14 +96,14 @@ internal static List ComputeGuardExpression(this ITransitionUsage t /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeSource(this ITransitionUsage transitionUsage) + internal static IActionUsage ComputeSource(this ITransitionUsage transitionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -115,14 +111,14 @@ internal static IActionUsage ComputeSource(this ITransitionUsage transitionUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static ISuccession ComputeSuccession(this ITransitionUsage transitionUsage) + internal static ISuccession ComputeSuccession(this ITransitionUsage transitionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -130,14 +126,14 @@ internal static ISuccession ComputeSuccession(this ITransitionUsage transitionUs /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IActionUsage ComputeTarget(this ITransitionUsage transitionUsage) + internal static IActionUsage ComputeTarget(this ITransitionUsage transitionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -145,17 +141,48 @@ internal static IActionUsage ComputeTarget(this ITransitionUsage transitionUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeTriggerAction(this ITransitionUsage transitionUsage) + internal static List ComputeTriggerAction(this ITransitionUsage transitionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Return the payloadParameter of the triggerAction of this TransitionUsage, if it has one. + /// + /// + /// The subject + /// + /// + /// The expected IReferenceUsage + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IReferenceUsage ComputeTriggerPayloadParameterOperation(this ITransitionUsage transitionUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the Feature to be used as the source of the succession of this TransitionUsage, which is the + /// first member of the TransitionUsage that is a Feature, that is owned by the TransitionUsage via a + /// Membership that is not a FeatureMembership, and whose featureTarget is an ActionUsage. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeSourceFeatureOperation(this ITransitionUsage transitionUsageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/TriggerInvocationExpressionExtensions.cs b/SysML2.NET/Extend/TriggerInvocationExpressionExtensions.cs index fa8c324b7..86a1e78b0 100644 --- a/SysML2.NET/Extend/TriggerInvocationExpressionExtensions.cs +++ b/SysML2.NET/Extend/TriggerInvocationExpressionExtensions.cs @@ -38,11 +38,23 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TriggerInvocationExpressionExtensions { + /// + /// Return one of the Functions TriggerWhen, TriggerAt or TriggerAfter, from the Kernel Semantic Library + /// Triggers package, depending on whether the kind of this TriggerInvocationExpression is when, at or + /// after, respectively. + /// + /// + /// The subject + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeRedefinedInstantiatedTypeOperation(this ITriggerInvocationExpression triggerInvocationExpressionSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/TypeExtensions.cs b/SysML2.NET/Extend/TypeExtensions.cs index f2ee6e2dc..42286be42 100644 --- a/SysML2.NET/Extend/TypeExtensions.cs +++ b/SysML2.NET/Extend/TypeExtensions.cs @@ -23,6 +23,7 @@ namespace SysML2.NET.Core.POCO.Core.Types using System; using System.Collections.Generic; + using SysML2.NET.Core.Core.Types; using SysML2.NET.Core.POCO.Core.Features; using SysML2.NET.Core.POCO.Root.Annotations; using SysML2.NET.Core.POCO.Root.Elements; @@ -32,23 +33,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TypeExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDifferencingType(this IType type) + internal static List ComputeDifferencingType(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -56,14 +53,14 @@ internal static List ComputeDifferencingType(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDirectedFeature(this IType type) + internal static List ComputeDirectedFeature(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -71,14 +68,14 @@ internal static List ComputeDirectedFeature(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeEndFeature(this IType type) + internal static List ComputeEndFeature(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -86,14 +83,14 @@ internal static List ComputeEndFeature(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFeature(this IType type) + internal static List ComputeFeature(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -101,14 +98,14 @@ internal static List ComputeFeature(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeFeatureMembership(this IType type) + internal static List ComputeFeatureMembership(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -116,14 +113,14 @@ internal static List ComputeFeatureMembership(this IType typ /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInheritedFeature(this IType type) + internal static List ComputeInheritedFeature(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -131,14 +128,14 @@ internal static List ComputeInheritedFeature(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInheritedMembership(this IType type) + internal static List ComputeInheritedMembership(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -146,14 +143,14 @@ internal static List ComputeInheritedMembership(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeInput(this IType type) + internal static List ComputeInput(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -161,14 +158,14 @@ internal static List ComputeInput(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeIntersectingType(this IType type) + internal static List ComputeIntersectingType(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -176,14 +173,14 @@ internal static List ComputeIntersectingType(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsConjugated(this IType type) + internal static bool ComputeIsConjugated(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -191,14 +188,14 @@ internal static bool ComputeIsConjugated(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IMultiplicity ComputeMultiplicity(this IType type) + internal static IMultiplicity ComputeMultiplicity(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -206,14 +203,14 @@ internal static IMultiplicity ComputeMultiplicity(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOutput(this IType type) + internal static List ComputeOutput(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -221,14 +218,14 @@ internal static List ComputeOutput(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IConjugation ComputeOwnedConjugator(this IType type) + internal static IConjugation ComputeOwnedConjugator(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -236,14 +233,14 @@ internal static IConjugation ComputeOwnedConjugator(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedDifferencing(this IType type) + internal static List ComputeOwnedDifferencing(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -251,14 +248,14 @@ internal static List ComputeOwnedDifferencing(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedDisjoining(this IType type) + internal static List ComputeOwnedDisjoining(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -266,14 +263,14 @@ internal static List ComputeOwnedDisjoining(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedEndFeature(this IType type) + internal static List ComputeOwnedEndFeature(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -281,14 +278,14 @@ internal static List ComputeOwnedEndFeature(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFeature(this IType type) + internal static List ComputeOwnedFeature(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -296,14 +293,14 @@ internal static List ComputeOwnedFeature(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedFeatureMembership(this IType type) + internal static List ComputeOwnedFeatureMembership(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -311,14 +308,14 @@ internal static List ComputeOwnedFeatureMembership(this ITyp /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedIntersecting(this IType type) + internal static List ComputeOwnedIntersecting(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -326,14 +323,14 @@ internal static List ComputeOwnedIntersecting(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedSpecialization(this IType type) + internal static List ComputeOwnedSpecialization(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -341,14 +338,14 @@ internal static List ComputeOwnedSpecialization(this IType type /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeOwnedUnioning(this IType type) + internal static List ComputeOwnedUnioning(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -356,17 +353,312 @@ internal static List ComputeOwnedUnioning(this IType type) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeUnioningType(this IType type) + internal static List ComputeUnioningType(this IType typeSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// The visible Memberships of a Type include inheritedMemberships. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeRedefinedVisibleMembershipsOperation(this IType typeSubject, INamespace excluded, bool isRecursive, bool includeAll) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the Memberships inheritable from supertypes of this Type with redefined Features removed. + /// When computing inheritable Memberships, exclude Imports of excludedNamespaces, Specializations of + /// excludedTypes, and, if excludeImplied = true, all implied Specializations. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeInheritedMembershipsOperation(this IType typeSubject, INamespace excludedNamespaces, IType excludedTypes, bool excludeImplied) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return all the non-private Memberships of all the supertypes of this Type, excluding any supertypes + /// that are this Type or are in the given set of excludedTypes. If excludeImplied = true, then also + /// transitively exclude any supertypes from implied Specializations. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeInheritableMembershipsOperation(this IType typeSubject, INamespace excludedNamespaces, IType excludedTypes, bool excludeImplied) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the public, protected and inherited Memberships of this Type. When computing imported + /// Memberships, exclude the given set of excludedNamespaces. When computing inherited Memberships, + /// exclude Types in the given set of excludedTypes. If excludeImplied = true, then also exclude any + /// supertypes from implied Specializations. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeNonPrivateMembershipsOperation(this IType typeSubject, INamespace excludedNamespaces, IType excludedTypes, bool excludeImplied) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return a subset of memberships, removing those Memberships whose memberElements are Features and for + /// which either of the following two conditions holds:
    + ///
  1. The memberElement of the Membership is included in redefined Features of another + /// Membership in memberships.
  2. One of the redefined Features of the + /// Membership is a directly redefinedFeature of an ownedFeature of this Type.
  3. + ///
For this purpose, the redefined Features of a Membership + /// whose memberElement is a Feature includes the memberElement and all Features directly or indirectly + /// redefined by the memberElement. + ///
+ /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IMembership + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMembership ComputeRemoveRedefinedFeaturesOperation(this IType typeSubject, IMembership memberships) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If the memberElement of the given membership is a Feature, then return all Features directly or + /// indirectly redefined by the memberElement. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeAllRedefinedFeaturesOfOperation(this IType typeSubject, IMembership membership) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If the given feature is a feature of this Type, then return its direction relative to this Type, + /// taking conjugation into account. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static FeatureDirectionKind ComputeDirectionOfOperation(this IType typeSubject, IFeature feature) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the direction of the given feature relative to this Type, excluding a given set of Types from + /// the search of supertypes of this Type. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// No documentation provided + /// + /// + /// The expected FeatureDirectionKind + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static FeatureDirectionKind ComputeDirectionOfExcludingOperation(this IType typeSubject, IFeature feature, IType excluded) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If this Type is conjugated, then return just the originalType of the Conjugation. Otherwise, return + /// the general Types from all ownedSpecializations of this type, if excludeImplied = false, or all + /// non-implied ownedSpecializations, if excludeImplied = true. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeSupertypesOperation(this IType typeSubject, bool excludeImplied) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return this Type and all Types that are directly or transitively supertypes of this Type (as + /// determined by the supertypes operation with excludeImplied = false). + /// + /// + /// The subject + /// + /// + /// The expected IType + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IType ComputeAllSupertypesOperation(this IType typeSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Type is a direct or indirect specialization of the given supertype. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeSpecializesOperation(this IType typeSubject, IType supertype) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Check whether this Type is a direct or indirect specialization of the named library Type. + /// libraryTypeName must conform to the syntax of a KerML qualified name and must resolve to a Type in + /// global scope. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeSpecializesFromLibraryOperation(this IType typeSubject, string libraryTypeName) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// By default, this Type is compatible with an otherType if it directly or indirectly specializes the + /// otherType. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIsCompatibleWithOperation(this IType typeSubject, IType otherType) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// Return the owned or inherited Multiplicities for this Type<./code>. + /// + /// + /// The subject + /// + /// + /// The expected IMultiplicity + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IMultiplicity ComputeMultiplicitiesOperation(this IType typeSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/TypeFeaturingExtensions.cs b/SysML2.NET/Extend/TypeFeaturingExtensions.cs index 63338fc30..885b9ca9b 100644 --- a/SysML2.NET/Extend/TypeFeaturingExtensions.cs +++ b/SysML2.NET/Extend/TypeFeaturingExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Core.Features /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class TypeFeaturingExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IFeature ComputeOwningFeatureOfType(this ITypeFeaturing typeFeaturing) + internal static IFeature ComputeOwningFeatureOfType(this ITypeFeaturing typeFeaturingSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/UnioningExtensions.cs b/SysML2.NET/Extend/UnioningExtensions.cs index a9e6d30ee..893354dd9 100644 --- a/SysML2.NET/Extend/UnioningExtensions.cs +++ b/SysML2.NET/Extend/UnioningExtensions.cs @@ -31,23 +31,19 @@ namespace SysML2.NET.Core.POCO.Core.Types /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class UnioningExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IType ComputeTypeUnioned(this IUnioning unioning) + internal static IType ComputeTypeUnioned(this IUnioning unioningSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/UsageExtensions.cs b/SysML2.NET/Extend/UsageExtensions.cs index cfd0a74d3..3a4f81e70 100644 --- a/SysML2.NET/Extend/UsageExtensions.cs +++ b/SysML2.NET/Extend/UsageExtensions.cs @@ -56,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class UsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDefinition(this IUsage usage) + internal static List ComputeDefinition(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -80,14 +76,14 @@ internal static List ComputeDefinition(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeDirectedUsage(this IUsage usage) + internal static List ComputeDirectedUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -95,14 +91,14 @@ internal static List ComputeDirectedUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeIsReference(this IUsage usage) + internal static bool ComputeIsReference(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -110,14 +106,14 @@ internal static bool ComputeIsReference(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static bool ComputeMayTimeVary(this IUsage usage) + internal static bool ComputeMayTimeVary(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -125,14 +121,14 @@ internal static bool ComputeMayTimeVary(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAction(this IUsage usage) + internal static List ComputeNestedAction(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -140,14 +136,14 @@ internal static List ComputeNestedAction(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAllocation(this IUsage usage) + internal static List ComputeNestedAllocation(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -155,14 +151,14 @@ internal static List ComputeNestedAllocation(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAnalysisCase(this IUsage usage) + internal static List ComputeNestedAnalysisCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -170,14 +166,14 @@ internal static List ComputeNestedAnalysisCase(this IUsage u /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedAttribute(this IUsage usage) + internal static List ComputeNestedAttribute(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -185,14 +181,14 @@ internal static List ComputeNestedAttribute(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedCalculation(this IUsage usage) + internal static List ComputeNestedCalculation(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -200,14 +196,14 @@ internal static List ComputeNestedCalculation(this IUsage usa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedCase(this IUsage usage) + internal static List ComputeNestedCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -215,14 +211,14 @@ internal static List ComputeNestedCase(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedConcern(this IUsage usage) + internal static List ComputeNestedConcern(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -230,14 +226,14 @@ internal static List ComputeNestedConcern(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedConnection(this IUsage usage) + internal static List ComputeNestedConnection(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -245,14 +241,14 @@ internal static List ComputeNestedConnection(this IUsage usag /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedConstraint(this IUsage usage) + internal static List ComputeNestedConstraint(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -260,14 +256,14 @@ internal static List ComputeNestedConstraint(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedEnumeration(this IUsage usage) + internal static List ComputeNestedEnumeration(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -275,14 +271,14 @@ internal static List ComputeNestedEnumeration(this IUsage usa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedFlow(this IUsage usage) + internal static List ComputeNestedFlow(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -290,14 +286,14 @@ internal static List ComputeNestedFlow(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedInterface(this IUsage usage) + internal static List ComputeNestedInterface(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -305,14 +301,14 @@ internal static List ComputeNestedInterface(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedItem(this IUsage usage) + internal static List ComputeNestedItem(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -320,14 +316,14 @@ internal static List ComputeNestedItem(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedMetadata(this IUsage usage) + internal static List ComputeNestedMetadata(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -335,14 +331,14 @@ internal static List ComputeNestedMetadata(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedOccurrence(this IUsage usage) + internal static List ComputeNestedOccurrence(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -350,14 +346,14 @@ internal static List ComputeNestedOccurrence(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedPart(this IUsage usage) + internal static List ComputeNestedPart(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -365,14 +361,14 @@ internal static List ComputeNestedPart(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedPort(this IUsage usage) + internal static List ComputeNestedPort(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -380,14 +376,14 @@ internal static List ComputeNestedPort(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedReference(this IUsage usage) + internal static List ComputeNestedReference(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -395,14 +391,14 @@ internal static List ComputeNestedReference(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedRendering(this IUsage usage) + internal static List ComputeNestedRendering(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -410,14 +406,14 @@ internal static List ComputeNestedRendering(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedRequirement(this IUsage usage) + internal static List ComputeNestedRequirement(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -425,14 +421,14 @@ internal static List ComputeNestedRequirement(this IUsage usa /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedState(this IUsage usage) + internal static List ComputeNestedState(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -440,14 +436,14 @@ internal static List ComputeNestedState(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedTransition(this IUsage usage) + internal static List ComputeNestedTransition(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -455,14 +451,14 @@ internal static List ComputeNestedTransition(this IUsage usage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedUsage(this IUsage usage) + internal static List ComputeNestedUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -470,14 +466,14 @@ internal static List ComputeNestedUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedUseCase(this IUsage usage) + internal static List ComputeNestedUseCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -485,14 +481,14 @@ internal static List ComputeNestedUseCase(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedVerificationCase(this IUsage usage) + internal static List ComputeNestedVerificationCase(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -500,14 +496,14 @@ internal static List ComputeNestedVerificationCase(this /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedView(this IUsage usage) + internal static List ComputeNestedView(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -515,14 +511,14 @@ internal static List ComputeNestedView(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeNestedViewpoint(this IUsage usage) + internal static List ComputeNestedViewpoint(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -530,14 +526,14 @@ internal static List ComputeNestedViewpoint(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IDefinition ComputeOwningDefinition(this IUsage usage) + internal static IDefinition ComputeOwningDefinition(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -545,14 +541,14 @@ internal static IDefinition ComputeOwningDefinition(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeOwningUsage(this IUsage usage) + internal static IUsage ComputeOwningUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -560,14 +556,14 @@ internal static IUsage ComputeOwningUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeUsage(this IUsage usage) + internal static List ComputeUsage(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -575,14 +571,14 @@ internal static List ComputeUsage(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVariant(this IUsage usage) + internal static List ComputeVariant(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -590,17 +586,48 @@ internal static List ComputeVariant(this IUsage usage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVariantMembership(this IUsage usage) + internal static List ComputeVariantMembership(this IUsage usageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// If this Usage is a variant, then its naming Feature is the referencedFeature of its + /// ownedReferenceSubsetting. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeRedefinedNamingFeatureOperation(this IUsage usageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } + + /// + /// If ownedReferenceSubsetting is not null, return the featureTarget of the referencedFeature of the + /// ownedReferenceSubsetting. + /// + /// + /// The subject + /// + /// + /// The expected IFeature + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static IFeature ComputeReferencedFeatureTargetOperation(this IUsage usageSubject) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/UseCaseDefinitionExtensions.cs b/SysML2.NET/Extend/UseCaseDefinitionExtensions.cs index 92a38413c..ee1d2716e 100644 --- a/SysML2.NET/Extend/UseCaseDefinitionExtensions.cs +++ b/SysML2.NET/Extend/UseCaseDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.UseCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class UseCaseDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeIncludedUseCase(this IUseCaseDefinition useCaseDefinition) + internal static List ComputeIncludedUseCase(this IUseCaseDefinition useCaseDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/UseCaseUsageExtensions.cs b/SysML2.NET/Extend/UseCaseUsageExtensions.cs index 4c84d9320..c278e74f1 100644 --- a/SysML2.NET/Extend/UseCaseUsageExtensions.cs +++ b/SysML2.NET/Extend/UseCaseUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.UseCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class UseCaseUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeIncludedUseCase(this IUseCaseUsage useCaseUsage) + internal static List ComputeIncludedUseCase(this IUseCaseUsage useCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static List ComputeIncludedUseCase(this IUseCaseUsage us /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUseCaseDefinition ComputeUseCaseDefinition(this IUseCaseUsage useCaseUsage) + internal static IUseCaseDefinition ComputeUseCaseDefinition(this IUseCaseUsage useCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/VariantMembershipExtensions.cs b/SysML2.NET/Extend/VariantMembershipExtensions.cs index 596088f80..1dc94ed27 100644 --- a/SysML2.NET/Extend/VariantMembershipExtensions.cs +++ b/SysML2.NET/Extend/VariantMembershipExtensions.cs @@ -32,23 +32,19 @@ namespace SysML2.NET.Core.POCO.Systems.DefinitionAndUsage /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class VariantMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IUsage ComputeOwnedVariantUsage(this IVariantMembership variantMembership) + internal static IUsage ComputeOwnedVariantUsage(this IVariantMembership variantMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/VerificationCaseDefinitionExtensions.cs b/SysML2.NET/Extend/VerificationCaseDefinitionExtensions.cs index 3cb51f262..74a0846d6 100644 --- a/SysML2.NET/Extend/VerificationCaseDefinitionExtensions.cs +++ b/SysML2.NET/Extend/VerificationCaseDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.VerificationCases /// The class provides extensions methods for /// the interface /// - - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")]internal static class VerificationCaseDefinitionExtensions + internal static class VerificationCaseDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVerifiedRequirement(this IVerificationCaseDefinition verificationCaseDefinition) + internal static List ComputeVerifiedRequirement(this IVerificationCaseDefinition verificationCaseDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/VerificationCaseUsageExtensions.cs b/SysML2.NET/Extend/VerificationCaseUsageExtensions.cs index 116c524a7..e4b48a3ef 100644 --- a/SysML2.NET/Extend/VerificationCaseUsageExtensions.cs +++ b/SysML2.NET/Extend/VerificationCaseUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.VerificationCases /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class VerificationCaseUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IVerificationCaseDefinition ComputeVerificationCaseDefinition(this IVerificationCaseUsage verificationCaseUsage) + internal static IVerificationCaseDefinition ComputeVerificationCaseDefinition(this IVerificationCaseUsage verificationCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IVerificationCaseDefinition ComputeVerificationCaseDefinition(th /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeVerifiedRequirement(this IVerificationCaseUsage verificationCaseUsage) + internal static List ComputeVerifiedRequirement(this IVerificationCaseUsage verificationCaseUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ViewDefinitionExtensions.cs b/SysML2.NET/Extend/ViewDefinitionExtensions.cs index 93793e719..adbfbbd7f 100644 --- a/SysML2.NET/Extend/ViewDefinitionExtensions.cs +++ b/SysML2.NET/Extend/ViewDefinitionExtensions.cs @@ -56,23 +56,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ViewDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeSatisfiedViewpoint(this IViewDefinition viewDefinition) + internal static List ComputeSatisfiedViewpoint(this IViewDefinition viewDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -80,14 +76,14 @@ internal static List ComputeSatisfiedViewpoint(this IViewDefini /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeView(this IViewDefinition viewDefinition) + internal static List ComputeView(this IViewDefinition viewDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -95,14 +91,14 @@ internal static List ComputeView(this IViewDefinition viewDefinition /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeViewCondition(this IViewDefinition viewDefinition) + internal static List ComputeViewCondition(this IViewDefinition viewDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -110,14 +106,14 @@ internal static List ComputeViewCondition(this IViewDefinition view /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRenderingUsage ComputeViewRendering(this IViewDefinition viewDefinition) + internal static IRenderingUsage ComputeViewRendering(this IViewDefinition viewDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ViewRenderingMembershipExtensions.cs b/SysML2.NET/Extend/ViewRenderingMembershipExtensions.cs index 2bbcc7dc5..2e799cd44 100644 --- a/SysML2.NET/Extend/ViewRenderingMembershipExtensions.cs +++ b/SysML2.NET/Extend/ViewRenderingMembershipExtensions.cs @@ -34,23 +34,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ViewRenderingMembershipExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRenderingUsage ComputeOwnedRendering(this IViewRenderingMembership viewRenderingMembership) + internal static IRenderingUsage ComputeOwnedRendering(this IViewRenderingMembership viewRenderingMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -58,14 +54,14 @@ internal static IRenderingUsage ComputeOwnedRendering(this IViewRenderingMembers /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRenderingUsage ComputeReferencedRendering(this IViewRenderingMembership viewRenderingMembership) + internal static IRenderingUsage ComputeReferencedRendering(this IViewRenderingMembership viewRenderingMembershipSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ViewUsageExtensions.cs b/SysML2.NET/Extend/ViewUsageExtensions.cs index 98c7e2c28..69d729ea7 100644 --- a/SysML2.NET/Extend/ViewUsageExtensions.cs +++ b/SysML2.NET/Extend/ViewUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ViewUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeExposedElement(this IViewUsage viewUsage) + internal static List ComputeExposedElement(this IViewUsage viewUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static List ComputeExposedElement(this IViewUsage viewUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeSatisfiedViewpoint(this IViewUsage viewUsage) + internal static List ComputeSatisfiedViewpoint(this IViewUsage viewUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -99,14 +95,14 @@ internal static List ComputeSatisfiedViewpoint(this IViewUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeViewCondition(this IViewUsage viewUsage) + internal static List ComputeViewCondition(this IViewUsage viewUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -114,14 +110,14 @@ internal static List ComputeViewCondition(this IViewUsage viewUsage /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IViewDefinition ComputeViewDefinition(this IViewUsage viewUsage) + internal static IViewDefinition ComputeViewDefinition(this IViewUsage viewUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -129,17 +125,34 @@ internal static IViewDefinition ComputeViewDefinition(this IViewUsage viewUsage) /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IRenderingUsage ComputeViewRendering(this IViewUsage viewUsage) + internal static IRenderingUsage ComputeViewRendering(this IViewUsage viewUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } + /// + /// Determine whether the given element meets all the owned and inherited viewConditions. + /// + /// + /// The subject + /// + /// + /// No documentation provided + /// + /// + /// The expected bool + /// + [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + internal static bool ComputeIncludeAsExposedOperation(this IViewUsage viewUsageSubject, IElement element) + { + throw new NotSupportedException("Create a GitHub issue when this method is required"); + } } } diff --git a/SysML2.NET/Extend/ViewpointDefinitionExtensions.cs b/SysML2.NET/Extend/ViewpointDefinitionExtensions.cs index d2cd7e65c..f57c1b7dc 100644 --- a/SysML2.NET/Extend/ViewpointDefinitionExtensions.cs +++ b/SysML2.NET/Extend/ViewpointDefinitionExtensions.cs @@ -57,23 +57,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ViewpointDefinitionExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeViewpointStakeholder(this IViewpointDefinition viewpointDefinition) + internal static List ComputeViewpointStakeholder(this IViewpointDefinition viewpointDefinitionSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/ViewpointUsageExtensions.cs b/SysML2.NET/Extend/ViewpointUsageExtensions.cs index 5ae2de04f..0a37ae422 100644 --- a/SysML2.NET/Extend/ViewpointUsageExtensions.cs +++ b/SysML2.NET/Extend/ViewpointUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Views /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class ViewpointUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IViewpointDefinition ComputeViewpointDefinition(this IViewpointUsage viewpointUsage) + internal static IViewpointDefinition ComputeViewpointDefinition(this IViewpointUsage viewpointUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IViewpointDefinition ComputeViewpointDefinition(this IViewpointU /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static List ComputeViewpointStakeholder(this IViewpointUsage viewpointUsage) + internal static List ComputeViewpointStakeholder(this IViewpointUsage viewpointUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/Extend/WhileLoopActionUsageExtensions.cs b/SysML2.NET/Extend/WhileLoopActionUsageExtensions.cs index 13adcba55..1861a02ac 100644 --- a/SysML2.NET/Extend/WhileLoopActionUsageExtensions.cs +++ b/SysML2.NET/Extend/WhileLoopActionUsageExtensions.cs @@ -60,23 +60,19 @@ namespace SysML2.NET.Core.POCO.Systems.Actions /// The class provides extensions methods for /// the interface /// - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Major Code Smell", - "S1192:Define a constant instead of using this literal", - Justification = "Placeholder message for unimplemented derived properties. Suppression to be removed after methods have been implemented")] internal static class WhileLoopActionUsageExtensions { /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeUntilArgument(this IWhileLoopActionUsage whileLoopActionUsage) + internal static IExpression ComputeUntilArgument(this IWhileLoopActionUsage whileLoopActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } @@ -84,14 +80,14 @@ internal static IExpression ComputeUntilArgument(this IWhileLoopActionUsage whil /// /// Computes the derived property. /// - /// + /// /// The subject /// /// /// the computed result /// [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - internal static IExpression ComputeWhileArgument(this IWhileLoopActionUsage whileLoopActionUsage) + internal static IExpression ComputeWhileArgument(this IWhileLoopActionUsage whileLoopActionUsageSubject) { throw new NotSupportedException("Create a GitHub issue when this method is required"); } diff --git a/SysML2.NET/SysML2.NET.csproj b/SysML2.NET/SysML2.NET.csproj index 955959c83..1de788c41 100644 --- a/SysML2.NET/SysML2.NET.csproj +++ b/SysML2.NET/SysML2.NET.csproj @@ -34,10 +34,6 @@ - - - -